Java Reference
In-Depth Information
• JPA entities can be used outside container environment
hence promoting re-usability and coding effort.
• JPA entities can be used on both presentation layer and
business logic layer, thus reducing coding effort, size of code
and maintenance cost associated
Supports
lazy
loading
of
objects
hence
improving
performance.
• Best integration with EJB 3.
• Used when model has complex relationships between tables.
JPA Cons:
• Imply loss of performance cause include additional layer.
• Can not explicitly tunning SQL by hand.
• When datastore is not well supported by ORM providers.
• Developers need skilled in ORM (learning curve).
Java EE Vs Spring
Some points to help you choose between Java EE 6 and
Spring
• Freedom to choose container - There are more than 14 Java
EE 6 compliant application servers today, with a variety of
open source and commercial offerings. A Java EE 6
application can be deployed on any of those containers. So if
Search WWH ::




Custom Search