[jboss-jira] [JBoss JIRA] (HIBERNATE-93) Missing referencedColumnName attribute in @JoinColumn annotation should log error

James Kelly (JIRA) issues at jboss.org
Thu Nov 19 12:58:00 EST 2015


    [ https://issues.jboss.org/browse/HIBERNATE-93?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13131049#comment-13131049 ] 

James Kelly commented on HIBERNATE-93:
--------------------------------------

Seven years later.

> Missing referencedColumnName attribute in @JoinColumn annotation should log error
> ---------------------------------------------------------------------------------
>
>                 Key: HIBERNATE-93
>                 URL: https://issues.jboss.org/browse/HIBERNATE-93
>             Project: Hibernate Integration
>          Issue Type: Feature Request
>         Environment: Hibernate 3.2.4 SP1
>            Reporter: James Kelly
>            Assignee: Steve Ebersole
>
> This is specifically when a @JoinColumn is part of a @JoinColumns annotation. The spec wording is:
> "When the JoinColumns annotation is used, both the name and the referencedColumnName elements must be specified in each such JoinColumn annotation."
> Hibernate accepts JoinColumn annotations with the missing referencedColumnName even though this causes unpredictable behavior. 



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list