]
Jesse Hutton commented on HHH-5028:
-----------------------------------
Problem still exists with 3.5.1-Final. See test app (and update pom.xml to correct
version).
Calling em.remove() on child object @OneToMany relationship when
CascadeType.ALL and FetchType.EAGER are set throws exception
-----------------------------------------------------------------------------------------------------------------------------
Key: HHH-5028
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5028
Project: Hibernate Core
Issue Type: Bug
Components: entity-manager
Affects Versions: 3.5.0-CR-2
Environment: Confirmed bug using MySQL, PostgreSQL, and Hsqldb, which is what the
test is configured with. Hibernate version is 3.5.0-CR-2 (see test app pom.xml)
Reporter: Jesse Hutton
Attachments: HibernateManyToOneEagerRemove.tar.gz
Calling em.remove(foo) on the child object of a @OneToMany relationship that is defined
with CascadeType.ALL and FetchType.EAGER throws an Exception. The cause is given as:
javax.persistence.EntityNotFoundException: deleted entity passed to persist:
And all I'm doing in the test is removing an object. See attached test case.
If, however, I remove FetchType.EAGER from the @OneToMany relationship, no exception is
thrown.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: