Multiple Spring JPA relationships between 2 entities
Solution 1:
You do not need to map all things in an Entity , and also do not need to configure every relationships as bi-directional.
So if you really do not need to access the Tasks
that are created and modified from a given User
, just ignore them and do not map them in User
.
It is perfectly valid to configure a relationship as unidirectional. Your existing codes should already work perfectly.