java - Hibernate Multiple @OneToOne all with the same id -
java - Hibernate Multiple @OneToOne all with the same id -
i have 3 classes
1- narrative
2- narrativedata
3- narrativesponsershipe
the narrative
class has onetoone
relation both narrativedata
, narrativesponership
.
i need 3 classes have same id. in other words, need 3 classes mapped using id.
the id of narrative
class annotated using genericgenerator
, property parameter's value set associated narrativedata
field. way narrative
, narrativedata
has same id narrativesponsership
take id.
how can accomplish 3 classes having same id?
java hibernate jpa
Comments
Post a Comment