瀏覽代碼

Removed 'optimistic locking' from grails so that the version column isn't created

Patrick Falls 12 年之前
父節點
當前提交
5eaf0f31a5
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      grails/hello/grails-app/domain/hello/World.groovy

+ 1 - 0
grails/hello/grails-app/domain/hello/World.groovy

@@ -7,6 +7,7 @@ class World {
     }
 
     static mapping = {
+      version false
       columns {
         randomNumber     column:"randomNumber"
       }