I'd like to add a Date/DateTime/Timestamp field on an entity object, that will be automatically created when the entity is created/persisted and set to "now", never to be updated again.
Other use cases included fields that were always updated to contain the last modification date of the entity.
I used to achieve such requirements in the mysql schema.
What's the best way to do this in Play! / JPA?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…