From: Dennis C. B. (JIRA) <no...@at...> - 2005-09-30 16:25:22
|
hbm2java w/ ejb3=true generates eager @OneToMany ------------------------------------------------ Key: HBX-414 URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-414 Project: Hibernate Tools Type: Bug Components: hbm2java Versions: 3.1LATER Environment: Eclipse 3.1, hibernate.jar and hibernate-tools.jar from JBossIDE-N200509280156-AL . Reporter: Dennis C. Byrne Using hbm2java w/ @ejb=true, all sets of the project are generated w/ eager relationships... @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER) @JoinColumn(name = "assess_meth_cd") public Set<gov.blm.ak.arims.generated.Study> getStudies() { return this.studies; } Below is an hbm.xml snippet ... <set name="studies" lazy="false" inverse="true"> <key> <column name="assess_meth_cd" length="1" /> </key> <one-to-many class="Study" /> </set> -- 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 |
From: Max R. A. (JIRA) <no...@at...> - 2005-09-30 16:39:17
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HBX-414?page=all ] Max Rydahl Andersen reassigned HBX-414: --------------------------------------- Assign To: Emmanuel Bernard emmanual can you have a look at this one ? and Dennis, please stop put @ in front of settings that has nothing to do with annotations - it hurt my eyes and confuses my sleepy mind ;) > hbm2java w/ ejb3=true generates eager @OneToMany > ------------------------------------------------ > > Key: HBX-414 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-414 > Project: Hibernate Tools > Type: Bug > Components: hbm2java > Versions: 3.1LATER > Environment: Eclipse 3.1, hibernate.jar and hibernate-tools.jar from JBossIDE-N200509280156-AL . > Reporter: Dennis C. Byrne > Assignee: Emmanuel Bernard > > > Using hbm2java w/ @ejb=true, all sets of the project are generated w/ eager relationships... > @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER) > @JoinColumn(name = "assess_meth_cd") > public Set<gov.blm.ak.arims.generated.Study> getStudies() { > return this.studies; > } > Below is an hbm.xml snippet ... > <set name="studies" lazy="false" inverse="true"> > <key> > <column name="assess_meth_cd" length="1" /> > </key> > <one-to-many class="Study" /> > </set> -- 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 |
From: Emmanuel B. (JIRA) <no...@at...> - 2005-10-02 21:37:25
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HBX-414?page=all ] Emmanuel Bernard resolved HBX-414: ---------------------------------- Resolution: Fixed Fix Version: 3.1beta1 Fixed already in CVS > hbm2java w/ ejb3=true generates eager @OneToMany > ------------------------------------------------ > > Key: HBX-414 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-414 > Project: Hibernate Tools > Type: Bug > Components: hbm2java > Versions: 3.1LATER > Environment: Eclipse 3.1, hibernate.jar and hibernate-tools.jar from JBossIDE-N200509280156-AL . > Reporter: Dennis C. Byrne > Assignee: Emmanuel Bernard > Fix For: 3.1beta1 > > > Using hbm2java w/ @ejb=true, all sets of the project are generated w/ eager relationships... > @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER) > @JoinColumn(name = "assess_meth_cd") > public Set<gov.blm.ak.arims.generated.Study> getStudies() { > return this.studies; > } > Below is an hbm.xml snippet ... > <set name="studies" lazy="false" inverse="true"> > <key> > <column name="assess_meth_cd" length="1" /> > </key> > <one-to-many class="Study" /> > </set> -- 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 |
From: Dennis C. B. (JIRA) <no...@at...> - 2005-10-05 16:37:21
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HBX-414?page=comments#action_20118 ] Dennis C. Byrne commented on HBX-414: ------------------------------------- Hi Emmanuel, I first noticed this w/ a build from the beginning of sep. At the time, *all* relationships were eager. When I moved to the sep28 build, I noticed that *most* of relationships were generated as lazy. I agree with you as far as most of the problem being fixed. I am nevertheless getting eager fetching for the inverse sides of all bi-directional one-to-many relationships using JBossIDE-N200510041540-ALL . > hbm2java w/ ejb3=true generates eager @OneToMany > ------------------------------------------------ > > Key: HBX-414 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-414 > Project: Hibernate Tools > Type: Bug > Components: hbm2java > Versions: 3.1LATER > Environment: Eclipse 3.1, hibernate.jar and hibernate-tools.jar from JBossIDE-N200509280156-AL . > Reporter: Dennis C. Byrne > Assignee: Emmanuel Bernard > Fix For: 3.1beta1 > > > Using hbm2java w/ @ejb=true, all sets of the project are generated w/ eager relationships... > @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER) > @JoinColumn(name = "assess_meth_cd") > public Set<gov.blm.ak.arims.generated.Study> getStudies() { > return this.studies; > } > Below is an hbm.xml snippet ... > <set name="studies" lazy="false" inverse="true"> > <key> > <column name="assess_meth_cd" length="1" /> > </key> > <one-to-many class="Study" /> > </set> -- 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 |
From: Emmanuel B. (JIRA) <no...@at...> - 2005-10-05 16:59:15
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HBX-414?page=comments#action_20119 ] Emmanuel Bernard commented on HBX-414: -------------------------------------- Of course with lazy false, <set name="studies" lazy="false" /> > hbm2java w/ ejb3=true generates eager @OneToMany > ------------------------------------------------ > > Key: HBX-414 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-414 > Project: Hibernate Tools > Type: Bug > Components: hbm2java > Versions: 3.1LATER > Environment: Eclipse 3.1, hibernate.jar and hibernate-tools.jar from JBossIDE-N200509280156-AL . > Reporter: Dennis C. Byrne > Assignee: Emmanuel Bernard > Fix For: 3.1beta1 > > > Using hbm2java w/ @ejb=true, all sets of the project are generated w/ eager relationships... > @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER) > @JoinColumn(name = "assess_meth_cd") > public Set<gov.blm.ak.arims.generated.Study> getStudies() { > return this.studies; > } > Below is an hbm.xml snippet ... > <set name="studies" lazy="false" inverse="true"> > <key> > <column name="assess_meth_cd" length="1" /> > </key> > <one-to-many class="Study" /> > </set> -- 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 |
From: Dennis C. B. (JIRA) <no...@at...> - 2005-10-05 17:27:19
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HBX-414?page=comments#action_20122 ] Dennis C. Byrne commented on HBX-414: ------------------------------------- Please excuse the typo. I think you will find the same behavior w/ no lazy attribute, or by setting it to true. > hbm2java w/ ejb3=true generates eager @OneToMany > ------------------------------------------------ > > Key: HBX-414 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-414 > Project: Hibernate Tools > Type: Bug > Components: hbm2java > Versions: 3.1LATER > Environment: Eclipse 3.1, hibernate.jar and hibernate-tools.jar from JBossIDE-N200509280156-AL . > Reporter: Dennis C. Byrne > Assignee: Emmanuel Bernard > Fix For: 3.1beta1 > > > Using hbm2java w/ @ejb=true, all sets of the project are generated w/ eager relationships... > @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER) > @JoinColumn(name = "assess_meth_cd") > public Set<gov.blm.ak.arims.generated.Study> getStudies() { > return this.studies; > } > Below is an hbm.xml snippet ... > <set name="studies" lazy="false" inverse="true"> > <key> > <column name="assess_meth_cd" length="1" /> > </key> > <one-to-many class="Study" /> > </set> -- 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 |
From: Dennis C. B. (JIRA) <no...@at...> - 2005-10-09 20:37:32
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HBX-414?page=all ] Dennis C. Byrne updated HBX-414: -------------------------------- Attachment: AnnotationsTestCase.tar see GeneratedFetchModeTest jars are from HibernateTools-3.1.0.N200510071908 > hbm2java w/ ejb3=true generates eager @OneToMany > ------------------------------------------------ > > Key: HBX-414 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-414 > Project: Hibernate Tools > Type: Bug > Components: hbm2java > Versions: 3.1LATER > Environment: Eclipse 3.1, hibernate.jar and hibernate-tools.jar from JBossIDE-N200509280156-AL . > Reporter: Dennis C. Byrne > Assignee: Emmanuel Bernard > Fix For: 3.1beta1 > Attachments: AnnotationsTestCase.tar > > > Using hbm2java w/ @ejb=true, all sets of the project are generated w/ eager relationships... > @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER) > @JoinColumn(name = "assess_meth_cd") > public Set<gov.blm.ak.arims.generated.Study> getStudies() { > return this.studies; > } > Below is an hbm.xml snippet ... > <set name="studies" lazy="false" inverse="true"> > <key> > <column name="assess_meth_cd" length="1" /> > </key> > <one-to-many class="Study" /> > </set> -- 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 |
From: Max R. A. (JIRA) <no...@at...> - 2005-10-22 11:50:14
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HBX-414?page=all ] Max Rydahl Andersen closed HBX-414: ----------------------------------- > hbm2java w/ ejb3=true generates eager @OneToMany > ------------------------------------------------ > > Key: HBX-414 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-414 > Project: Hibernate Tools > Type: Bug > Components: hbm2java > Versions: 3.1LATER > Environment: Eclipse 3.1, hibernate.jar and hibernate-tools.jar from JBossIDE-N200509280156-AL . > Reporter: Dennis C. Byrne > Assignee: Emmanuel Bernard > Fix For: 3.1beta1 > Attachments: AnnotationsTestCase.tar > > > Using hbm2java w/ @ejb=true, all sets of the project are generated w/ eager relationships... > @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER) > @JoinColumn(name = "assess_meth_cd") > public Set<gov.blm.ak.arims.generated.Study> getStudies() { > return this.studies; > } > Below is an hbm.xml snippet ... > <set name="studies" lazy="false" inverse="true"> > <key> > <column name="assess_meth_cd" length="1" /> > </key> > <one-to-many class="Study" /> > </set> -- 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 |