This is my user entity.. Why my lastlogin is not null in database? i have aLready set blank to true.
class Users {
static hasMany = [farm:Farms,report:Reports,reportMessage:ReportMessages]
String userName
String Password
Date LastLogin
String userImage
static constraints = {
userName (blank:false, unique:true)
Password (blank:false)
userImage (blank:false)
LastLogin (blank:true)
}
}
Yes, there’s a bug. Change
LastLogintolastLoginand solves the issue.