Eqal rows in key and many-to-many mapping causes a "org.hibernate.MappingException: Repeated column in mapping for collection:"
--------------------------------------------------------------------------------------------------------------------------------
Key: HHH-1966
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1966
Project: Hibernate3
Type: Bug
Reporter: Martin Graml
There are 2 Tables
Table A contains Project items with different attributes
Table B contains the linking between this Project items
Each item can have 0..n Subitems
<hibernate-mapping>
<class name="ProjectItem"table="project_items">
<composite-id>
<key-property name="ItemNumber" type="string" column="Item_Number" />
<key-property name="ProjectNumber" type="string" column="Project_Number" />
</composite-id>
....
....
<map name="SubItems" table="Project_Item_Linking" sort="natural">
<key>
<column name="is_part_of" />
<column name="Project_Number" />
</key>
<index column="Position" type="integer" />
<many-to-many class="ProjectItem">
<column name="Item_Number" />
<column name="Project_Number" />
</many-to-many>
</map>
--
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
|