I am new to JPA.I am confused in Directionality.
If we have two entities say Employee and Project.what does it really mean they are bidirectional relationship??
James Sutherland wrote:If they both have a relationship to each other, then they have a bi-directional relationship.
i.e.
Shashank Dwivedi wrote: yes but that means many to many is always bidirectional right?
Shashank Dwivedi wrote: Ok I think I got it.
Can we check Directionality with -HAS- test.
for example, say we have two entities Employee and Address.Now Employee has a address but address don't need to have a Employee so it is uni-directional.
And again if we have two entities Employee and Project.Now Employee has project and project also has employee so it is a bi-directional mapping.
Am I Correct??
--
Shashank Dwivedi
Do Re Mi Fa So La Tiny Ad
a bit of art, as a gift, that will fit in a stocking