-->
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: each hbm file for each class?
PostPosted: Tue Nov 29, 2005 10:43 am 
Newbie

Joined: Tue Nov 29, 2005 10:36 am
Posts: 7
Do we need to create different hbm files for every class.
Is there any way of using only single hbm file which can map to all the classes in different assemblies?
If anyone has sample demonstrating please show me ?

Thanks,
Suman Sajjana


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 29, 2005 10:44 am 
Newbie

Joined: Sun Sep 25, 2005 9:11 am
Posts: 13
Location: Bergen, Norway
Why can't you have one .hbm.xml-file for each assembly?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 29, 2005 12:25 pm 
Regular
Regular

Joined: Fri May 13, 2005 4:08 pm
Posts: 64
I use .hbm.xml mapping files to describe classes in other assemblies frequently. Nothing stops you from having a mapping file that services all assemblies. Just have multiple <class> tags in your .hbm.xml file, I believe. The tag would look like

Code:
<class name="SomeNamespace.SomeClass, SomeAssembly" table="someTable">


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.