Package io.micronaut.data.runtime.date
Interface DateTimeProvider<T>
-
- Type Parameters:
T- the return type of the time. When used with JPA the type that is returned should be the type that is defined in the entity. When used with JDBC, the type defined should always beDateorDate.
- All Known Implementing Classes:
CurrentDateTimeProvider
public interface DateTimeProvider<T>Used by Micronaut Data to assign a time stamp to entity fields labeled withDateCreatedorDateUpdated.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TgetNow()Returns the time to be used for the timestamp.
-
-
-
Method Detail
-
getNow
T getNow()
Returns the time to be used for the timestamp.- Returns:
- The resulting time.
-
-