Package io.micronaut.data.annotation
Annotation Interface DateCreated
@Retention(RUNTIME)
@Target({METHOD,FIELD})
@Documented
@AutoPopulated(updateable=false)
public @interface DateCreated
Can be applied to date type to indicate the property should be populated when it is first inserted.
- Since:
 - 1.0
 - Author:
 - graemerocher
 
- 
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionAllows to truncate the auto set date value. - 
Field Summary
Fields 
- 
Field Details
- 
NAME
The annotation name. 
 - 
 - 
Element Details
- 
truncatedTo
ChronoUnit truncatedToAllows to truncate the auto set date value.- Returns:
 - the truncated to constant
 - Since:
 - 3.4.2
 
- Default:
 - FOREVER
 
 
 -