I am using Play! Framework CRUD, but I can’t understand something: there is a created field in my database table, which is basically the time the row was created. I do not want my user to set this, I want to do this in the backend, just add the current time. I can’t figure out how to do this.
I made the field invisible with @Hidden , but obviously now I cannot create new lines because its value is simply not set. So where am I doing this?
And one more question that I have: in my table there is also a column called publish , which is another timestamp. The current format for this field in the CRUD form is yyyy-MM-dd. I would also like to indicate a date, and I cannot figure out how ..
Can anyone help?
source share