Issue Type: Bug Bug
Assignee: Unassigned
Attachments: cascadetype-test.zip
Created: 30/Jul/12 4:02 AM
Description:

From the CascadeType javadoc:

The value <code>cascade=ALL</code> is equivalent to

  • <code>cascade={PERSIST, MERGE, REMOVE, REFRESH, DETACH}</code>

However these cases are not equivalent - children entities are not persisted with the combination of types, but are persisted with the single CascadeType.ALL

Simple test case is in the attachemnt.

Environment: Hibernate 4.1.5.SP1
Databases: H2 1.2.145 and Oracle 11g
Project: Hibernate ORM
Priority: Major Major
Reporter: Ivan Sopov
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira