Rev 28768 | Rev 29055 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.entity.fofo;import java.time.LocalDateTime;import javax.persistence.Column;import javax.persistence.Entity;import javax.persistence.EnumType;import javax.persistence.Enumerated;import javax.persistence.GeneratedValue;import javax.persistence.GenerationType;import javax.persistence.Id;import javax.persistence.Table;import com.spice.profitmandi.dao.enumuration.fofo.ApplicableServiceType;/*** This class basically contains role details** @author Govind**/@Entity@Table(name="fofo.partner_service",schema="fofo")public class PartnerService {@Id@Column(name="id", unique=true, updatable=false)@GeneratedValue(strategy = GenerationType.IDENTITY)private int id;@Column(name="fofo_id")private int fofoId;@Column(name="service_id")private int serviceId;@Column(name="applicable_type")@Enumerated(EnumType.STRING)private ApplicableServiceType applicableType;@Column(name="code")private String code;@Column(name="create_timestamp")private LocalDateTime createTimestamp;@Column(name="na_Comment")private String na_Comment;public int getId() {return id;}public void setId(int id) {this.id = id;}public int getFofoId() {return fofoId;}public void setFofoId(int fofoId) {this.fofoId = fofoId;}public LocalDateTime getCreateTimestamp() {return createTimestamp;}public void setCreateTimestamp(LocalDateTime createTimestamp) {this.createTimestamp = createTimestamp;}public int getServiceId() {return serviceId;}public void setServiceId(int serviceId) {this.serviceId = serviceId;}public ApplicableServiceType getApplicableType() {return applicableType;}public void setApplicableType(ApplicableServiceType applicableType) {this.applicableType = applicableType;}public String getCode() {return code;}public void setCode(String code) {this.code = code;}public String getNa_Comment() {return na_Comment;}public void setNa_Comment(String na_Comment) {this.na_Comment = na_Comment;}@Overridepublic int hashCode() {final int prime = 31;int result = 1;result = prime * result + ((applicableType == null) ? 0 : applicableType.hashCode());result = prime * result + ((code == null) ? 0 : code.hashCode());result = prime * result + fofoId;result = prime * result + id;result = prime * result + ((na_Comment == null) ? 0 : na_Comment.hashCode());result = prime * result + serviceId;return result;}@Overridepublic boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;PartnerService other = (PartnerService) obj;if (applicableType != other.applicableType)return false;if (code == null) {if (other.code != null)return false;} else if (!code.equals(other.code))return false;if (fofoId != other.fofoId)return false;if (id != other.id)return false;if (na_Comment == null) {if (other.na_Comment != null)return false;} else if (!na_Comment.equals(other.na_Comment))return false;if (serviceId != other.serviceId)return false;return true;}@Overridepublic String toString() {return "PartnerService [id=" + id + ", fofoId=" + fofoId + ", serviceId=" + serviceId + ", applicableType="+ applicableType + ", code=" + code + ", createTimestamp=" + createTimestamp + ", na_Comment="+ na_Comment + "]";}}