首页>代码>spring mvc+spring+mybatis+shiro+easyui整合开发后台用户权限管理系统改造为基于dubbo的分布式服务项目>/spring_shiro_training/spring_shiro_training_api/src/main/java/com/wangzhixuan/model/Organization.java
package com.wangzhixuan.model; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; import java.util.Date; /** * @description:部门 * @author:zhixuan.wang * @date:2015/10/1 14:51 */ public class Organization implements Serializable { private static final long serialVersionUID = 1282186495210887307L; private Long id; private String name; private String address; private String code; @JsonProperty("iconCls") private String icon; private Long pid; private Integer seq; @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss") private Date createdate; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name == null ? null : name.trim(); } public String getAddress() { return address; } public void setAddress(String address) { this.address = address == null ? null : address.trim(); } public String getCode() { return code; } public void setCode(String code) { this.code = code == null ? null : code.trim(); } public String getIcon() { return icon; } public void setIcon(String icon) { this.icon = icon == null ? null : icon.trim(); } public Long getPid() { return pid; } public void setPid(Long pid) { this.pid = pid; } public Integer getSeq() { return seq; } public void setSeq(Integer seq) { this.seq = seq; } public Date getCreatedate() { return createdate; } public void setCreatedate(Date createdate) { this.createdate = createdate; } @Override public String toString() { return "Organization{" + "id=" + id + ", name='" + name + '\'' + ", address='" + address + '\'' + ", code='" + code + '\'' + ", icon='" + icon + '\'' + ", pid=" + pid + ", seq=" + seq + ", createdate=" + createdate + '}'; } }