Multiple choice technology architecture

Which of the following are true about composite primary keys. ?

  1. The primary key class must be Serializable

  2. The application must not change the value of the primary key.

  3. Properties of primary key class must be public or protected.

  4. Primary key class must be public

  5. All the above

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

All four statements are true for composite primary keys in EJB: the primary key class must be Serializable to be persisted, its value must not change after entity creation (it's immutable), properties must be public or protected for container access, and the class itself must be public. Option E correctly captures this.