[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-4887) @IdClass on derived entity fails when derived entity is persisted before the associated entity
Emmanuel Bernard (JIRA)
noreply at atlassian.com
Mon Feb 8 08:22:30 EST 2010
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4887?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=35504#action_35504 ]
Emmanuel Bernard commented on HHH-4887:
---------------------------------------
In case of @MapsId, we force PERSIST to @XToOne to ensure that
em.persist(derivedEntity);
em.persist(associatedEntity);
This was not the case when @IdClass was used. I've now fixed the problem but the issue still remains.
Actually even when manually setting @ManyToOne(cascade=CascadeType.PERSIST), the issue remains. Could there be an issue where the mapper class is hosting the @XToOne ?
> @IdClass on derived entity fails when derived entity is persisted before the associated entity
> ----------------------------------------------------------------------------------------------
>
> Key: HHH-4887
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4887
> Project: Hibernate Core
> Issue Type: Bug
> Components: core
> Affects Versions: 3.5.0-Beta-4
> Reporter: Emmanuel Bernard
>
--
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
More information about the hibernate-issues
mailing list