From: <no...@at...> - 2005-03-02 23:26:05
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/browse/HHH-170 Here is an overview of the issue: --------------------------------------------------------------------- Key: HHH-170 Summary: unidirectional one to many; unique not allowed Type: Bug Status: Unassigned Priority: Blocker Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: Hibernate3 Components: core Versions: 3.0 rc 1 Assignee: Reporter: Michael Pell Created: Wed, 2 Mar 2005 5:25 PM Updated: Wed, 2 Mar 2005 5:25 PM Environment: MySql 4.1.9, JDK 1.4.2, Hibernate 3.0 rc1 Description: http://www.hibernate.org/hib_docs/v3/reference/en/html_single/#assoc-unidirectional-join-12m states how to specify a unidirectional 1:M relationship using the following: <class name="Person"> <id name="id" column="personId"> <generator class="native"/> </id> <set name="addresses" table="PersonAddress"> <key column="personId"/> <many-to-many column="addressId" unique="true" class="Address"/> </set> </class> However, Eclipse3.0 complains about the unique property with the following: Error - attribute "unique" name must be declared for element type "many-to-many" Here's exactly what's in my mapping xml file: <set name="addresses" table="person_address"> <key column="person_id"/> <many-to-many column="address_id" unique="true" class="com.netbookings.businessobjects.Address"/> </set> --------------------------------------------------------------------- JIRA INFORMATION: 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 If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |