随笔分类 -  hibernate

摘要:java.sql.SQLException: Parameter index out of range (28 > number of parameters, which is 27).这个说的是有28个参数,但只有27个值,值的数量与变量的个数不匹配,查看class对象是否有多于的变量名,或者值的 阅读全文
posted @ 2016-04-26 16:31 coreWars 阅读(222) 评论(0) 推荐(0)
摘要:错误信息:com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed. 解决方式: 在hibernate的配置... 阅读全文
posted @ 2015-02-03 17:58 coreWars 阅读(339) 评论(0) 推荐(0)
摘要:Hibernate 参数设置一览表属性名用途hibernate.dialect一个HibernateDialect类名允许Hibernate针对特定的关系数据库生成优化的SQL.取值full.classname.of.Dialecthibernate.show_sql输出所有SQL语句到控制台. 有一个另外的选择是把org.hibernate.SQL这个log category设为debug。eg.true|falsehibernate.format_sql在log和console中打印出更漂亮的SQL。取值true|falsehibernate.default_schema在生成的SQL中, 阅读全文
posted @ 2014-01-18 16:23 coreWars 阅读(192) 评论(0) 推荐(0)