Jpa with spring data

1,768 views
1,728 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,768
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
23
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

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

×