gorm - Boolean value is not showing in Linux environment using Grails -
i using grails 2.4.0.and create application , deploy on linux.
my domain
class userdetails { string userenvironment = "" long userid = 0l boolean accountcreated = false integer retries = 0 string password = "" boolean accountcreationinprogress = true static constraints = { accountcreationinprogress nullable : true } }
when saving working fine on windows.but accountcreated , accountcreationinprogress column blank on linux. why don't know.
anyone please me out.
change to:
class userdetails { stringuserenvironment = "" longuserid= 0l boolean accountcreated= false integer retries = 0 stringpassword= "" boolean accountcreationinprogress = true static constraints = { //there no point use nullable accountcreationinprogress if set default true value during create } }
remember drop table in database before rerun of app.
Comments
Post a Comment