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 |