![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hibernate
sansan
这个作者很懒,什么都没留下…
展开
-
hibernate插入数据字符长度超出
execute JDBC batch update; nested exception is org.hibernate.exception.DataException: Could not execute JDBC batch updatetype Exception reportmessage Could not execute JDBC batch update; nested except原创 2013-06-10 10:53:08 · 1165 阅读 · 0 评论 -
The server encountered an internal error that prevented it from fulfilling this request
方法测试的时候出现 org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: could not insert: [com.mt.studorm.pojo.User]; uncategorized SQLException for SQL [insert into studorm.user (user_nam原创 2013-06-10 10:34:09 · 1923 阅读 · 0 评论 -
hibernate获取sql返回值
对dao层进行的接口封装 public List> queryBySqlMap(String sql) { Query query = sessionFactory.openSession().createSQLQuery(sql).setResultTransformer(Transformers.ALIAS_TO_ENTITY_MAP);; List> mapList = new Ar原创 2014-06-22 08:59:11 · 628 阅读 · 0 评论