Why does JPA offer better performance for this task?

A stock trading company is writing a new application for stock market forecasting. A significant
portion of the work required by the business logic involves navigating through the persistent
object model. As lead architect on this project, you have chosen JPA over EJB2 entity beans to
implement these persistent objects. You have done this to maximize performance when
navigating through the model. Why does JPA offer better performance for this task?

A stock trading company is writing a new application for stock market forecasting. A significant
portion of the work required by the business logic involves navigating through the persistent
object model. As lead architect on this project, you have chosen JPA over EJB2 entity beans to
implement these persistent objects. You have done this to maximize performance when
navigating through the model. Why does JPA offer better performance for this task?

A.
JPA guarantees referential integrity at the object level.

B.
JPA allows the application to specify lazy or eager retrievals.

C.
JPA simplifies the source code that implements the object model.

D.
The guaranteed referential integrity in EJB2 entity beans is expensive.



Leave a Reply 0

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