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

spring.turbo.bean.valueobject.Alias Maven / Gradle / Ivy

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 *    ____             _            _____           _
 *   / ___| _ __  _ __(_)_ __   __ |_   _|   _ _ __| |__   ___
 *   \___ \| '_ \| '__| | '_ \ / _` || || | | | '__| '_ \ / _ \
 *    ___) | |_) | |  | | | | | (_| || || |_| | |  | |_) | (_) |
 *   |____/| .__/|_|  |_|_| |_|\__, ||_| \__,_|_|  |_.__/ \___/
 *         |_|                 |___/   https://github.com/yingzhuo/spring-turbo
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
package spring.turbo.bean.valueobject;

import org.springframework.core.annotation.AliasFor;
import spring.turbo.util.StringPool;

import java.lang.annotation.*;

/**
 * @author 应卓
 * @since 1.0.0
 */
@Inherited
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.TYPE})
@Repeatable(Alias.List.class)
public @interface Alias {

    @AliasFor(attribute = "value")
    public String from() default StringPool.ANNOTATION_STRING_NULL;

    @AliasFor(attribute = "from")
    public String value() default StringPool.ANNOTATION_STRING_NULL;

    public String to() default StringPool.ANNOTATION_STRING_NULL;

    @Inherited
    @Documented
    @Retention(RetentionPolicy.RUNTIME)
    @Target({ElementType.FIELD, ElementType.TYPE})
    public static @interface List {
        public Alias[] value() default {};
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy