Posts by Miltex • 11 points
1 post
-
1
votes1
answer486
viewsQ: How do I make a Onetomany Unidirectional relationship with joincolumn mandatory?
How do I make this relationship mandatory when the in persist.() be executed? I don’t want to map bidirectional. @OneToMany(cascade = {CascadeType.ALL}) @JoinColumn(name =…