|
From: <leg...@at...> - 2003-08-12 07:57:01
|
Message:
The following issue has been closed.
Resolver: Gavin King
Date: Tue, 12 Aug 2003 2:54 AM
It might have "worked" in the sense of not throwing an exception .... but it would have been semantically incorrect. That set mapping can only contain one element!
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-248
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-248
Summary: Repeated column in mapping
Type: Bug
Status: Closed
Priority: Major
Resolution: REJECTED
Project: Hibernate2
Versions:
2.1 beta 1
Assignee:
Reporter: Alessandro Vernet
Created: Mon, 11 Aug 2003 8:02 PM
Updated: Tue, 12 Aug 2003 2:54 AM
Description:
Declaring in a mapping:
<set name="employeeIds" table="owf_employee_region">
<key column="employee_id"/>
<element column="employee_id" type="long"/>
</set>
Throws the exception:
net.sf.hibernate.MappingException: Repeated column in mapping for collection: bean.Region.employeeIds column: employee_id
at net.sf.hibernate.collection.CollectionPersister.checkColumnDuplication(CollectionPersister.java:884)
at net.sf.hibernate.collection.CollectionPersister.<init>(CollectionPersister.java:193)
at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:146)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:647)
I think this used to work with 2.0.2.
Alex
---------------------------------------------------------------------
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
|