mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-03-01 07:19:15 +00:00
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:
parent
19e9bfe303
commit
ce95ffe441
@ -55,7 +55,7 @@ public void test() {
|
|||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
|
|
||||||
@javax.persistence.Entity
|
@javax.persistence.Entity( name = "Parent" )
|
||||||
public static class Parent {
|
public static class Parent {
|
||||||
|
|
||||||
@Id
|
@Id
|
||||||
@ -79,7 +79,7 @@ public void setChild(Child child) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@javax.persistence.Entity
|
@javax.persistence.Entity( name = "Child" )
|
||||||
public static class Child {
|
public static class Child {
|
||||||
|
|
||||||
@Id
|
@Id
|
||||||
|
Loading…
x
Reference in New Issue
Block a user