[hibernate-issues] [Hibernate-JIRA] Created: (ANN-718) @JoinTable / @JoinColumn fails when using backticks in PK field name

Bastian Voigt (JIRA) noreply at atlassian.com
Tue Mar 25 12:04:33 EDT 2008


@JoinTable / @JoinColumn fails when using backticks in PK field name
--------------------------------------------------------------------

                 Key: ANN-718
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-718
             Project: Hibernate Annotations
          Issue Type: Bug
    Affects Versions: 3.3.1.GA
         Environment: Database Firebird 2.0 / JayBird 2.1.1
Hibernate 3.2.6 GA
            Reporter: Bastian Voigt
            Priority: Critical
         Attachments: bug.zip

Firebird is case-sensitive with table names and column names. A legacy application I need to build upon uses lowercase field names, these need to be quoted in Hibernate with backticks or with "\"lowercase\"". I'm normally using the latter. This works fine, until the point where I needed to map a ManyToOne relation. 

For running the example you don't even need to install Firebird, it crashes before connecting to the DB.

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