Comment lines, Roland Barcia: How useful are annotated named queries in the Java Persistence API, really?

From the developerWorks archives

Roland Barcia

Date archived: January 3, 2017 | First published: April 19, 2006

Annotations do make things easier for a developer, but simplicity comes with trade-offs. The Java™ Persistence API (JPA) makes use of annotations as a mechanism to map Java objects to the underlying database, but developers often use annotations even when it doesn't make sense. Find out some of the other ways to access data through JPA, and when and why these alternatives are the better options.

This content is no longer being updated or maintained. The full article is provided "as is" in a PDF file. Given the rapid evolution of technology, some steps and illustrations may have changed.



static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=WebSphere, Java development
ArticleID=108353
ArticleTitle=Comment lines: Roland Barcia: How useful are annotated named queries in the Java Persistence API, really?
publish-date=04192006