车辆 后端返回视图实体辅助类 (通常后端关联的表或者自定义的字段需要返回使用)
| 18 | * (通常后端关联的表或者自定义的字段需要返回使用) |
| 19 | */ |
| 20 | @TableName("cheliang") |
| 21 | public class CheliangView extends CheliangEntity implements Serializable { |
| 22 | private static final long serialVersionUID = 1L; |
| 23 | |
| 24 | //当前表 |
| 25 | /** |
| 26 | * 车辆类型的值 |
| 27 | */ |
| 28 | @ColumnInfo(comment="车辆类型的字典表值",type="varchar(200)") |
| 29 | private String cheliangValue; |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | public CheliangView() { |
| 35 | |
| 36 | } |
| 37 | |
| 38 | public CheliangView(CheliangEntity cheliangEntity) { |
| 39 | try { |
| 40 | BeanUtils.copyProperties(this, cheliangEntity); |
| 41 | } catch (IllegalAccessException | InvocationTargetException e) { |
| 42 | // TODO Auto-generated catch block |
| 43 | e.printStackTrace(); |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | |
| 48 | |
| 49 | //当前表的 |
| 50 | /** |
| 51 | * 获取: 车辆类型的值 |
| 52 | */ |
| 53 | public String getCheliangValue() { |
| 54 | return cheliangValue; |
| 55 | } |
| 56 | /** |
| 57 | * 设置: 车辆类型的值 |
| 58 | */ |
| 59 | public void setCheliangValue(String cheliangValue) { |
| 60 | this.cheliangValue = cheliangValue; |
| 61 | } |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | @Override |
| 67 | public String toString() { |
| 68 | return "CheliangView{" + |
| 69 | ", cheliangValue=" + cheliangValue + |
| 70 | "} " + super.toString(); |
| 71 | } |
| 72 | } |
nothing calls this directly
no outgoing calls
no test coverage detected