MDA/MDD/TDD/DDD/DDDDDDD
posts - 536, comments - 111, trackbacks - 0, articles - 0
  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

grails笔记

Posted on 2010-05-26 18:49 leekiang 阅读(292) 评论(0)  编辑  收藏 所属分类: grails
Grails 复杂查询及分页排序

如何配置输出hibernate SQL statement
有几种方法:
1. Modify conf\Config.groovy
    Change hibernate="off" to on
    但是这种方式输出的Hibernate信息比较多。
2. Modify DataSource.groovy
    Add logSql = true
    But didn't work now for Grails 1.0 RC4
3. Modify GRAILS_HOME\scripts\log4j.properties, add
    log4j.logger.org.hibernate.SQL=DEBUG
    这是目前最佳的方法
见http://hi.baidu.com/jacksonchenjp/blog/item/0fef184f9e2bac32aec3ab08.html

http://www.javaeye.com/topic/52774
http://www.javaeye.com/topic/149489
http://www.javaeye.com/topic/250349
http://garyli.javaeye.com/blog/237100
http://seanwon.javaeye.com/blog/315677
http://bloodwolf-china.javaeye.com/blog/264035
http://bloodwolf-china.javaeye.com/blog/644420
http://stackoverflow.com/questions/2124157/acl-on-field-level-in-grails

Basic Tomcat clustering for Grails applications

只有注册用户登录后才能发表评论。


网站导航:
博客园   IT新闻   Chat2DB   C++博客   博问