From: <leg...@at...> - 2003-08-04 05:27:14
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-226 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-226 Summary: Duplicate column error reported for discriminator Type: Bug Status: Unassigned Priority: Critical Project: Hibernate2 Components: core Versions: 2.0.2 Assignee: Reporter: Tomislav Bodor Created: Mon, 4 Aug 2003 12:27 AM Updated: Mon, 4 Aug 2003 12:27 AM Environment: Not specific to operating system or particular environment Description: It appears that one of the changes in version 2.0.2 was to add a check for repeated column mappings. Unfortunately, declaring a discriminator column counts as mapping, though it does not make the column available in the mapped entity. If such a mapping is added using the property tag, a "Repeated column in mapping..." error is reported. Upon checking in the CVS repository, the change was made to EntityPersister class, between versions 1.35 and 1.36, to add ckecks for duplicate column mappings. This was relaxed in 1.37, but not sufficiently. It appears that line 703 (in 2.0.2) should be removed: distinctColumns.add(discriminatorColumnName); This issue makes it impossible to map an inheritance hierarchy to a single table and still have the discriminator available through a getter method in the mapped entity. Could someone please confirm this and issue a fix or suggest a workaround? Regards, Tomislav --------------------------------------------------------------------- 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 |