• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Coffee cram No. 46

 
Micheal Jacob
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
46. What is true about entity bean's primary type ?

a. Primary key fields must be cmp-fields.
b. setter methods for fields associated with a primary key must not be exposed through a client view
c. if two entity objects have the same home and same primary key, they are considered identical
d. the getPrimaryKey() method can be invoked on references to only remote home interfaces, not local home interfaces.

Ans : b, c

Why option a is not correct ?
My understanding is, even it is a compound key, the primary key's should be among cmp fields.

Any suggestion is appreciated.

Micheal.
 
Greg Charles
Sheriff
Posts: 3002
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answers are A, B, C in my book. Maybe you have an old edition?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic