前提條件:
- Hibernate的版本爲3.2;
- 工程lib中包含hibernate-annotations.jar and lib/ejb3-persistence.jar。
有關Hibernate Annotations的參考資料:
- Hibernate Annotations Reference Guide:http://docs.jboss.org/ejb3/app-server/HibernateAnnotations/reference/en/pdf/hibernate_annotations.pdf
- Hibernate 3 Annotations 進階:http://www.matrix.org.cn/resource/article/2007-04-09/Hibernate+Annotations_62c034f4-e62a-11db-b1bd-fb5572962927.html