如何在JSF中使用Hibernate [英] How to use Hibernate with JSF
本文介绍了如何在JSF中使用Hibernate的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用Hibernate配置jsf Mavenized项目.在进行谷歌搜索时,我发现许多与此主题相关的指南,其中包含不同形式的实现.请指出有关此主题的正确指南.我只是想使用休眠模式做一个简单的数据库操作.
How to configure the jsf mavenized project with hibernate. While googling i found many guides related to this topic with different form of implementations. Please point out to refer a correct guide on this topic. i am just trying to do a simple database operation using hibernate.
推荐答案
If you use JPA hibernate all configurations will be similar as described in J2EE tutorial - Accessing Databases from Web Applications + you add your Maven dependencies (hibernate + db driver).
这篇关于如何在JSF中使用Hibernate的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文