仓库 后端返回视图实体辅助类 (通常后端关联的表或者自定义的字段需要返回使用)
| 18 | * (通常后端关联的表或者自定义的字段需要返回使用) |
| 19 | */ |
| 20 | @TableName("cangku") |
| 21 | public class CangkuView extends CangkuEntity implements Serializable { |
| 22 | private static final long serialVersionUID = 1L; |
| 23 | |
| 24 | //当前表 |
| 25 | /** |
| 26 | * 仓库类型的值 |
| 27 | */ |
| 28 | @ColumnInfo(comment="仓库类型的字典表值",type="varchar(200)") |
| 29 | private String cangkuValue; |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | public CangkuView() { |
| 35 | |
| 36 | } |
| 37 | |
| 38 | public CangkuView(CangkuEntity cangkuEntity) { |
| 39 | try { |
| 40 | BeanUtils.copyProperties(this, cangkuEntity); |
| 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 getCangkuValue() { |
| 54 | return cangkuValue; |
| 55 | } |
| 56 | /** |
| 57 | * 设置: 仓库类型的值 |
| 58 | */ |
| 59 | public void setCangkuValue(String cangkuValue) { |
| 60 | this.cangkuValue = cangkuValue; |
| 61 | } |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | @Override |
| 67 | public String toString() { |
| 68 | return "CangkuView{" + |
| 69 | ", cangkuValue=" + cangkuValue + |
| 70 | "} " + super.toString(); |
| 71 | } |
| 72 | } |
nothing calls this directly
no outgoing calls
no test coverage detected