Spring + JPA + DAO Step by Step

34,214 views

Published on

Published in: Technology, News & Politics
14 Comments
17 Likes
Statistics
Notes
No Downloads
Views
Total views
34,214
On SlideShare
0
From Embeds
0
Number of Embeds
400
Actions
Shares
0
Downloads
1,596
Comments
14
Likes
17
Embeds 0
No embeds

No notes for slide

Spring + JPA + DAO Step by Step

  1. 1. Albert Guo [email_address]
  2. 2.
  3. 3.
  4. 4. persist() find() merge() delete() EntityManagerFactoryBean JpaTemplate Persistence.xml Persistence EntityManagerFactory Query EntityManager Transaction
  5. 5. EntityManagerFactoryBean Injected into extends implements JpaDaoSupport JpaTemplate DepartmentDAO IDepartmentDAO
  6. 6.
  7. 7.
  8. 8. Inject into entityManagerFactor transactionManager
  9. 9. Inject into Inject into entityManagerFactor DepartmentDAO JPAServiceBean

×