Package org.redisson.api.annotation
Annotation Type RObjectField
By default
namingScheme
and/or codec
parameters specified in REntity
are applied for each Live Object field.
This annotation allows to specify custom namingScheme
and/or codec
parameters
for any Live Object field except that marked with RId
.- Author:
- Rui Gu (https://github.com/jackygurui)
-
Nested Class Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescription(Optional) Live Object state codec.Class
<? extends NamingScheme> (Optional) Live Object naming scheme.
-
Element Details
-
namingScheme
Class<? extends NamingScheme> namingScheme(Optional) Live Object naming scheme. Defines how to assign key names for each instance of this class. Used to create a reference to an existing Live Object and materialising a new one in redis. Defaults toDefaultNamingScheme
implementation.- Returns:
- scheme
- Default:
org.redisson.liveobject.resolver.DefaultNamingScheme.class
-
codec
(Optional) Live Object state codec.null
means to use codec specified in Redisson configuration- Returns:
- codec
- Default:
org.redisson.api.annotation.RObjectField.DEFAULT.class
-