摘要
在系统开发过程中,往往会遇到应用程序中的对象模型与数据库中的关系模型两种不匹配的模型,为了实现它们间的相互映射,使得在面向对象程序开发中对象信息能够方便地保存到数据库的表内,文章采用了Hibernate框架来实现对象关系映射(ORM),解决对象模型中的继承、关联以及缓存等问题,从而减少代码的复杂度以及提高系统的可维护性。
In system development, we often meet the object model in application and relational model in the database this two kinds of not matching model. In order to realize the mutual mapping between them, and the object information can be easily saved into the database table. This paper adopts the Hibernate framework to implement object relation mapping (0RM), and solves the problem of object model in inheritance, correlation and caching, so as to reduce the complexity of the code and improve the maintainability of the system.
出处
《电子设计工程》
2013年第7期1-4,共4页
Electronic Design Engineering
基金
东莞职业技术学院院级专项课题资助(2011b07)