-->
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: joined-subclass doesn't allow bidirectional association map
PostPosted: Thu Aug 10, 2006 4:06 am 
Newbie

Joined: Thu Mar 30, 2006 2:54 am
Posts: 11
Hi, I have mapped several classes as joned-subclass. I need use bidirectional association mapping with joined tables, but element <joined-subclass> doesn't allow use element <join> (as it is used within example Hibernate documentation 7.5.1)
My mapping xml looks like:

<class name="Contact" table="T_CONTACT" abstract="true">
...
<joined-subclass name="Proprietor" table="T_PROPRIETOR">
<key column="ID"/>
....
<set name="facilities" table="R_PROPRIETOR_FACILITY" cascade="all,delete-orphan">
<key column="ID_PROPRIETOR"/>
<many-to-many column="ID_FACILITY" class="Facility" unique="true"/>
</set>
</joined-subclass>

<joined-subclass name="Facility" table="T_FACILITY" abstract="true">
<key column="ID"/>
<!-- HERE I NEED USE JOIN element -->
</joined-subclass>
</class>

Does it exist any other possibility for map it???
Radim


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.