这篇文章主要讲解了“Hibernate支持哪些特性”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“Hibernate支持哪些特性”吧!Hibernate 团队对外宣布了一个新的家族成员,Hib
这篇文章主要讲解了“Hibernate支持哪些特性”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“Hibernate支持哪些特性”吧!
Hibernate 团队对外宣布了一个新的家族成员,Hibernate OGM, OGM 是 Object Grid Mapping的缩写,它的目标是试图使用 JPA 来操作 NoSQL数据库,目前似乎局限于Infinispan 。
目前支持的特性:
CRUD operations for entities
properties with simple (jdk) types
embeddable objects
entity hierarchy
identifier generators (TABLE and all in-memory based generators today)
optimistic locking
@ManyToOne, @OneToOne, @OneToMany and @ManyToMany associations
bi-directional associations
Set, List and Map support for collections
most Hibernate native apis (like Session) and JPA APIs (like EntityManager)
same bootstrap model found in JPA or Hibernate Core: in JPA, set <provider> to org.hibernate.ogm.jpa.HibernateOgmPersistence and you're Good to go
PS:从目前情况看,不支持流行的 MongoDB 等等。与DataNucleus(Http://www.datanucleus.org) 在Backend的存储技术方面,还不能相提并论,DataNucleus支持JDO,JPA标准,支持目前几乎所有的流行的存储方式,Google的APPEngine也是基于DataNucleus的。
以下是51CTO对特性的翻译,请指正:
支持实体CRUD操作
支持简单(JDK)类型的属性
支持嵌入式对象
支持实体层次结构
支持标识符生成器(现在的表和基于记忆的生成器)
支持乐观锁
支持@多对一,@一对一,@一对多,@多对多关联
支持双向关联
支持最多的Hibernate原始APIs (like Session)和JPA APIs (like EntityManager)
支持在JPA或者Hibernate Core中,同样的引导模式发现:in JPA, set <provider> to org.hibernate.ogm.jpa.HibernateOgmPersistence and you're good to go
感谢各位的阅读,以上就是“Hibernate支持哪些特性”的内容了,经过本文的学习后,相信大家对Hibernate支持哪些特性这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是编程网,小编将为大家推送更多相关知识点的文章,欢迎关注!
--结束END--
本文标题: Hibernate支持哪些特性
本文链接: https://www.lsjlt.com/news/289136.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-04-27
2024-04-27
2024-04-27
2024-04-27
2024-04-27
2024-04-27
2024-04-27
2024-04-27
2024-04-27
2024-04-27
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0