...
So for example with the following persistence.xml:
Code Block | |||||||
---|---|---|---|---|---|---|---|
| |||||||
<persistence> <persistence-unit name="movie-unit"> <provider>org.hibernate.ejb.HibernatePersistence</provider> <jta-data-source>movieDatabase</jta-data-source> <non-jta-data-source>movieDatabaseUnmanaged</non-jta-data-source> <properties> <property name="hibernate.hbm2ddl.auto" value="create-drop"/> <property name="hibernate.max_fetch_depth" value="3"/> </properties> </persistence-unit> </persistence> |
...
In the above example there would be exactly three properties for the "movie-unit" persistence unit:
- hibernate.hbm2ddl.auto = update
- hibernate.max_fetch_depth = 3
- hibernate.dialect = org.hibernate.dialect.HSQLDialect
These properties would be passed by OpenEJB directly to the persistence provider (in this case Hibernate). With one exception OpenEJB does not understand or modify these properties. Details on that one exception below.
...