Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Jpa with spring data

2,031 views

Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Jpa with spring data

  1. 1. JPA with SpringData Sean@Weaveus May 2011Monday, May 9, 2011 1
  2. 2. JPA Object JPA SQL JDBC ORMMonday, May 9, 2011 2
  3. 3. Monday, May 9, 2011 3
  4. 4. Spring JPA Running on • Application Level • JEE Container Level • JPA Supported Container • JPA Non-support Container - TomcatMonday, May 9, 2011 4
  5. 5. JPA • @Bean EntityManager • @PersistenceContext • Injected Proxy of EM by Spring • @Bean EntityManagerFactory • @PersistenceUnitMonday, May 9, 2011 5
  6. 6. JPA Usage Pattern • EntityManager • persist() • find() • merge() • remove() • flush() • QueryBuilder, Criteria, ...Monday, May 9, 2011 6
  7. 7. Spring Data JPAMonday, May 9, 2011 7
  8. 8. Spring Data JPA • JPARepository<id, entity> Class • Create Query with Method Name • @NamedQuery • @Query(“SQL”) and @Query(“SQL”) with @param • @Query with @Modifying • Specification for Criteria & PredicateMonday, May 9, 2011 8
  9. 9. Spring Data JPA • Transactional Support • AuditMonday, May 9, 2011 9

×