什么是使用Spring和Hibernate的一些好的示例应用程序? [英] What are some good sample applications using Spring and Hibernate?

查看:147
本文介绍了什么是使用Spring和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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆