[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-4647) Problems with @JoinColumn referencedColumnName and quoted column and table names

Sharath Reddy (JIRA) noreply at atlassian.com
Sat Jul 3 11:19:14 EDT 2010


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sharath Reddy resolved HHH-4647.
--------------------------------

    Resolution: Fixed

> Problems with @JoinColumn referencedColumnName and quoted column and table names
> --------------------------------------------------------------------------------
>
>                 Key: HHH-4647
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4647
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: annotations, core
>    Affects Versions: 3.5.0-Beta-2
>         Environment: current CVS, not database platform dependent
>            Reporter: Peter Brant
>            Assignee: Sharath Reddy
>             Fix For: 3.5.x, 3.6
>
>         Attachments: hibernate-annotations.patch, hibernate-core.patch, test-case.zip
>
>
> There are really two separate issues here, but the test case reduction and patches are so small (and involve related functionality) they are combined.
> #1: A referencedColumnName that references a quoted target column cannot be found.  The test case is app.TestReferencedColumnName#testQuotedReferencedColumnName().  The patch is hibernate-annotations.patch.
> #2: An invalid referencedColumnName (including the unquoted version of a valid column) results in an infinite loop in o.h.c.Configuration$MappingsImpl#getPhysicalColumnName().  The test case is app.TestReferencedColumnName#testInvalidReferencedColumnNameOnQuotedTable.  The patch is hibernate-core.patch.  It looks like the same issue exists with getLogicalColumnName(), but I'm not sure where this is used (i.e. how to test it) so I left it alone.

-- 
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

        


More information about the hibernate-issues mailing list