@Target(value={TYPE,METHOD,FIELD}) @Retention(value=RUNTIME) public @interface TTL
When given on the property-level, this setting will only take effect when the property represents an association. If given for non-association properties, the setting on the property-level will be ignored and the setting from the entity will be applied.
Modifier and Type | Required Element and Description |
---|---|
long |
value
Specifies the expiry duration after persisting the annotated entity or
property.
|
public abstract long value
public abstract TimeUnit unit
TimeUnit.SECONDS
Copyright © 2010-2017 Red Hat, Inc., Emmanuel Bernard and various contributors. All Rights Reserved.