Most databases allow to have field with current timestamp (act as creation timestamp), for example in MySQL:
CREATE TABLE t (ts TIMESTAMP DEFAULT CURRENT_TIMESTAMP)
How to achieve this in Spring Roo? Can’t find hint from Roo manual.
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This would be created with:
This will add:
to the field, which should cause the auto-generator to create a TIMESTAMP field. If you want more control, you can always annotate the generated entity field further with