By Adam Herzog | December 21, 2012 SpringSource is offering a free chapter of the eBook Spring Data to those who opt in to their developer newsletter through InfoQ.com. In addition, SpringSource is selecting 50 winners per week to win a full copy of the eBook! Be sure to enter your name and email address to download the free chapter and enter to win the whole eBook by clicking here. The book demonstrates how Spring Data makes it easy to build applications across a wide range of new data access technologies such as NoSQL and Hadoop. The free chapter is titled “JPA Repositories” and covers the following:
Implementing a data access layer of an application has been cumbersome for quite a while. Too much boilerplate code has to be written to execute simple queries as well as perform pagination, and auditing. Spring JPA aims to significantly improve the implementation of data access layers by reducing the effort to the amount that’s actually needed. As a developer you write your repository interfaces, including custom finder methods, and Spring will provide the implementation automatically. Note, this approach is not limited to JPA and has been applied to other persistence stores such as MongoDB, Gemfire Neo4j as part of the Spring MongoDB, Gemfire, and Neo4j projects. Spring JPA also takes the concept of a specification from Eric Evans’ book Domain Driven Design, that carries the same semantics and provides an API to define such Specifications using the JPA criteria API.For more information on the free chapter and the eBook giveaway, click here.