Consider having an application using DataNucleus with the following persistence structure:
You have a class that has two attributes like created (Date) and lastUpdate (Date): How do you automatically fill those attributes with the appropriate values when an object of this class is going to be committed? Appropriate values would be setting both, created and lastUpdate to the current time when an object is inserted into the database and just updating lastUpdate when it has changed.