[hibernate-issues] [Hibernate-JIRA] Resolved: (ANN-400) @JoinColumn referencedColumnName does not find columns that are not directly in the associated entity

Emmanuel Bernard (JIRA) noreply at atlassian.com
Fri Aug 25 18:11:28 EDT 2006


     [ http://opensource.atlassian.com/projects/hibernate/browse/ANN-400?page=all ]
     
Emmanuel Bernard resolved ANN-400:
----------------------------------

    Resolution: Cannot Reproduce

Works for me

> @JoinColumn referencedColumnName does not find columns that are not directly in the associated entity
> -----------------------------------------------------------------------------------------------------
>
>          Key: ANN-400
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-400
>      Project: Hibernate Annotations
>         Type: Bug

>   Components: binder
>  Environment: 3.2.0.CR1
>     Reporter: Alex Bacon
>     Priority: Minor

>
>
> I attempted to use @JoinColumn(referencedColumnName="id") to map to a property that was not in the associated entity class directly but rather in a MappedSuperclass that the entity extends.   It did not find it.   Stepping through the code it appears that  in org.hibernate.cfg.BinderHelper in the Annotations project - the method findPropertiesByColumns is not finding properties that are not directly in the associated entity - it is not searching MappedSuperclasses as well.

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