[英]Grails domain class
我定義了以下域類:
class Content {
Map i18nDescription = [:]
...
}
如果運行以下代碼
content.i18nDescription['it'] = "desc desc...."
content.save()
我收到以下錯誤:
util.JDBCExceptionReporter ERROR: value too long for type character varying(255)
(我正在使用postgres作為數據庫)
如何使用以下方法增加數據庫中i18nDescription['it']
字段的大小
static constraints = {}
謝謝
static mapping = {
title i18nDescription: "text"
}
這將創建一個文本字段。 其中有4000多個字符。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.