-->
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: AnnotationConfiguration
PostPosted: Mon May 28, 2007 5:54 am 
Newbie

Joined: Fri May 25, 2007 3:43 am
Posts: 4
Hi,

What is the Use of AnnotationConfiguration in hibernate?

How can i map a folder(which is having set of hbm.xml files) in hibernate.cfg.xml file?

Thanks in advance.


Top
 Profile  
 
 Post subject: AnnotationConfiguration
PostPosted: Mon May 28, 2007 10:15 am 
Beginner
Beginner

Joined: Wed Apr 18, 2007 6:17 pm
Posts: 49
Location: Dominican Republic
Hello, as far as i know you have to add your hbm.xml for each of your files, one by one, exactly the same way as when you where using the org.cfg.Configuration class, but also with the AnnotationConfiguration you could add Classes configuration, those Classes must contain the EJB3-Hibernate annotations to be processed.

Also if you're using Spring with hibernate you could tell Spring to find all of the hbm.xml files within you classpath with a regex but hibernate by itself doesn't provide that functionality.

Regards,


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.