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 |