
com.github.javaclub.jorm.annotation.Column Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jorm Show documentation
Show all versions of jorm Show documentation
This is a java JDBC ORM Framework
/*
* @(#)Colum.java 2010-4-21
*
* Copyright (c) 2010 by gerald. All Rights Reserved.
*/
package com.github.javaclub.jorm.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 声明一个 Java 字段是否有对应的数据库字段
*
* 如果数据库字段名同 JAVA 字段名不一样,通过这个注解可以进行特殊标注:
*
*
* @Column("数据库字段名")
*
*
* 需要说明的是:
*
* -
* 如果你的 POJO 没有任何一个字段 声明了这个注解,那么所有的 Java 字段都会被认为是数据库字段。
*
*
* @author Gerald Chen
* @version $Id: Column.java 85 2011-07-09 10:49:54Z [email protected] $
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
public @interface Column {
String value() default "";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy