@Documented @Retention(value=RUNTIME) @Target(value=FIELD) public @interface DatabaseField
| Modifier and Type | Optional Element and Description |
|---|---|
Class<? extends ObjectMapper<?>> |
mapper |
String |
name
Define the name of the database field.
|
int |
position
Define the position of the database field (is needed for passing field position when serializing object as
PostgreSQL ROW).
|
Class<? extends ValueTransformer<?,?>> |
transformer
Transformer class of type
ValueTransformer that can be used to transform
incoming value into a needed class (is needed for cases like non-standard way of passing enums). |
public abstract String name
public abstract int position
public abstract Class<? extends ValueTransformer<?,?>> transformer
ValueTransformer that can be used to transform
incoming value into a needed class (is needed for cases like non-standard way of passing enums).public abstract Class<? extends ObjectMapper<?>> mapper
Copyright © 2012–2021 Zalando SE. All rights reserved.