Blame | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.entity.dtr;import javax.persistence.*;import java.time.LocalDateTime;import java.util.Objects;@Entity@Table(name = "dtr.optin")public class Optin {/****/@Id@GeneratedValue(strategy = GenerationType.IDENTITY)private int id;@Column(length = 10)private String mobile;@Columnprivate LocalDateTime created;@Overridepublic String toString() {return "Optin{" +"id=" + id +", mobile='" + mobile + '\'' +", created=" + created +'}';}@Overridepublic boolean equals(Object o) {if (this == o) return true;if (o == null || getClass() != o.getClass()) return false;Optin optin = (Optin) o;return id == optin.id && Objects.equals(mobile, optin.mobile) && Objects.equals(created, optin.created);}@Overridepublic int hashCode() {return Objects.hash(id, mobile, created);}public int getId() {return id;}public void setId(int id) {this.id = id;}public String getMobile() {return mobile;}public void setMobile(String mobile) {this.mobile = mobile;}public LocalDateTime getCreated() {return created;}public void setCreated(LocalDateTime created) {this.created = created;}}