• Post Reply Bookmark Topic Watch Topic
  • New Topic

isIdentical?

 
Devender Thareja
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If two different type of bean (different home), have same primary key. What will isIdentical return of two instance have same key value but actually are different beans?

Thanks.
 
Sankar Subbiramaniam
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Two entity beans will be equal if and only if they meet the following criteria.
1) The both have the same home interface
2) They both have the same primary key

Now you can infer yourself what isidentical(9 would return.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!