Which statement identifies a risk of adopting JPA?

You are consulting with a team that has maintained several legacy database for years. They
have reviewed the JPA spec and are wondering if the technology would offer benefits over
this current SQL base. Which statement identifies a risk of adopting JPA?

You are consulting with a team that has maintained several legacy database for years. They
have reviewed the JPA spec and are wondering if the technology would offer benefits over
this current SQL base. Which statement identifies a risk of adopting JPA?

A.
JPA doesn’t provides ACID semantics.

B.
JPA only works with well-known data models.

C.
JPA may be able to model every table as a class.

D.
JPA could render code that requires extensive SQL tuning to perform well.

E.
JPA’s query language relies on a container to manage the persistence layer.



Leave a Reply 3

Your email address will not be published. Required fields are marked *


coyote

coyote

D , jpa can running outside of container

Ashishkumar

Ashishkumar

D is correct answer

Ashishkumar

Ashishkumar

The drawbacks of JPA include the following:
– There is potential for sub-optimal performance. The generated SQL statements may not perform as needed because of the data store design and implementation.
– If the existing implementation in not using JPA and you need to extend functionality in a minor way, a rewrite of the entire tier to use JPA is typically not permitted or justified
– If the underlying persistence layer is not supported sufficiently by the JPA implementation. This occurs mostly when the persistence layer is not one of the major relational databases.