为了解决基于面向对象的水库调度系统中对象持久化实现的问题,需要重新为系统体系结构分层,把数据访问作为单独数据持久层。本文对比分析了目前持久层开发的几种模式,结合丰满水库调度系统自身的特点,分析了利用ORM中间件Hibernate作为持久层的可行性,并对Hibernate和JDBC+DAO两种开发模式进行了比较.最后给出了基于Hibernate的洪水调度系统的四层体系结构图。
In order to solve the problems of object persistence in the procedure of developing the flood control system for Fengman Reservoir, data accessing should be taken as a single data persistence layer. This paper offered a four-layer system structure diagram of the flood control system on Hibernate by analyzing the existing models of designing persistence layer, analyzing the feasibility of using ORM middleware-Hibernate as persistence layer according to the characteristics of the flood control system, and making comparison between Hibernate and JDBC&DAO.