Unidirectional OneToOne relationship is not working #25901
-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
Hi, The thing that you put into bracket is the name of the relationship. I guess that the framework miss a fatal exception here.
Plus posting a bug on this issues tracker please ;-) |
Beta Was this translation helpful? Give feedback.
-
Use ManyToOne instead of OneToOne. OneToOne is bidirectional in JHipster because once the generator finds the OneToOne type on the left side, it creates the back reference. |
Beta Was this translation helpful? Give feedback.
Use ManyToOne instead of OneToOne.
OneToOne is bidirectional in JHipster because once the generator finds the OneToOne type on the left side, it creates the back reference.
Constraints will be created in the back reference to make it a OneToOne relationship, otherwise it’s effectively a ManyToOne relationship.