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

Hardy Ferentschik (JIRA) noreply at atlassian.com
Wed Jun 4 10:23:37 EDT 2008


    [ http://opensource.atlassian.com/projects/hibernate/browse/ANN-718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_30333 ] 

Hardy Ferentschik commented on ANN-718:
---------------------------------------

Replaced Column.getName with Column.getQuotedName() in Ejb3joinColumn. That should do the trick.

> @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
>            Assignee: Hardy Ferentschik
>            Priority: Critical
>             Fix For: 3.3.2, 3.4.0.CR2
>
>         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