Date post: | 25-May-2015 |
Category: |
Technology |
Upload: | guo-albert |
View: | 31,870 times |
Download: | 7 times |
2
3
Persistence.xml
Persistence
EntityManagerFactory
Query
EntityManager
Transaction
persist()find()merge()delete()
persist()find()merge()delete()
EntityManagerFactoryBeanEntityManagerFactoryBean
JpaTemplateJpaTemplate
4
EntityManagerFactoryBeanEntityManagerFactoryBean
JpaDaoSupportJpaDaoSupport
JpaTemplateJpaTemplate
Injected into
DepartmentDAO IDepartmentDAO
extends
implements
5
6
7
entityManagerFactor
transactionManager
Inject into
8
entityManagerFactor
DepartmentDAO
Inject into
JPAServiceBean
Inject into
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Jpatest.rar