JPA Reference Guide - JBoss AS 7.0 - Project Documentation Editor - 0 views
docs.jboss.org/...JPA+Reference+Guide
jbossas7 jpa reference documentation persistence-unit jpaprovider

-
Persistence unit properties
-
Should be hibernate3-bundled if hibernate 3 jars are in the application archive (adapterModule and adapterClass will automatically be set for hibernate3-bundled).
- ...14 more annotations...
-
“org.jboss.as.jpa” logging can be enabled to get the following information: INFO - when persistence.xml has been parsed, starting of persistence unit service (per deployed persistence.xml), stopping of persistence unit service DEBUG - informs about entity managers being injected, creating/reusing transaction scoped entity manager for active transaction TRACE - shows how long each entity manager operation took in milliseconds, application searches for a persistence unit, parsing of persistence.xml
-
To enable TRACE, open the as/standalone/configuration/standalone.xml (or as/domain/configuration/domain.xml) file. Search for <subsystem xmlns="urn:jboss:domain:logging:1.0"> and add the org.jboss.as.jpa category
-
Applications can share the same Hibernate3 (for Hibernate 3.5 or greater) persistence provider by manually creating an org.Hibernate:3 module (in the AS/modules folder). Steps to create the Hibernate3 module: