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 |