• 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic