2

Possible Duplicate:
What is the difference between Unidirectional and Bidirectional associations?

Under which circumstances or which criteria should I follow in order to choose between unidirectional and bidirectional relationships in JPA?

Community
  • 1
  • 1
Mary
  • 29
  • 1
  • Errm, if a relation is unidirectional (i.e one side needs to know of the other) then you make it that, and if bidirectional (both sides need to know of the other) then do that. JPA is there simply to reflect your model. and. nothing. else. – DataNucleus Oct 23 '11 at 11:09
  • 2
    Having an association, even if not exposed to the outside, can also ease the writing od JPQL queries. – JB Nizet Oct 23 '11 at 11:16

0 Answers0