hibernate
pengfeifei26
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Caused by: java.sql.SQLException: An attempt by a client to checkout a Connectio
1.将maxPoolSize=60显得有些大,默认为15. 2.将checkoutTimeout改为20000原创 2013-06-20 14:40:37 · 710 阅读 · 0 评论 -
Spring 使用注解方式进行事务管理
事物注解方式: @Transactional 当标于类前时, 标示类中所有方法都进行事物处理 例子: @Transactional public class TestService implements TestService {} 当类中某些方法不需要事物时: @Transactional public class TestService implements TestServic...原创 2014-01-18 15:33:21 · 103 阅读 · 0 评论 -
Transaction rolled back because it has been marked as rollback-only
http://narcissusoyf.iteye.com/blog/710261 http://blog.youkuaiyun.com/kingherooo/article/details/20868823原创 2014-01-16 15:02:01 · 116 阅读 · 0 评论 -
An internal error occurred during: "Fetching children of Database".
An internal error occurred during: "Fetching children of Database". org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwabl...原创 2014-01-14 17:50:00 · 905 阅读 · 0 评论 -
hibernate查询
hibernate 查询 criteria 查询:http://blog.youkuaiyun.com/xingtianyiyun/article/details/7703429 http://www.cnblogs.com/JemBai/archive/2010/01/06/1640636.html hibernate的get和load区别 分类: hibernate 2012-11-1...原创 2013-08-05 11:41:32 · 102 阅读 · 0 评论 -
a different object with the same identifier value was already associated with th
1、a different object with the same identifier value was already associated with the session。 错误原因:在hibernate中同一个session里面有了两个相同标识但是是不同实体。 解决方法一:session.clean() PS:如果在clean操作后面又进行了saveOrUpdate...原创 2013-08-01 17:05:42 · 123 阅读 · 0 评论 -
applicationContext.xml
[code="xml"] com.mysql.jdbc.Driver jdbc:mysql://localhost:3306/tie?useUnicode=true&characterEncoding=utf-8 root ...原创 2013-08-01 11:59:26 · 110 阅读 · 0 评论 -
hibernate问题
Caused by: java.lang.NoClassDefFoundError: javassist/bytecode/ClassFile [color=red]解决办法:[/color] Caused by: java.lang.NoClassDefFoundError: javassist/bytecode/ClassFile 异常,添加javassist-3.4.jar就可以解决 ...原创 2013-07-31 22:10:04 · 175 阅读 · 0 评论 -
hibernate jpa
http://zhou137520.iteye.com/blog/1628384 http://docs.jboss.org/hibernate/core/3.3/reference/zh-CN/html_single/#objectstate-modifying原创 2013-07-29 23:05:31 · 118 阅读 · 0 评论 -
ssh框架搭建
http://blog.youkuaiyun.com/aaaaaaaa0705/article/details/6288431 http://www.blogjava.net/bolo/archive/2010/04/14/318372.html原创 2013-07-29 21:33:06 · 105 阅读 · 0 评论 -
hibernate异常:failed to lazily initialize a collection of role
设置lazy即可 private Set ursMemberMobile = new HashSet(0); @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "ursMember") public Set getUrsMemberMobile() { return ursMember...原创 2013-12-18 11:21:38 · 184 阅读 · 0 评论 -
org.hibernate.hql.ast.QuerySyntaxException
在使用hibernate tools工具时,报错,如图 [img]http://dl2.iteye.com/upload/attachment/0087/4525/03e4abc6-d887-3432-b35b-23aec3e3fc3a.jpg[/img] [color=red]解决办法:[/color] 将表名字改为实体类名字即可,如图: [img]http://dl2.iteye....原创 2013-07-26 11:40:01 · 129 阅读 · 0 评论 -
hibernate tools插件安装
eclipse helios(3.6)版 1.启动eclipse 2.选择Help > Install New Software...> 3.添加如下地址:http://download.jboss.org/jbosstools/updates/stable/helios/ 4.选择性安装:hibernate tools在All Jboss tools节点下面 eclipse...原创 2013-07-26 10:56:45 · 190 阅读 · 0 评论 -
hibernate使用
http://blog.youkuaiyun.com/lovesummerforever/article/details/19169779 http://www.ibm.com/developerworks/cn/java/l-hibernate1/ [color=red][size=large]HibernateDaoSupport[/size][/color] 由于Hibernate集成了JDBC...原创 2013-07-25 16:36:45 · 93 阅读 · 0 评论 -
Value '0000-00-00' can not be represented as java.sql.Timestamp
Value '0000-00-00' can not be represented as java.sql.Timestamp 关键字: 数据库字段为datetime类型时默认值为:0000-00-00 00:00:00 mysql 数据库字段为datetime类型时默认值为:0000-00-00 00:00:00 查询时异常 java.sql.SQLException:Value '...原创 2013-06-13 16:41:28 · 134 阅读 · 0 评论 -
hibernate连多个库及session操作
http://www.blogjava.net/yzzh9/archive/2008/10/07/233002.html http://xkorey.iteye.com/blog/1920059原创 2014-06-06 16:19:48 · 136 阅读 · 0 评论
分享