package com.jzdsh.auto.model.base;

import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.IBean;

/**
 * Generated by JFinal, do not modify this file.
 */
@SuppressWarnings({"serial", "unchecked"})
public abstract class BaseUda<M extends BaseUda<M>> extends Model<M> implements IBean {

	/**
	 * 表名
	 */
	public static final String TableName = "uda";

	/**
	 * select fields from tablename 根据查询字段自动构建select 语句
	 */
	public static String SelectFrom(String fields){
		return String.format("select %s from %s ",fields,TableName);
	}



	/**
	 * 自增id
	 */
	public M setId(java.lang.Integer id) {
		set("id", id);
		return (M)this;
	}
	
	/**
	 * 自增id
	 */
	public java.lang.Integer getId() {
		return getInt("id");
	}

	/**
	 * 用户(userInfo)
	 */
	public M setUserId(java.lang.Integer userId) {
		set("userId", userId);
		return (M)this;
	}
	
	/**
	 * 用户(userInfo)
	 */
	public java.lang.Integer getUserId() {
		return getInt("userId");
	}

	/**
	 * 省份
	 */
	public M setProvince(java.lang.String province) {
		set("province", province);
		return (M)this;
	}
	
	/**
	 * 省份
	 */
	public java.lang.String getProvince() {
		return getStr("province");
	}

	/**
	 * 城市
	 */
	public M setCity(java.lang.String city) {
		set("city", city);
		return (M)this;
	}
	
	/**
	 * 城市
	 */
	public java.lang.String getCity() {
		return getStr("city");
	}

	/**
	 * 县城
	 */
	public M setDistrict(java.lang.String district) {
		set("district", district);
		return (M)this;
	}
	
	/**
	 * 县城
	 */
	public java.lang.String getDistrict() {
		return getStr("district");
	}

}
