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: enter image description here

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:

enter image description here

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

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -