Class TimestampsProvider
- java.lang.Object
-
- hu.icellmobilsoft.coffee.model.base.AbstractProvider
-
- hu.icellmobilsoft.coffee.model.base.javatime.listener.TimestampsProvider
-
@Dependent public class TimestampsProvider extends AbstractProvider
Set java 8 timestamps on marked properties.- Since:
- 1.0.0
- Author:
- mark.petrenyi, zsolt.vasi
-
-
Constructor Summary
Constructors Constructor Description TimestampsProvider()Default constructor, constructs a new object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprePersist(Object entity)Persist entity @CreatedOn property before persist with the System current time valuevoidpreUpdate(Object entity)Persist entity @ModifiedOn property before persist with the System current time value-
Methods inherited from class hu.icellmobilsoft.coffee.model.base.AbstractProvider
getAllFieldsAndMethods, getFieldByMethod
-
-
-
-
Method Detail
-
prePersist
public void prePersist(Object entity)
Persist entity @CreatedOn property before persist with the System current time value- Parameters:
entity- Object entity to persist
-
preUpdate
public void preUpdate(Object entity)
Persist entity @ModifiedOn property before persist with the System current time value- Parameters:
entity- Object entity to persist
-
-