sql server - Issues while Processing Large Strings in Grails Application -
i working on grails application. getting issues in processing string length greater 255 characters. when try update record string greater 255 characters exception:
nested exception org.hibernate.exception.dataexception: not update: caused by: org.hibernate.exception.dataexception: not update: [com.ef.apps.mediasense.recordings.calls#1] caused by: java.sql.datatruncation: data truncation
this attribute in strore large string:
static mapping = { tag column:'sessiontag' }
and, constraint applying on this:
static constraints = { tag (nullable:true, maxsize:1000) }
and, if see design of table, looks this attribute:
so, seems fine why it's not allowing me store string having characters greater 255.
i have tried approach too, no luck:
static mapping = { tag column:'sessiontag', type: 'text' }
with constraint:
static constraints = { tag (nullable:true, maxsize:1000) }
and if see design, looks this:
but still getting same issue. want store string greater 255 characters in grails. guide me if doing wrong or can achieve other approach.
thanks time , consideration :)
Comments
Post a Comment