[ http://jira.jboss.com/jira/browse/EJBTHREE-39?page=history ]
Bill Burke updated EJBTHREE-39:
-------------------------------
Version: Preview 3
Fix Version: Preview 3
> 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
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development