package com.yutou.jianr_mg.Data;

import java.util.ArrayList;
import java.util.List;

public class TModtype {

	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_modtype.id
	 * @mbg.generated  Sun May 06 16:48:05 CST 2018
	 */
	private Integer id;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_modtype.name
	 * @mbg.generated  Sun May 06 16:48:05 CST 2018
	 */
	private String name;

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_modtype.id
	 * @return  the value of t_modtype.id
	 * @mbg.generated  Sun May 06 16:48:05 CST 2018
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_modtype.id
	 * @param id  the value for t_modtype.id
	 * @mbg.generated  Sun May 06 16:48:05 CST 2018
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_modtype.name
	 * @return  the value of t_modtype.name
	 * @mbg.generated  Sun May 06 16:48:05 CST 2018
	 */
	public String getName() {
		return name;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_modtype.name
	 * @param name  the value for t_modtype.name
	 * @mbg.generated  Sun May 06 16:48:05 CST 2018
	 */
	public void setName(String name) {
		this.name = name;
	}

	public static List<String> toStringList(List<TModtype> array){
		List<String> list=new ArrayList<>();
		for (TModtype tModtype : array) {
			list.add(tModtype.getName());
		}
		return list;
	}
}