即使该字段设置为可为空,当表单正在读取它时,我也会得到异常。 好吧,我终于通过将基元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或更新