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
This commit is contained in:
Vlad Mihalcea 2017-02-02 13:05:50 +02:00
parent 19e9bfe303
commit ce95ffe441

View File

@ -55,7 +55,7 @@ public void test() {
} );
}
@javax.persistence.Entity
@javax.persistence.Entity( name = "Parent" )
public static class Parent {
@Id
@ -79,7 +79,7 @@ public void setChild(Child child) {
}
@javax.persistence.Entity
@javax.persistence.Entity( name = "Child" )
public static class Child {
@Id