Skip to content

Commit ce95ffe

Browse files
committed
HHH-9460 - Removing non-optional bidirectional @OnetoOne association with cascade
Add entity name so that the underlying table uses it instead of the nested class name
1 parent 19e9bfe commit ce95ffe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hibernate-core/src/test/java/org/hibernate/test/onetoone/optional/BidirectionalOptionalOneToOneTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void test() {
5555
} );
5656
}
5757

58-
@javax.persistence.Entity
58+
@javax.persistence.Entity( name = "Parent" )
5959
public static class Parent {
6060

6161
@Id
@@ -79,7 +79,7 @@ public void setChild(Child child) {
7979

8080
}
8181

82-
@javax.persistence.Entity
82+
@javax.persistence.Entity( name = "Child" )
8383
public static class Child {
8484

8585
@Id

0 commit comments

Comments
 (0)