Insert Auto date when record created in mysql using grails -
actually have manually entered records in mysql database-using grails want show date in coloumn in same table.
is there solution here controller class
class test { string company_name string contact_person integer phone_no string status string place string address static constraints = { company_name(nullable:false) contact_person(nullable:false) phone_no(uinque:true,nullable:false) status(nullable:false) place(nullable:false) address( nullable:false ) } }
have @ datecreated
, lastupdated
in autotimestamp property in gorm.
Comments
Post a Comment