com.hubspot.rosetta.annotations.RosettaValue Maven / Gradle / Ivy
package com.hubspot.rosetta.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Like @JsonValue only limited to Rosetta mapping/binding.
*
* For instance, you may want to let Rosetta know that a certain field has a given internal representation, but not
* expose that same representation to the outside via normal JSON serialization.
*
*/
@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@RosettaAnnotation
public @interface RosettaValue {
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy