-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Error in EJB3Configuration.java -getEntityResolver not found
PostPosted: Mon Apr 10, 2006 6:47 am 
Newbie

Joined: Mon Apr 10, 2006 4:40 am
Posts: 1
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:


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 13, 2006 9:35 am 
Expert
Expert

Joined: Sat Oct 25, 2003 8:49 am
Posts: 490
Location: Vrhnika, Slovenia
Not all versions are compatible between.
You have to have all three compatible - Hibernate Core, Annotations, EM.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.