UserRole.java 5.3 KB
package pwc.taxtech.atms.entity;

import java.io.Serializable;

/**
 *
 * This class was generated by MyBatis Generator.
 * This class corresponds to the database table UserRole
 *
 * @mbg.generated do_not_delete_during_merge
 */
public class UserRole implements Serializable {
    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column UserRole.ID
     *
     * @mbg.generated
     */
    private String id;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column UserRole.UserID
     *
     * @mbg.generated
     */
    private String userId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column UserRole.RoleID
     *
     * @mbg.generated
     */
    private String roleId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column UserRole.ProjectID
     *
     * @mbg.generated
     */
    private String projectId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column UserRole.ServiceTypeID
     *
     * @mbg.generated
     */
    private String serviceTypeId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table UserRole
     *
     * @mbg.generated
     */
    private static final long serialVersionUID = 1L;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column UserRole.ID
     *
     * @return the value of UserRole.ID
     *
     * @mbg.generated
     */
    public String getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column UserRole.ID
     *
     * @param id the value for UserRole.ID
     *
     * @mbg.generated
     */
    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column UserRole.UserID
     *
     * @return the value of UserRole.UserID
     *
     * @mbg.generated
     */
    public String getUserId() {
        return userId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column UserRole.UserID
     *
     * @param userId the value for UserRole.UserID
     *
     * @mbg.generated
     */
    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column UserRole.RoleID
     *
     * @return the value of UserRole.RoleID
     *
     * @mbg.generated
     */
    public String getRoleId() {
        return roleId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column UserRole.RoleID
     *
     * @param roleId the value for UserRole.RoleID
     *
     * @mbg.generated
     */
    public void setRoleId(String roleId) {
        this.roleId = roleId == null ? null : roleId.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column UserRole.ProjectID
     *
     * @return the value of UserRole.ProjectID
     *
     * @mbg.generated
     */
    public String getProjectId() {
        return projectId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column UserRole.ProjectID
     *
     * @param projectId the value for UserRole.ProjectID
     *
     * @mbg.generated
     */
    public void setProjectId(String projectId) {
        this.projectId = projectId == null ? null : projectId.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column UserRole.ServiceTypeID
     *
     * @return the value of UserRole.ServiceTypeID
     *
     * @mbg.generated
     */
    public String getServiceTypeId() {
        return serviceTypeId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column UserRole.ServiceTypeID
     *
     * @param serviceTypeId the value for UserRole.ServiceTypeID
     *
     * @mbg.generated
     */
    public void setServiceTypeId(String serviceTypeId) {
        this.serviceTypeId = serviceTypeId == null ? null : serviceTypeId.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table UserRole
     *
     * @mbg.generated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", roleId=").append(roleId);
        sb.append(", projectId=").append(projectId);
        sb.append(", serviceTypeId=").append(serviceTypeId);
        sb.append("]");
        return sb.toString();
    }
}