Showing posts with label grails. Show all posts
Showing posts with label grails. Show all posts

Wednesday, April 27, 2011

Grails with UML diagram




กำลังมองหาการสร้าง UML จาก Grails class พอดีไปเจอลิงค์นี้ เยี่ยมมากเลยครับ

To install the plugin into your Grails application simply enter the following command line command.


C:\[???]>grails install-plugin create-domain-uml

To generate a class diagram just enter:

C:\[???]>grails create-domain-uml

??? คือ app ที่ถูกสร้างโดย Grails
พอสร้างเสร็จแล้ว ไป view html ที่สร้างขึ้นมา จะเห็น diagram uml เป็นรูป โดยลิงค์รูปผ่านเวบ http://yuml.me/




Tuesday, April 26, 2011

Domain save error log

กรณี save obj ไม่ได้ ตรวจ error จากที่นี่ // render by controller

if (!user.save()) {
render log.warn user.errors.allErrors.join(' \n')
//each error is an instance of org.springframework.validation.FieldError
}

Saturday, September 12, 2009

คำแนะนำในการศึกษา Grails

ถ้าคุณเคยใช้จาวา การใช้ Groovy คุณต้องเข้าใจเรื่องต่อไปนี้ closures maps และ properties อ่านตรงนี้
และ เรื่อง MVC, GORM, Filters and Services, GSP และ conf

กรณีการ insert ข้อมูลใน Grails แล้ว OutOfMemoryError

แสดงตัวอย่างการ insert ข้อมูลจำนวนมากใน Grails แล้วจะช้ามาก และจะเกิด OutOfMemoryError สามารถแก้ไขโดยการsessionFactory.getCurrentSession().clear(); ตามลิงค์นี้
Grails, Inserting lots of data using withTransaction results in OutOfMemoryError

การใช้ Batch ใน Grails

การใช้ Block-Level และ Method Level Transaction ใน Grails
Transaction & Batch-processing in Grails

เริ่มต้นการใช้งาน blog แรก และ groovy

บางครั้งเคยเจอ ลิงค์่ที่น่าสนใจ แต่ไม่รู้จะเก็บไว้ไหน ก็เลยมาเก็บไว้ตรงนี้ เดี๋ยวปล่อยไว้นานจะหาไม่เจออีก น่าเสียดาย

วิธีติดตั้งการใช้งาน groovy
http://groovy.codehaus.org/Installing+Groovy

การใช้งาน groovy เบี้องต้น
http://www.javalobby.org/articles/groovy-intro1/