什么是使用Spring和Hibernate的一些好的示例应用程序? [英] What are some good sample applications using Spring and Hibernate?
问题描述
我需要一个使用Spring和Hibernate的快速入门,我正在寻找一些示例代码来修改和扩展。
有一个示例项目,其中包括Struts2网站提供的Spring,Hibernate和Struts2,有我想要的大部分。它包含基本的JPA配置,但不提供DAO类。
通用DAO模式记录在Hibernate站点这里。这提供了一个很好的DAO基础,但代码直接使用Hibernate而没有JPA或Spring。
以下帖子(警告:语言)提供了有关在JPA中使用Spring的一些信息,而不是HibernateTemplate类。
综合这些信息让我很好地理解了我的骨架项目。
I need a quick jump start for using Spring and Hibernate together and I was looking for some sample code to modify and extend. Bonus points for Struts2 and Spring Security integration.
There is a sample project that includes Spring, Hibernate and Struts2 available from the Struts2 website that appears to have most of what I want. It includes a basic JPA configuration but it does not provide DAO classes.
The generic DAO pattern is documented on the Hibernate site here. This gives a good DAO foundation but the code is using Hibernate directly with no JPA or Spring.
The following post (warning: language) gives some information about using Spring with JPA and not the HibernateTemplate class.
Put together this information has me well on the way to my skeleton project.
这篇关于什么是使用Spring和Hibernate的一些好的示例应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!