JSF 2.0 + Spring + Hibernate integration(续)
摘要:在使用jsf+Spring+Hibernate做项目时,发现配置Hibernate的实体映射文件相当繁琐.前段时间做EJB时,一直采用的是JPA的注解方式.相比较之下,少写不少代码.于是花了些时间.将项目中原来使用xml配置的方式转成使用Annotation方式.记录如下: <!-- Hibernate session factory --> <!-- For using no-Annotation <bean id="sessionFactory" class="org.springframework.orm.hibernate3.Loc
阅读全文
posted @
2012-04-22 20:07
七月逆流
阅读(488)
推荐(1) 编辑
移植MyEclipse Web项目到Eclipse变成Java Project的解决办法
摘要:接手一个前期的Web项目,当时是用MyEclipse建立的,用MyEclipse发布运行没有任何问题。导入Eclipse EE不能识别为Web项目。解决办法:1. 修改项目的.project文件,保存,不需要重启Eclipse。 在<natures> … </natures> 之间添加下列三行配置 <nature>org.eclipse.wst.common.project.facet.core.nature</nature><nature>org.eclipse.wst.common.modulecore.ModuleCoreNat
阅读全文
posted @
2012-04-21 12:09
七月逆流
阅读(1392)
推荐(0) 编辑
Hibernate的generator属性之意义[转帖]
摘要:本文讲述Hibernate的generator属性的意义。Generator属性有7种class,本文简略描述了这7种class的意义和用法。AD:Hibernate的Generator属性有7种class,本文简略描述了这7种class的意义和用法。1、identity:用于MySql数据库。特点:递增<idname="id"column="id"> <generatorclass="identity"/> </id>注:对于MySql数据库使用递增序列时需要在建表时对主键指定为auto_incr
阅读全文
posted @
2012-04-21 10:56
七月逆流
阅读(155)
推荐(0) 编辑
JSF 2.0 + Spring + Hibernate integration
摘要:Here’s a long article to show you how to integrate JSF 2.0(also jsf 1.X), Spring and Hibernate together. At the end of the article, you will create a page which display a list of the existing customer from database .This article is using for tell you how to integrate jsf,spring ,hibernate .Maybe you
阅读全文
posted @
2012-04-21 09:42
七月逆流
阅读(803)
推荐(1) 编辑
处理Richfaces 3.3.3控件a4j:outputMedia与Firefox11的兼容性问题
摘要:Hey Guys,I have found some problem with richfaces 3.3.3 and firefox 11. It seems that the javascript has changed in firefox.When I use a4j:outputMedia and rerender I got the following error:ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/BPM-Process].[default]] Servlet.servic
阅读全文
posted @
2012-04-01 09:13
七月逆流
阅读(728)
推荐(0) 编辑