JPA Reference Guide - JBoss AS 7.1 - Project Documentation Editor - 0 views
-
Troubleshooting The 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
- ...20 more annotations...
-
an entity is new if it has just been instantiated using the new operator, and it is not associated with a persistence context. It has no persistent representation in the database and no identifier value has been assigned.
-
a managed entity instance is an instance with a persistent identity that is currently associated with a persistence context.
-
the entity instance is an instance with a persistent identity that is no longer associated with a persistence context, usually because the persistence context was closed or the instance was evicted from the context.
-
a removed entity instance is an instance with a persistent identity, associated with a persistence context, but scheduled for removal from the database.
-
Delete *.index files in as7/modules/org/hibernate/main and as7/modules/org/hibernate/envers/main folders
-
Remove the older jars and copy new Hibernate jars into as7/modules/org/hibernate/main + as7/modules/org/hibernate/envers/main.