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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -