gorm

    0热度

    1回答

    使用旧数据库中的表存在很多问题。 一个是名为“角色类型”一表,有它的命名“角色类型” 这里ID是域类的重要片段: class RoleType { int roleType .... static mapping = { table 'RoleType' version false id column: 'roleType', type:'

    0热度

    1回答

    即使该字段设置为可为空,当表单正在读取它时,我也会得到异常。 好吧,我终于通过将基元int更改为Integer allover来解决它。请参阅以下答案。 错误: Caused by: org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of c

    0热度

    2回答

    我正在开发一个新的应用程序,需要读取传统数据库中的现有数据库表。要做到这一点,我也必须让它在开发环境中工作。但是,当我尝试创建它失败,出现以下消息的新记录: URI /roleType/save Class grails.web.mapping.mvc.exceptions.CannotRedirectException Message null Caused

    1热度

    2回答

    我需要获取关于特定Grails域类的所有信息,即持久性属性以及与单个集合中的约束相关的约束。我怎么做?

    0热度

    3回答

    更新或删除数据我有杜曼类: package testgrails12 class Teams { String name static mapping = { version false } static constraints = { name nullable: true } } 我试图删除或从一个表在我的控制器更新数据: def team = Teams.get(1)

    1热度

    1回答

    这是我的域的代码。 class Btr { Date dateBreak int timeBreak String typeBreak User usuario static constraints = { } static mapping = { } } class User { Str

    0热度

    2回答

    我有使用另一个域类物业city这个领域类的所有表: class Tracker { String name, value; City city; int hits; Date date; } 我插入或长作业过程中使用Tracker.save();更新值。 这是工作正常,除非当我想更新城市域类,而跟踪器保存的东西。它说Lock wait timeout

    0热度

    1回答

    此问题是关于某些字段被声明为double并且在数据库中通常为null。 如果某些字段为空,则使用findAllBy接收列表将失败。 我尝试将类型更改为Double,但是当我对它们进行算术运算时遇到问题。如果该值为空,Double无法决定应使用哪个转换器。 我不知道在设置域之前是否有任何方法来转换域中的空值。错误的 例子: Caused by: org.hibernate.PropertyAcces

    0热度

    2回答

    我很难编程并行服务。目标是通过异步API调用从Facebook中检索数据,然后遍历检索到的数据,同步执行GORM操作。 异步获取数据的第一步似乎很好地工作: List<Activity> activityList = Activity.findAllByFacebookPageIsNotNullAndFetchEvents(true, [max: 100]) PromiseList promis

    0热度

    2回答

    通过这太问题建议的命令不存在的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或更新