Community contributed extensions

Chronostamp module for Play!

Chronostamp adds magic timestamp fields to Models, like Ruby on Rails:

Features

Note: * SpringPlugin has a priority of 1000 and it clashes with this one if it has a priority <= 1000, that’s why this plugin has a priority of 1001

How to Use

Well it’s kind of easy, just add this module to your dependecy.yml file

If you have a legacy DB with tables that doesn’t have created_at and updated_at timestamp columns,
you can skip the creation of these magic timestamp fields by annotating the Model with
@NoChronostamp

If you control the creation of DB (Evolution, MyBatis Migrations, etc).
the timestamp columns must be of type TIMESTAMP

Testing the timestamping

Start play in test mode and launch a browser to "http://localhost:9000/@test"
Done!
You may find a sample app bundled with the module

Credits

This module is inspired on Ruby on Rails magic timestamp fields and Code snippet
Keep track of JPA record creation/updates
Author: Omar O. Román