Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Spring Data Repositories - A Deep Dive

Spring Data Repositories - A Deep Dive

Slides of my talk at SpringOne2GX 2012.

Oliver Drotbohm

October 17, 2012
Tweet

More Decks by Oliver Drotbohm

Other Decks in Programming

Transcript

  1. Spring Data Repositories A Deep Dive Oliver Gierke, Senior Member

    Technical Staff [email protected] - @olivergierke © 2012 SpringOne 2GX. All rights reserved. Do not distribute without permission.
  2. 3 Spring Data Modern Data Access For Enterprise Java NoSQL

    JPA JDBC Redis Big Data Hadoop HBase MongoDB Neo4j REST exporter Roo Hive Pig Querydsl Repositories 1 free copy per attendee! Gemfire Splunk
  3. 9 " Persistence technology of choice is JPA. e application

    uses JavaConfig and sample data contained in data.sql.
  4. 12 " e implementation of the persistence layer will be

    based on the Spring Data repositories abstraction. Customers can be saved, looked up by their id, email address.
  5. 21 " CustomerRepository.findAll() should rather return a List. e transaction

    timeout for save(…) should be customized to 10 seconds.
  6. 27 " As a user, I want to look up

    products by their custom attributes.
  7. 30 " As a user, I want to search for

    customers by first name, last name, email address and any combination of them
  8. Proxy mechanism Using Spring's JDK proxy support Bootstrap through Factory

    Spring FactroyBean / CDI XML namespace / @EnableRepositories 33
  9. 36 " As an admin user, I'd like to delete

    all products beyond a given price.
  10. 42 Further sessions Spring Data and Data Grids - Wed,

    12:45pm Spring Data Neo4j - Wed, 2:45pm Lightning Talks - Wed, 4:30pm Spring Data REST - Thu, 12:45pm