Hi all, I try to map the following:
A class A (attributes a_id, b) has a 1:1 association (unidirectional) to class B (attribute b_id). The association is persisted in a join table AB (attributes a_id, b_id, discriminator). The 1:1 association can be found with the aid of the discriminator (lets say discriminator must be 'X'). The incomplete solution (for the mapping file A) might be:
<join table="AB" optional="true"> <key column="a_id" unique="true"/> <many-to-one name="b" column="b_id" not-null="true" unique="true" class="B"/> </join> How can I add the additional condition "discriminator='X'" to the mapping ? Thanks for any help, Mike ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel