I think there is an error in the EJB3Configuration Class, in the EntityManager3.1.beta7 version.
In createEntityManagerFactory() method.
Code:
private AnnotationConfiguration cfg;
public EntityManagerFactory createEntityManagerFactory(String emName, Map integration) {
try {
log.debug( "Trying to find persistence unit: " + emName );
integration = integration == null ?
integration = CollectionHelper.EMPTY_MAP :
Collections.unmodifiableMap( integration );
Enumeration<URL> xmls = Thread.currentThread()
.getContextClassLoader()
.getResources( "META-INF/persistence.xml" );
while ( xmls.hasMoreElements() ) {
URL url = xmls.nextElement();
log.trace( "Analyse of persistence.xml: " + url );
List<PersistenceMetadata> metadataFiles = PersistenceXmlLoader.deploy(
url,
integration,
cfg.getEntityResolver()
);
...................}
cfg.getEntityResolver()
There is no getEntityResolver() method in AnnotationConfiguration.
In version EntityManager3.1beta6 this problem does not exist.
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: Hibernate 3.1.3
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the databhttp://forum.hibernate.org/login.p ... topic&f=9k ase you are using:
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt: