-->
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: Store childdata of two classes in one table
PostPosted: Mon Jul 30, 2007 9:58 am 
Newbie

Joined: Wed Apr 25, 2007 8:23 am
Posts: 8
Hi,

how to map this:

Code:
class A {
Set<class C>
}


Code:
class B {
Set<class C>
}



Every class should be mapped to one table.

I haven't found any solution, yet.

Thanks !

(Using Hibernate3)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 30, 2007 1:35 pm 
Expert
Expert

Joined: Fri May 13, 2005 11:13 am
Posts: 292
Location: Rochester, NY
Try reposting to the hibernate forum... this is the .NET NHibernate forum. FWIW, though, there doesn't seem to be any reason why you couldn't map this like you would any other <set>.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 31, 2007 4:10 am 
Newbie

Joined: Wed Apr 25, 2007 8:23 am
Posts: 8
You're right, reposted to the hibernate forum.


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.