Hi,
I have two entities - Parent and Child, the relationship is "mapped"
using the mappedBy annotations.
Both entities are using Key type as the pk, which is manually
generated during the instantiation of the object.
When the PK is generated for the Child, parent information in the
child key is
I think I have found a solution to the problem.
Note: in the solution, I have assumed that there is no way I could
retrieve the key after persisting the child entity without an
additional query.
In order to achieve what I need, the key of the child entity has to be
manually created with the