-->
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.  [ 1 post ] 
Author Message
 Post subject: Adding all the annotations-mapped entities at once
PostPosted: Mon Dec 13, 2010 2:18 pm 
Newbie

Joined: Wed Jun 17, 2009 5:01 am
Posts: 5
Hello everybody,
with Hibernate's mapping files it's possible to add an entire directory and Hibernate will automatically read all the HBM files in it. So, whenever a new entity is added, it will be automatically picked up.

Now here's my question: is it possible to do something similar with annotations-mapped classes, i.e. to have Hibernate read all my classes that are mapped as entities automatically, without having to add an explicit <mapping> entry in the hibernate.cfg.xml file?

Thanks in advance
Emmanuele


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

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.