---
title: "不要重复 DAO！"
author: "bulain"
date: "2006-06-08T12:25:34Z"
tags: []
slug: "dao"
draft: false
lastmod: "2006-06-08T12:25:34Z"
id: 23990
url: "https://bulain.iteye.com/blog/23990"
---

<span style="color:red">2006-06-08</span>

很好的一个实例，对于dao的使用。

http://www-128.ibm.com/developerworks/cn/java/j-genericdao.html

由于 Java™ 5 泛型的采用，有关泛型类型安全 Data Access Object (DAO) 实现的想法变得切实可行。在本文中，系统架构师 Per Mellqvist 展示了基于 Hibernate 的泛型 DAO 实现类。然后展示如何使用 Spring AOP introductions 将类型安全接口添加到类中以便于查询执行。


<span style="color:blue">其中对IntroductionInterceptor的使用给了一个很好的例子。即引入新的方法。</span>