Subversion Repositories SmartDukaan

Rev

Rev 21600 | Blame | Last modification | View Log | RSS feed

package com.spice.profitmandi.common.model;

import java.time.LocalDateTime;

public class CustomRole {
        private int id;
        private String name;
        private String type;
        private String status;
        private LocalDateTime createTimestamp;
        private LocalDateTime updateTimestamp;
        private String permissionType;
        public int getId() {
                return id;
        }
        public void setId(int id) {
                this.id = id;
        }
        public String getName() {
                return name;
        }
        public void setName(String name) {
                this.name = name;
        }
        public String getType() {
                return type;
        }
        public void setType(String type) {
                this.type = type;
        }
        public String getStatus() {
                return status;
        }
        public void setStatus(String status) {
                this.status = status;
        }
        public LocalDateTime getCreateTimestamp() {
                return createTimestamp;
        }
        public void setCreateTimestamp(LocalDateTime createTimestamp) {
                this.createTimestamp = createTimestamp;
        }
        public LocalDateTime getUpdateTimestamp() {
                return updateTimestamp;
        }
        public void setUpdateTimestamp(LocalDateTime updateTimestamp) {
                this.updateTimestamp = updateTimestamp;
        }
        public String getPermissionType() {
                return permissionType;
        }
        public void setPermissionType(String permissionType) {
                this.permissionType = permissionType;
        }
        
        
        @Override
        public int hashCode() {
                final int prime = 31;
                int result = 1;
                result = prime * result + ((createTimestamp == null) ? 0 : createTimestamp.hashCode());
                result = prime * result + id;
                result = prime * result + ((name == null) ? 0 : name.hashCode());
                result = prime * result + ((permissionType == null) ? 0 : permissionType.hashCode());
                result = prime * result + ((status == null) ? 0 : status.hashCode());
                result = prime * result + ((type == null) ? 0 : type.hashCode());
                result = prime * result + ((updateTimestamp == null) ? 0 : updateTimestamp.hashCode());
                return result;
        }
        @Override
        public boolean equals(Object obj) {
                if (this == obj)
                        return true;
                if (obj == null)
                        return false;
                if (getClass() != obj.getClass())
                        return false;
                CustomRole other = (CustomRole) obj;
                if (createTimestamp == null) {
                        if (other.createTimestamp != null)
                                return false;
                } else if (!createTimestamp.equals(other.createTimestamp))
                        return false;
                if (id != other.id)
                        return false;
                if (name == null) {
                        if (other.name != null)
                                return false;
                } else if (!name.equals(other.name))
                        return false;
                if (permissionType == null) {
                        if (other.permissionType != null)
                                return false;
                } else if (!permissionType.equals(other.permissionType))
                        return false;
                if (status == null) {
                        if (other.status != null)
                                return false;
                } else if (!status.equals(other.status))
                        return false;
                if (type == null) {
                        if (other.type != null)
                                return false;
                } else if (!type.equals(other.type))
                        return false;
                if (updateTimestamp == null) {
                        if (other.updateTimestamp != null)
                                return false;
                } else if (!updateTimestamp.equals(other.updateTimestamp))
                        return false;
                return true;
        }
        @Override
        public String toString() {
                return "CustomRole [id=" + id + ", name=" + name + ", type=" + type + ", status=" + status
                                + ", createTimestamp=" + createTimestamp + ", updateTimestamp=" + updateTimestamp + ", permissionType="
                                + permissionType + "]";
        }
        
        
}