JPA 設(shè)計(jì)模式系列
目前,在我們實(shí)際開(kāi)發(fā)中還缺乏對(duì)JPA應(yīng)用的最佳實(shí)踐,本文來(lái)自Vincent Partington ,他在實(shí)踐中總結(jié)了諸多JPA優(yōu)秀的設(shè)計(jì)模式,本系列將談?wù)撍?2個(gè)在JPA中的設(shè)計(jì)模式。
基本的設(shè)計(jì)模式:
1. Data Access Objects.
2.Saving(detached)entities
3. Retrieving entities.
4. Removing entitids.
5. Service Faceds and Data Transfers Objects.
高級(jí)的設(shè)計(jì)模式
6. Bidirectional Assocations
7. Lazy Loading
8. Bidrectional associations VS lazy loading
9. Using UUIDs as primary key
10. Field access VS property access
11. Mapping inheritance hierarchies
12. Testing.
基本的設(shè)計(jì)模式:
1. Data Access Objects.
2.Saving(detached)entities
3. Retrieving entities.
4. Removing entitids.
5. Service Faceds and Data Transfers Objects.
高級(jí)的設(shè)計(jì)模式
6. Bidirectional Assocations
7. Lazy Loading
8. Bidrectional associations VS lazy loading
9. Using UUIDs as primary key
10. Field access VS property access
11. Mapping inheritance hierarchies
12. Testing.
posted on 2009-07-18 10:11 advincenting 閱讀(1598) 評(píng)論(3) 編輯 收藏 所屬分類: java EE