From: Michael M. (JIRA) <no...@at...> - 2006-05-31 05:08:19
|
<set> inside of a <join> ------------------------ Key: HHH-1797 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1797 Project: Hibernate3 Type: Improvement Components: metamodel, core Environment: n/a Reporter: Michael Masters I want to be able to use the following mapping. The problem I face is that a <set> cannot exist in a <join>. <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <hibernate-mapping package="com.digitaldarwin.hibernate.model"> <class name="Event" table="Event"> <id name="id" column="eventId"> <generator class="native"> <param name="sequence">event_eventid_seq</param> </generator> </id> <discriminator column="eventType" type="string"/> <subclass name="Enforcement" discriminator-value="enforcement"> <join table="Enforcement"> <key column="eventId"/> <property name="name" column="name"/> </join> </subclass> <subclass name="LicensePlateSuspend" discriminator-value="license plate suspend"> <join table="LicensePlateSuspend"> <key column="licensePlateSuspendId"/> <set name="licensePlates"> <key> <column name="licensePlateSuspendId"/> <column name="licensePlate"/> </key> <one-to-many class="LicensePlate"/> </set> </join> </subclass> </class> </hibernate-mapping> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |