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或更新