-->
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: Autodetect is not mapping classes referenced in classpath
PostPosted: Fri Dec 01, 2006 12:28 pm 
Newbie

Joined: Fri Dec 01, 2006 12:13 pm
Posts: 3
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.2

Debug level Hibernate log excerpt:

10:53:31,528 DEBUG Ejb3Configuration:522 - Detect class: true; detect hbm: false
10:53:31,544 DEBUG JarVisitor:192 - Searching mapped entities in jar/par: file:/C:/orderEditTempBuildHibernate

I have two projects, one is the main project for my application and contains the persistence.xml (orderEdit). The second project is a library (order). The orderEdit project references the order project in the build path in Eclipse. I have hibernate.archive.autodetection set to "class".

From the debug log it looks like autodetection is searching the build directory of the main project for classes to map, but is not searching the other projects referenced in the classpath for classes to map.

Am I doing something wrong? How can I get hibernate to map all classes referenced in the classpath instead of just the classes in the main project to be mapped.

Thanks,
-Ken


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 06, 2006 11:45 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
you need to add <jar-file>

_________________
Emmanuel


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.