package com.changhong.epc.bean.tenant.org; import com.changhong.epc.constter.base.BaseBean; import lombok.Data; import lombok.EqualsAndHashCode; import javax.persistence.Column; import javax.persistence.Table; import java.io.Serializable; @Table(name="epc_tenant_org_{rule} ") @Data @EqualsAndHashCode(callSuper =true) public class TenantOrg extends BaseBean implements Serializable { public TenantOrg(){} public TenantOrg(String code, String name, String parentCode,String parentName) { this.code = code; this.name = name; this.parentCode = parentCode; this.parentName = parentName; } /** * 当前组织机构code */ @Column(name = "code") private String code; /** * 当前组织机构name */ @Column(name = "name") private String name; /** * 上级组织机构 */ @Column(name = "parent_code") private String parentCode; /** * 上级组织机构 */ @Column(name = "parent_name") private String parentName; }