• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SCEA 5 / 1 - JPA question

 
Steven Colley
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi..what is the meaning of "backpointer reference in a bidirectional relationship"??

tkks!
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12014
220
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Felipe",

Please check your private messages for an important administrative matter.

Thanks, Andrew
 
giuseppe fanuzzi
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a bidirectional relationship between entity A and entity B, an object of type A (objA) have a reference with an object of B (objB), and that object of B (objB) have a "backpointer reference" with the same object of type A (objA).

if you call:
objA.setB(objB)

then:
objB.getA() is objA
 
Steven Colley
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ahh...right!! stupid!! haven't heard about this expression before "backpointer"..

Tks guys!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic