前提条件:
- 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