[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-4887?page=c...
]
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira