[ http://jira.jboss.com/jira/browse/EJBTHREE-39?page=history ] Bill Burke closed EJBTHREE-39: ------------------------------
Resolution: Done > Composite Key field in JoinColumn causes Repeated column in mapping > ------------------------------------------------------------------- > > Key: EJBTHREE-39 > URL: http://jira.jboss.com/jira/browse/EJBTHREE-39 > Project: EJB 3.0 > Type: Bug > Versions: Preview 3 > Environment: jboss-4.0.1RC1, EBJ Preview II > Reporter: Grayson Pierce > Assignee: Bill Burke > Fix For: Preview 3 > Attachments: Composite.zip > > > When a field is part of a composite key (via @Dependent) is also referenced > in a JoinColumn for a OneToMany or ManyToOne relationship Hiberate produces > the following error: > I Depend On: > Depends On Me: org.hibernate.MappingException: Repeated column in mapping > for c > lass org.jboss.tutorial.composite.bean.Customer should be mapped with > insert="false" update="false": flightId > According to Hibernate discussions this problem can be fixed by marking the > OneToMany as "update=false, insert=false" however this doesn't seem to be > part of the 3.0 spec. > For Example: > http://forum.hibernate.org/viewtopic.php?t=927072&highlight= > <many-to-one name="mtcepByCcidAndNcell" > update="false" > insert="false" > > class="se.ericsson.lmc.ccl.model.dto.temp_lmcfrob_hbm.hibernate.Mtcep"> > <column name="ccid"/> > <column name="ncell"/> > </many-to-one> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development