File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed
hibernate-core/src/main/java/org/hibernate/engine/spi
hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/orphan Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -205,9 +205,7 @@ public String toString() {
205
205
public static final CascadeStyle DELETE_ORPHAN = new BaseCascadeStyle () {
206
206
@ Override
207
207
public boolean doCascade (CascadingAction action ) {
208
- return action == CascadingActions .DELETE ||
209
- action == CascadingActions .SAVE_UPDATE ||
210
- action == CascadingActions .PERSIST_ON_FLUSH ;
208
+ return action == CascadingActions .DELETE || action == CascadingActions .SAVE_UPDATE ;
211
209
}
212
210
213
211
@ Override
Original file line number Diff line number Diff line change 30
30
import org .junit .Test ;
31
31
32
32
import org .hibernate .jpa .test .BaseEntityManagerFunctionalTestCase ;
33
+ import org .hibernate .testing .FailureExpected ;
33
34
import org .hibernate .testing .TestForIssue ;
34
35
35
36
import static org .junit .Assert .assertEquals ;
@@ -67,7 +68,8 @@ private void cleanupData() {
67
68
}
68
69
69
70
@ Test
70
- @ TestForIssue ( jiraKey = "HHH-9330" )
71
+ @ TestForIssue ( jiraKey = "HHH-9568" )
72
+ @ FailureExpected ( jiraKey = "HHH-9568" )
71
73
public void testOrphanedWhileManaged () {
72
74
createData ();
73
75
@@ -100,7 +102,8 @@ public void testOrphanedWhileManaged() {
100
102
}
101
103
102
104
@ Test
103
- @ TestForIssue ( jiraKey = "HHH-9330" )
105
+ @ TestForIssue ( jiraKey = "HHH-9568" )
106
+ @ FailureExpected ( jiraKey = "HHH-9568" )
104
107
public void testOrphanedWhileManagedMergeOwner () {
105
108
createData ();
106
109
@@ -134,7 +137,8 @@ public void testOrphanedWhileManagedMergeOwner() {
134
137
}
135
138
136
139
@ Test
137
- @ TestForIssue ( jiraKey = "HHH-9330" )
140
+ @ TestForIssue ( jiraKey = "HHH-9568" )
141
+ @ FailureExpected ( jiraKey = "HHH-9568" )
138
142
public void testReplacedWhileManaged () {
139
143
createData ();
140
144
Original file line number Diff line number Diff line change @@ -49,7 +49,6 @@ public Class[] getAnnotatedClasses() {
49
49
50
50
@ Test
51
51
@ TestForIssue (jiraKey = "HHH-9568" )
52
- @ FailureExpected (jiraKey = "HHH-9568" )
53
52
public void testFlushTransientOneToOneNoCascade () throws Exception {
54
53
EntityManager em = getOrCreateEntityManager ();
55
54
em .getTransaction ().begin ();
You can’t perform that action at this time.
0 commit comments