-->
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: XMP Mapping file for multiple tables
PostPosted: Tue Jul 24, 2007 3:34 am 
Newbie

Joined: Tue Jul 24, 2007 3:28 am
Posts: 1
Hi,
I am new to NHibernate. I want to create a mapping XML file. I have an entity class whose properties are inserted into 4 different tables. Can anyone please suggest me how do I do that?

Should I create 4 separate entity classes and 4 XML files for that?

Thanks a lot in advance,
Regards


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 24, 2007 10:22 am 
Hibernate Team
Hibernate Team

Joined: Tue Jun 13, 2006 11:29 pm
Posts: 315
Location: Calgary, Alberta, Canada
The <join> element allows you to map a entity to multiple tables. However, this feature is not in 1.2GA. Download the source from the current trunk or manually apply the patch to the 1.2GA source. See JIRA issue 466.

For documentation on this feature, look at the Java Hibernate docs for now.

_________________
Karl Chu


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.