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

Peter Brant (JIRA) noreply at atlassian.com
Mon Dec 7 18:53:11 EST 2009


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