Posts by E. Nikolas de Oliveira • 101 points
1 post
-
0
votes2
answers3140
viewsA: Onetoone JPA 2.2 Unidirectional Mapping
To solve the problem, simply make use of Annotation @Prepersist, and invert entity mapping ( @Onetoone must be in the Bodyparthit class.java) Bodyparthit.java @Entity @Table(name = "body_part_hit")…