Properties reference for hibernate in persistence.xml

时光毁灭记忆、已成空白 提交于 2019-12-03 08:43:21

问题


Does anyone know a link, post, book or something else where are explained and nominalized all properties that you need and can use in persistence.xml file?


回答1:


The JPA 2.0 supported properties (javax.persistence.*) can be found in JPA 2.0 specification.

Vendor-specific properties can be found in appropriate vendor documentation:

  • Hibernate properties (hibernate.*)
  • EclipseLink properties (eclipselink.*)



回答2:


Full list of properties, that hibernate uses, you can find in class

org\hibernate\cfg\Environment.java

in Hibernate distribution.

Javadoc here




回答3:


I think there are actually 2 sources:

  • org.hibernate.jpa.AvailableSettings. Cf. javadoc: "Defines the available HEM settings, both JPA-defined as well as Hibernate-specific. NOTE : Does not include {@link org.hibernate.cfg.Environment} values."
  • org.hibernate.cfg.Environment


来源:https://stackoverflow.com/questions/8324821/properties-reference-for-hibernate-in-persistence-xml

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!