字典 后端返回视图实体辅助类 (通常后端关联的表或者自定义的字段需要返回使用)
| 18 | * (通常后端关联的表或者自定义的字段需要返回使用) |
| 19 | */ |
| 20 | @TableName("dictionary") |
| 21 | public class DictionaryView extends DictionaryEntity implements Serializable { |
| 22 | private static final long serialVersionUID = 1L; |
| 23 | |
| 24 | //当前表 |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | public DictionaryView() { |
| 30 | |
| 31 | } |
| 32 | |
| 33 | public DictionaryView(DictionaryEntity dictionaryEntity) { |
| 34 | try { |
| 35 | BeanUtils.copyProperties(this, dictionaryEntity); |
| 36 | } catch (IllegalAccessException | InvocationTargetException e) { |
| 37 | // TODO Auto-generated catch block |
| 38 | e.printStackTrace(); |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | @Override |
| 49 | public String toString() { |
| 50 | return "DictionaryView{" + |
| 51 | "} " + super.toString(); |
| 52 | } |
| 53 | } |
nothing calls this directly
no outgoing calls
no test coverage detected