com.mycomm.dao.dao4comm.annotation.MyColumn Maven / Gradle / Ivy
The newest version!
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.mycomm.dao.dao4comm.annotation;
import com.mycomm.dao.dao4comm.annotation.dialect.UniversalDBColumType;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
*
* @author jw362j
*/
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface MyColumn {
/**
CREATE TABLE `showable` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`author` varchar(255) DEFAULT NULL,
`catagory` varchar(255) NOT NULL,
`catagory_order` int(11) NOT NULL DEFAULT '0',
`cnt` int(11) DEFAULT NULL,
`content` longtext,
`createTime` datetime DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`imgname` varchar(255) DEFAULT NULL,
`title` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`)
)ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8
* @return
*/
public String ColumnName() default "";
public UniversalDBColumType ColumnType() default UniversalDBColumType.DBColumNull;
public String ColumnDefaultValue() default "";
public boolean isColumnNullable() default true;
public boolean isColumnUnique() default false;
}