自定义注解Annotation
来源:互联网 发布:淘宝利润率计算公式 编辑:程序博客网 时间:2024/06/01 07:45
package annotation;import java.lang.annotation.ElementType;import java.lang.annotation.Retention;import java.lang.annotation.RetentionPolicy;import java.lang.annotation.Target;@Target(ElementType.TYPE)@Retention(RetentionPolicy.RUNTIME)public @interface Table {String value() default "";}
package annotation;import java.lang.annotation.ElementType;import java.lang.annotation.Retention;import java.lang.annotation.RetentionPolicy;import java.lang.annotation.Target;@Target(ElementType.FIELD)@Retention(RetentionPolicy.RUNTIME)public @interface Field {String columnName();String type();int length();}
package annotation;@Table("tb_student")public class Student {@Field(columnName="id",type="int",length=11)private int id;@Field(columnName="name",type="varchar",length=50)private String name;private int age;public int getId() {return id;}public void setId(int id) {this.id = id;}public String getName() {return name;}public void setName(String name) {this.name = name;}public int getAge() {return age;}public void setAge(int age) {this.age = age;}}
0 0
- Java 自定义注解(Annotation)
- 自定义注解annotation
- Java自定义注解 Annotation
- 自定义Annotation(注解)
- Annotation自定义注解
- Java自定义注解Annotation
- 自定义注解Annotation
- 自定义一个注解 annotation
- Java 自定义注解Annotation
- 自定义注解(Annotation)
- 自定义注解 annotation 总结
- 自定义注解Annotation
- annotation 自定义注解
- Java自定义注解Annotation
- JAVA,Annotation自定义注解
- 注解(Annotation)自定义注解
- 自定义注解Annotation的使用
- Java Annotation自定义注解详解
- Redis与spring的整合遇到问题
- JNI NDK AOP架构设计 UML建模 IOC架构设计 MVP架构等安卓专有名词简介
- 一道让我踏进坑的字符串题目
- 怎么样把pdf压缩到最小
- C# Left, Right and Mid函数
- 自定义注解Annotation
- isAssignableFrom 和 instanceof
- okhttp 文件上传下载
- ZOJ#3207:80ers' Memory
- RxJava RxAndroid理论知识详解
- MySQL忘记root密码怎么办?
- iterator 的小东西
- 终端改字体颜色,非终端背景色
- ZEDBOARD 视频扩展板子上实现HDMI,代码