RolePermission.java 4.03 KB
Newer Older
1
package pwc.taxtech.atms.entity;
eddie.woo's avatar
eddie.woo committed
2 3 4 5

import java.io.Serializable;

/**
gary's avatar
gary committed
6
 *
eddie.woo's avatar
eddie.woo committed
7
 * This class was generated by MyBatis Generator.
gary's avatar
gary committed
8
 * This class corresponds to the database table role_permission
eddie.woo's avatar
eddie.woo committed
9 10 11
 *
 * @mbg.generated do_not_delete_during_merge
 */
gary's avatar
gary committed
12
public class RolePermission extends BaseEntity implements Serializable {
eddie.woo's avatar
eddie.woo committed
13
    /**
gary's avatar
gary committed
14
     *
eddie.woo's avatar
eddie.woo committed
15
     * This field was generated by MyBatis Generator.
gary's avatar
gary committed
16
     * This field corresponds to the database column role_permission.id
eddie.woo's avatar
eddie.woo committed
17 18 19
     *
     * @mbg.generated
     */
neo's avatar
neo committed
20
    private String id;
eddie.woo's avatar
eddie.woo committed
21 22

    /**
gary's avatar
gary committed
23
     *
eddie.woo's avatar
eddie.woo committed
24
     * This field was generated by MyBatis Generator.
gary's avatar
gary committed
25
     * This field corresponds to the database column role_permission.role_id
eddie.woo's avatar
eddie.woo committed
26 27 28
     *
     * @mbg.generated
     */
neo's avatar
neo committed
29
    private String roleId;
eddie.woo's avatar
eddie.woo committed
30 31

    /**
gary's avatar
gary committed
32
     *
eddie.woo's avatar
eddie.woo committed
33
     * This field was generated by MyBatis Generator.
gary's avatar
gary committed
34
     * This field corresponds to the database column role_permission.permission_id
eddie.woo's avatar
eddie.woo committed
35 36 37
     *
     * @mbg.generated
     */
neo's avatar
neo committed
38
    private String permissionId;
eddie.woo's avatar
eddie.woo committed
39

gary's avatar
gary committed
40 41 42 43
    private Permission permission;

    private Role role;

eddie.woo's avatar
eddie.woo committed
44 45
    /**
     * This field was generated by MyBatis Generator.
gary's avatar
gary committed
46
     * This field corresponds to the database table role_permission
eddie.woo's avatar
eddie.woo committed
47 48 49 50 51 52 53
     *
     * @mbg.generated
     */
    private static final long serialVersionUID = 1L;

    /**
     * This method was generated by MyBatis Generator.
gary's avatar
gary committed
54
     * This method returns the value of the database column role_permission.id
gary's avatar
gary committed
55
     *
gary's avatar
gary committed
56
     * @return the value of role_permission.id
eddie.woo's avatar
eddie.woo committed
57 58 59
     *
     * @mbg.generated
     */
neo's avatar
neo committed
60 61
    public String getId() {
        return id;
eddie.woo's avatar
eddie.woo committed
62 63 64 65
    }

    /**
     * This method was generated by MyBatis Generator.
gary's avatar
gary committed
66
     * This method sets the value of the database column role_permission.id
gary's avatar
gary committed
67
     *
gary's avatar
gary committed
68
     * @param id the value for role_permission.id
eddie.woo's avatar
eddie.woo committed
69 70 71
     *
     * @mbg.generated
     */
neo's avatar
neo committed
72 73
    public void setId(String id) {
        this.id = id == null ? null : id.trim();
eddie.woo's avatar
eddie.woo committed
74 75 76 77
    }

    /**
     * This method was generated by MyBatis Generator.
gary's avatar
gary committed
78
     * This method returns the value of the database column role_permission.role_id
gary's avatar
gary committed
79
     *
gary's avatar
gary committed
80
     * @return the value of role_permission.role_id
eddie.woo's avatar
eddie.woo committed
81 82 83
     *
     * @mbg.generated
     */
neo's avatar
neo committed
84 85
    public String getRoleId() {
        return roleId;
eddie.woo's avatar
eddie.woo committed
86 87 88 89
    }

    /**
     * This method was generated by MyBatis Generator.
gary's avatar
gary committed
90
     * This method sets the value of the database column role_permission.role_id
gary's avatar
gary committed
91
     *
gary's avatar
gary committed
92
     * @param roleId the value for role_permission.role_id
eddie.woo's avatar
eddie.woo committed
93 94 95
     *
     * @mbg.generated
     */
neo's avatar
neo committed
96 97
    public void setRoleId(String roleId) {
        this.roleId = roleId == null ? null : roleId.trim();
eddie.woo's avatar
eddie.woo committed
98 99 100 101
    }

    /**
     * This method was generated by MyBatis Generator.
gary's avatar
gary committed
102
     * This method returns the value of the database column role_permission.permission_id
gary's avatar
gary committed
103
     *
gary's avatar
gary committed
104
     * @return the value of role_permission.permission_id
eddie.woo's avatar
eddie.woo committed
105 106 107
     *
     * @mbg.generated
     */
neo's avatar
neo committed
108 109
    public String getPermissionId() {
        return permissionId;
eddie.woo's avatar
eddie.woo committed
110 111 112 113
    }

    /**
     * This method was generated by MyBatis Generator.
gary's avatar
gary committed
114
     * This method sets the value of the database column role_permission.permission_id
gary's avatar
gary committed
115
     *
gary's avatar
gary committed
116
     * @param permissionId the value for role_permission.permission_id
eddie.woo's avatar
eddie.woo committed
117 118 119
     *
     * @mbg.generated
     */
neo's avatar
neo committed
120 121
    public void setPermissionId(String permissionId) {
        this.permissionId = permissionId == null ? null : permissionId.trim();
eddie.woo's avatar
eddie.woo committed
122 123
    }

gary's avatar
gary committed
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
    public Permission getPermission() {
        return permission;
    }

    public void setPermission(Permission permission) {
        this.permission = permission;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }

eddie.woo's avatar
eddie.woo committed
140 141
    /**
     * This method was generated by MyBatis Generator.
gary's avatar
gary committed
142
     * This method corresponds to the database table role_permission
eddie.woo's avatar
eddie.woo committed
143 144 145 146 147 148 149 150 151
     *
     * @mbg.generated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
neo's avatar
neo committed
152 153 154
        sb.append(", id=").append(id);
        sb.append(", roleId=").append(roleId);
        sb.append(", permissionId=").append(permissionId);
eddie.woo's avatar
eddie.woo committed
155 156 157 158
        sb.append("]");
        return sb.toString();
    }
}