
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 · 1217 阅读 · 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 · 1967 阅读 · 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 · 675 阅读 · 0 评论