Back to Java Users Group Home Print this page

Java Users Group

March 2013 Meeting Information

Tweet

March 12, 2013
Technical Overview of Spring Data JPA

This month, Paul Furbacher will make a presentation on the Spring Data JPA repositories. Data access in Java applications has always involved a lot of boilerplate typing. Earlier versions of Spring made things more succinct with classes like JdbcTemplate, HibernateTemplate, and so on. However, a lot of repetitive coding remained. Recently, Spring has added the Spring Data suite of projects which aim at reducing that load through the use of annotations. With respect to JPA, to quote the Spring folks, "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."

You write the *interfaces*, not the implementations. That's a whole lot less work and not just because you are writing interfaces. Spring Data JPA provides a rich set of finder "expressions" which we will explore through code examples.

As part of the presentation, we'll also take a quick look at Spring Java configuration (as opposed to XML configuration), and investigate the @Profile annotation – configuration details which may make life a bit easier in various ways when setting up unit testing of our repository classes.

Meetings are held every second Tuesday of the month at the Scotch Plains Rescue Squad second floor meeting hall starting promptly at 7:30pm. Meetings are open to the public, and visitors are encouraged to join ACGNJ.

SIG Leader Mike Redlich
E-Mail mike@redlich.net
Phone: (908) 246-0410