-->
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.  [ 1 post ] 
Author Message
 Post subject: One/ManyToMany relation in MappedSuperclass
PostPosted: Tue Jun 29, 2010 3:46 am 
Newbie

Joined: Tue Jun 29, 2010 2:14 am
Posts: 8
Hi, I have a question regarding a superclass defining OneToMany and ManyToOne relations.
I have the following hierarchy:

BaseClass
|_ A
|_ B
|_ C

Comments

Each class (A, B, C) has a one to many relation to Comments.
DB tables are table_A, table_B, table_C and table_comments (and that must not be changed)

I would like to define a relation in the superclass so each child will use it.
Same problem as I can see it will be in case of MTM relation.
How that can be accomplished?
Thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.