摘要:
1,在Hibernate配置文件中修改showsql属性:若是properties文件,则hibernate.connection.show_sql=true若是xml文件:true2,如果是使用spring管理hibernate,则需要spring配置文件中也需要配置: true ... 阅读全文
摘要:
在使用Hibernate的过程中发现如下问题:若在HQL语句中包含IN子句,并且在IN中选项过多则会出现如下异常:java.lang.StackOverflowError:at org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(Node... 阅读全文