We're updating the issue view to help you get more done. 

CascadeType.ALL is not equivalent to the combination of all other types

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

Status

Assignee

Unassigned

Reporter

Ivan Sopov

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Priority

Major