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

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -