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 BaseCarCommercial<M extends BaseCarCommercial<M>> extends Model<M> implements IBean {

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

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



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

	/**
	 * 类别
	 */
	public M setCategory(java.lang.String category) {
		set("category", category);
		return (M)this;
	}
	
	/**
	 * 类别
	 */
	public java.lang.String getCategory() {
		return getStr("category");
	}

	/**
	 * 生产厂家
	 */
	public M setFactory(java.lang.String factory) {
		set("factory", factory);
		return (M)this;
	}
	
	/**
	 * 生产厂家
	 */
	public java.lang.String getFactory() {
		return getStr("factory");
	}

	/**
	 * 品牌
	 */
	public M setBrand(java.lang.String brand) {
		set("brand", brand);
		return (M)this;
	}
	
	/**
	 * 品牌
	 */
	public java.lang.String getBrand() {
		return getStr("brand");
	}

	/**
	 * 品牌首字母
	 */
	public M setInitials(java.lang.String initials) {
		set("initials", initials);
		return (M)this;
	}
	
	/**
	 * 品牌首字母
	 */
	public java.lang.String getInitials() {
		return getStr("initials");
	}

	/**
	 * 销售版本
	 */
	public M setSaleVersion(java.lang.String saleVersion) {
		set("saleVersion", saleVersion);
		return (M)this;
	}
	
	/**
	 * 销售版本
	 */
	public java.lang.String getSaleVersion() {
		return getStr("saleVersion");
	}

	/**
	 * 创建日期
	 */
	public M setAddtime(java.util.Date addtime) {
		set("addtime", addtime);
		return (M)this;
	}
	
	/**
	 * 创建日期
	 */
	public java.util.Date getAddtime() {
		return get("addtime");
	}

}
