All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.rx.annotation.Mapping Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
package org.rx.annotation;

import org.rx.util.BeanMapConverter;
import org.rx.util.BeanMapNullValueStrategy;

import java.lang.annotation.*;

import static java.lang.annotation.ElementType.METHOD;

@Target({METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@Repeatable(Mapping.Mappings.class)
public @interface Mapping {
    @Target({METHOD})
    @Retention(RetentionPolicy.RUNTIME)
    @Documented
    @Inherited
    @interface Mappings {
        Mapping[] value();
    }

    String target();

    String source() default "";

    String format() default "";

    boolean ignore() default false;

    String defaultValue() default "";

    BeanMapNullValueStrategy nullValueStrategy() default BeanMapNullValueStrategy.SetToNull;

    boolean trim() default false;

    Class converter() default BeanMapConverter.class;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy