即使該字段設置爲可爲空,當表單正在讀取它時,我也會得到異常。 好吧,我終於通過將基元int更改爲Integer allover來解決它。請參閱以下答案。 錯誤: Caused by: org.hibernate.PropertyAccessException:
Null value was assigned to a property of primitive type setter of
c
我正在開發一個新的應用程序,需要讀取傳統數據庫中的現有數據庫表。要做到這一點,我也必須讓它在開發環境中工作。但是,當我嘗試創建它失敗,出現以下消息的新記錄: URI
/roleType/save
Class
grails.web.mapping.mvc.exceptions.CannotRedirectException
Message
null
Caused
更新或刪除數據我有杜曼類: package testgrails12
class Teams {
String name
static mapping = {
version false
}
static constraints = {
name nullable: true
}
}
我試圖刪除或從一個表在我的控制器更新數據: def team = Teams.get(1)
我有使用另一個域類物業city這個領域類的所有表: class Tracker
{
String name, value;
City city;
int hits;
Date date;
}
我插入或長作業過程中使用Tracker.save();更新值。 這是工作正常,除非當我想更新城市域類,而跟蹤器保存的東西。它說Lock wait timeout
通過這太問題建議的命令不存在的Grails 3.1.X Can I configure Grails with no datasource? grails uninstall-plugin hibernate
| Error Command not found uninstall-plugin
問題Grails的應用程序不需要堅持,我想減少內存佔用。 尋找適用於grails 3.1.x或更新