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 beDate
orDate
.
- All Known Implementing Classes:
CurrentDateTimeProvider
public interface DateTimeProvider<T>
Used by Micronaut Data to assign a time stamp to entity fields labeled withDateCreated
orDateUpdated
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
getNow()
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.
-
-