How can I set the column's type to nvarchar(160)? I'm having a hard time making the sample code here relate to my target. I already tried this:
String text
static constraints = {
text(size:1..160,blank:false)
}
static mapping = {
text type: "nvarchar"
}
I'm encountering this error: Caused by: org.hibernate.MappingException: Could not determine type for: nvarchar, at table: twitter_status, for columns: [org.hibernate.mapping.Column(text)]
Finally, I'm using MySQL 5 for my database server.
Thanks in advance.