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

io.github.kiryu1223.drink.annotation.Navigate Maven / Gradle / Ivy

There is a newer version: 1.0.5
Show newest version
package io.github.kiryu1223.drink.annotation;

import io.github.kiryu1223.drink.ext.IMappingTable;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Navigate
{
    /**
     * 关联关系
     */
    RelationType value();

    /**
     * 自身对应java字段名
     */
    String self();

    /**
     * 目标对应java字段名
     */
    String target();

    /**
     * 中间表,需要继承{@link IMappingTable}
     */
    Class mappingTable() default IMappingTable.class;

    /**
     * self对应的mapping表java字段名
     */
    String selfMapping() default "";

    /**
     * target对应的mapping表java字段名
     */
    String targetMapping() default "";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy