[hibernate-issues] [Hibernate-JIRA] Closed: (HBX-403) hbm2java ejb3=true generates multiple @Column tags for tables with composite ids

Steve Ebersole (JIRA) noreply at atlassian.com
Mon Mar 21 13:00:56 EDT 2011


     [ http://opensource.atlassian.com/projects/hibernate/browse/HBX-403?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Ebersole closed HBX-403.
------------------------------


Closing stale resolved issues

> hbm2java ejb3=true generates multiple @Column tags for tables with composite ids
> --------------------------------------------------------------------------------
>
>                 Key: HBX-403
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-403
>             Project: Hibernate Tools
>          Issue Type: Bug
>          Components: hbm2java
>    Affects Versions: 3.1alpha5
>         Environment: Hibernate 3.1B1, Hibernate Tools 3.1A5, bug appears on mysql and oracle, probably others as well.
>            Reporter: Egor Elagin
>            Assignee: Emmanuel Bernard
>             Fix For: 3.1beta1
>
>   Original Estimate: 56h
>  Remaining Estimate: 56h
>
> Currently the task generates the following property accessor:
>          @Id(generate = GeneratorType.AUTO)
>           @Column(name = "composite_id_column_1")
>    @Column(name = "composite_id_column_2")
>      public ClassNameId getId() {
>         return this.id;
>     }
> Compilation of this fails with duplicate @Column tag. Instead, it should generate the following:
>          @EmbeddedId
>      public ClassNameId getId() {
>         return this.id;
>     }
> ClassNameId is generated correctly and does not need to be changed.

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