Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFB isIdentical()

 
Santosh Ramachandrula
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Reference: HFB
page: 148
On the above page the author says that isIdentical()--lets you compare two home or component interfaces to see if they refer to "meaningfully equivalent" beans on the server but I was going through the API only EJBObject and EJBLocalObject use this method to compare the references
So isIdentical() can't be used to compare home references. Am I right?
 
Joyce Lee
Ranch Hand
Posts: 1392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you're right. IsIdentical is used to compare two EJB(Local)Objects.
Joyce
[ April 10, 2004: Message edited by: Joyce Lee ]
 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I too reckon U guys are right.
I have added this error to the unconfirmed errata list at the Oreilly site.
 
Mikalai Zaikin
Ranch Hand
Posts: 3371
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
howdy,
there are 2 ways to compare Entity Beans :
1. using isIdentical(..)
2. using equals() for PKs of those beans
details are here.
cheers !
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic