Multiple choice technology architecture

EJB 3.0 offers simplified entity programming model. Which of the following describe these new simplified features with regard to EJB 3.0 and Java Persistence API?

  1. In EJB 3.0, persistent fields must be identified through deployment descriptor.

  2. The persistent state of an entity is represented either by its persistent fields or persistent properties.

  3. For an EJB 3.0 entity, you no longer need to code interfaces such as LocalAddressHome and LocalAddress.

  4. In the Java Persistence API, you do not not need to provide an XML descriptor to specify an entity's primary key.

  5. Java Persistence API is simplified by removing support for complex relationships between Entities.

Reveal answer Fill a bubble to check yourself
B,C,D Correct answer
Explanation

EJB 3.0 entities can use field or property-based persistence access, specified by annotations rather than XML descriptors. The complex home/local interface requirements (Home/LocalHome) are eliminated. JPA supports complex relationships (one-to-many, many-to-many) and still uses annotations or XML for primary key specification.