问题
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