![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java框架
文章平均质量分 60
perfectProgramming
这个作者很懒,什么都没留下…
展开
-
spring整合hibernate配置注解事务的相关问题
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean" lazy-init="false"> com/aaa/healthHouse/model/Cusna原创 2015-09-28 17:20:45 · 680 阅读 · 0 评论 -
No row with the given identifier exists: [com.wanmei.entity.TableMeta#3219]
[INFO]-[org.hibernate.event.def.DefaultLoadEventListener] Error performing load commandorg.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.wanmei.entity.TableMeta#321原创 2017-06-12 16:57:08 · 1035 阅读 · 0 评论 -
使用createSQLQuery直接封装成自定义对象
在query中加上 setResultTransformer(Transformers.aliasToBean(clazz));这里的clazz表示的是传入的自定义的bean.class ,这里的bean是自己封装的,不需要有映射文件,如果使用query = getSession().createSQLQuery(sql).addEntity(clazz); 需要bean具有映射文件q原创 2015-10-29 11:43:16 · 2874 阅读 · 0 评论 -
使用springmvc+zookeeprt+dubbo进行rpcdaja
但在使用过程中往往会出现个人遇到的问题,而网上没有解决方案或者需要查询其它资料,我搭建完后,整理了一下几点心得,与大家分享:原创 2017-12-11 11:33:20 · 479 阅读 · 0 评论