com.wizarius.orm.database.annotations.DBField Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wizarius-orm Show documentation
Show all versions of wizarius-orm Show documentation
Java orm for Postgres or Mysql with migration system and connection pool
package com.wizarius.orm.database.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @author Vladyslav Shyshkin on 21.01.17.
*/
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface DBField {
String fieldName();
boolean isAutoIncrement() default false;
int maxLenght() default 3;
int minLenght() default Integer.MAX_VALUE;
boolean isCustomType() default false;
}