-->
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.  [ 3 posts ] 
Author Message
 Post subject: Annotations auto-mapping
PostPosted: Thu Jan 29, 2009 10:38 am 
Newbie

Joined: Thu Jan 29, 2009 10:18 am
Posts: 4
I want to use hibernate annatations. I have 50 classes for mapping. Is there any way to NOT write 50 mappings in the hibernate.cfg.xml? For example use package, of some "magic" property, that maps all the classes on the classpath which tagged as @Entity

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 29, 2009 10:44 am 
Expert
Expert

Joined: Thu Jan 08, 2009 6:16 am
Posts: 661
Location: Germany
If you use Hibernate Entitymanager (JPA) you could use "hibernate.archive.autodetection"

_________________
-----------------
Need advanced help? http://www.viada.eu


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 29, 2009 1:59 pm 
Newbie

Joined: Thu Jan 29, 2009 10:18 am
Posts: 4
I dont't want to use EntityManager. But thanks anyway :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.