
com.aerospike.mapper.annotations.AerospikeEnum Maven / Gradle / Ivy
package com.aerospike.mapper.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Tags an enum field of a class to set a value field to store its value in the Aerospike database instead of the enum constant name.
* default behaviour (without using this annotation or without specifying the value field's name) is to
* store the entire constant name in the Aerospike database.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface AerospikeEnum {
String enumField() default "";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy