摘要
在J2EE平台中,Hibernate是当前最流行的一种对象/关系映射(ORM)框架。由于Hibernate对一些非关系数据库(如HashMap、LDAP等)的映射仅提供相关接口,而没有提供具体实现类,因此限制了Hibernate的广泛应用。本文利用Hibernate提供的接口,针对HashMap设计了一种自定义持久化的方法,为Hibernate自定义其它存储结构提供了参考思路,目前这种方法已经在实际项目中得到广泛运用。
Currently, Hibernate is one of the most popular Object/Relation Mapping (ORM) in the J2EE platform. However Hibernate has few ability to support ORM of non - relation database, such as HashMap, LDAP etc.. The paper designs a method about self - defined persister that aimed on Hash- Map by used of hibernate. This method can provide some suggestions for other stored - formats. Now this method has been used on some items.
出处
《江西科学》
2007年第1期54-56,64,共4页
Jiangxi Science
基金
国家863计划软件重大专项资助项目(编号:2004AA1Z2028)