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?
The properties element allows you to define JPA or JPA provider-specific properties to configure: the Hibernate Dialect. the JTA transaction platform (e.g., GlassFish, JBoss, Bitronix, Atomikos) whether the database schema should be auto-generated.
xml File. This file is used to override the default Hibernate settings and to add support for database types that are not out of the box (OOB database types are Oracle Server, Microsoft SQL Server, and MySQL).
<mapping-file> element: specifies one or more object-relational mapping XML files ( orm. xml files). <jar-file> element: specifies one or more JAR files that will be searched for classes. <class> element: specifies an explicit list of classes.
xml should be put in the EJB JAR's META-INF directory. If you package the persistence unit as a set of classes in a WAR file, persistence. xml should be located in the WAR file's WEB-INF/classes/META-INF directory.
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.*
)eclipselink.*
)Full list of properties, that hibernate uses, you can find in class
org\hibernate\cfg\Environment.java
in Hibernate
distribution.
Javadoc here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With