com.kuangkie.carbon.entity.EntityRemoveDTO Maven / Gradle / Ivy
package com.kuangkie.carbon.entity;
import java.io.Serializable;
import com.alibaba.fastjson.JSONObject;
import com.kuangkie.carbon.common.RemoveDTO;
import com.kuangkie.carbon.common.FGSerializable;
public class EntityRemoveDTO extends RemoveDTO implements Serializable, FGSerializable {
private static final long serialVersionUID = 204725589423486616L;
private String strucTitle;
public EntityRemoveDTO() {
}
public EntityRemoveDTO(String strucTitle,String userCode, String code, String descripation) {
super(userCode, code, descripation);
this.strucTitle = strucTitle;
}
public String getStrucTitle() {
return strucTitle;
}
public void setStrucTitle(String strucTitle) {
this.strucTitle = strucTitle;
}
@Override
public String serialize() {
return JSONObject.toJSONString(this);
}
private void set(EntityRemoveDTO dto) {
super.set(dto);
this.setStrucTitle(dto.getStrucTitle());
}
@Override
public void deserialize(JSONObject serialJson) {
if (serialJson != null) {
EntityRemoveDTO dto = serialJson.toJavaObject(EntityRemoveDTO.class);
set(dto);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy