-->
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: Mappings file containing names of all Annotated classes
PostPosted: Mon Aug 01, 2005 7:10 am 
Newbie

Joined: Wed Jun 08, 2005 8:42 am
Posts: 6
I'm migrating to Hibernate 3 and am trying to understand the benefits of utilizing Java 5 Annotations versus XDoclet for Hibernate mappings.

Since annotations can be included and read an runtime, it could be inferred that Hibernate XML Mappings (HBM.XML files) are no longer necessary.

But through XDoclet, I was able to generate the hbm.xml files for each POJO and the mappings file listing all the hbm.xml filesin the application was also generated. This mappings file was then read by our application at runtime and all the mapped classes were added in the configuration while building the SessionFactory.

Now by using Annotations, is there any way by which we can generate a mappings file that contains a list of all the Annotated classes so that they can be added to configuration at runtime.

Thank you for any and all help.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 02, 2005 12:21 am 
Beginner
Beginner

Joined: Mon Dec 15, 2003 5:25 am
Posts: 48
Location: Delhi, India
I don't see any such featuer to list down the annotated files meanwhile you can try to find some keywords like @Entity or something else to know whether the file is annotated or not and list them out.

_________________
Vinod K. Singh


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 02, 2005 2:40 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
The PAR archive is done for that purpose.

_________________
Emmanuel


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.