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

org.nutz.dao.entity.annotation.One Maven / Gradle / Ivy

Go to download

Nutz, which is a collections of lightweight frameworks, each of them can be used independently

There is a newer version: 1.r.72
Show newest version
package org.nutz.dao.entity.annotation;

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

/**
 * 在一个字段上声明一条一对一映射,这个声明需要你输入两个参数:
 * 
    *
  • target: 你的这个字段对应的实体类。通常,这个类得是你的字段的一个子类或者实现类。或者它能够顺利的通过 Nutz.castor * 转换成 你的字段 *
  • field: 参考字段名,这个字段为对应对象的 Java 字段名称。 *
* * @author zozoh([email protected]) */ @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.FIELD, ElementType.METHOD}) @Documented public @interface One { Class target(); String field(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy