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

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -