net.gdface.facelog.db.PersonMetaData Maven / Gradle / Ivy
// ______________________________________________________
// Generated by sql2java - https://github.com/10km/sql2java
// JDBC driver used at code generation time: com.mysql.jdbc.Driver
// template: metadata.java.vm
// ______________________________________________________
package net.gdface.facelog.db;
import java.util.List;
import java.util.Arrays;
import gu.sql2java.RowMetaData;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableList;
/**
* Class to supply table meta data for the fl_person table.
* @author guyadong
*/
public class PersonMetaData extends RowMetaData implements Constant
{
private static final ImmutableMap JUNCTION_TABLE_PK_MAP = ImmutableMap.of();
private static final ImmutableList FOREIGN_KEYS =
ImmutableList.builder()
.add("fl_person_ibfk_2 (image_md5) REFERENCES fl_image(md5) RESTRICT SET_NULL")
.add("fl_person_ibfk_1 (group_id) REFERENCES fl_person_group(id) RESTRICT SET_NULL")
.build();
private static final ImmutableList INDEXS =
ImmutableList.builder()
.add("image_md5 (image_md5) UNIQUE")
.add("mobile_phone (mobile_phone) UNIQUE")
.add("papers_num (papers_num) UNIQUE")
.add("expiry_date (expiry_date) ")
.add("group_id (group_id) ")
.build();
private static final List GETTERS = Arrays.asList("getId","getGroupId","getName","getSex","getRank","getPassword","getBirthdate","getMobilePhone","getPapersType","getPapersNum","getImageMd5","getExpiryDate","getActivatedDate","getRemark","getExtBin","getExtTxt","getCreateTime","getUpdateTime");
private static final List SETTERS = Arrays.asList("setId","setGroupId","setName","setSex","setRank","setPassword","setBirthdate","setMobilePhone","setPapersType","setPapersNum","setImageMd5","setExpiryDate","setActivatedDate","setRemark","setExtBin","setExtTxt","setCreateTime","setUpdateTime");
private static final String AUTO_INCREMENT_COLUMN = "id";
private static final Class> LOCK_COLUMN_TYPE = null;
private static final String LOCK_COLUMN_NAME = null;
public PersonMetaData(){
super(
"fl_person",
"TABLE",
PersonBean.class,
"Person",
IPersonManager.class,
FL_PERSON_FIELDS_LIST,
FL_PERSON_JAVA_FIELDS_LIST,
GETTERS,
SETTERS,
FL_PERSON_FIELD_TYPES,
FL_PERSON_FIELD_SIZES,
FL_PERSON_FIELD_SQL_TYPES,
FL_PERSON_PK_FIELDS_LIST,
JUNCTION_TABLE_PK_MAP,
LOCK_COLUMN_TYPE,
LOCK_COLUMN_NAME,
FOREIGN_KEYS,
INDEXS,
AUTO_INCREMENT_COLUMN
);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy