| | |
| | | |
| | | 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 org.springframework.data.annotation.LastModifiedDate; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonIgnore; |
| | | import com.pollex.pam.enums.OtpLoginTypeEnum; |
| | | |
| | | @Entity |
| | | @Table(name = "customer") |
| | |
| | | |
| | | @Column(name = "email") |
| | | private String email; |
| | | |
| | | @Enumerated(value = EnumType.STRING) |
| | | @Column(name = "contact_type") |
| | | private OtpLoginTypeEnum contactType; |
| | | |
| | | @CreatedDate |
| | | @Column(name = "created_date", updatable = false) |
| | |
| | | public void setLastModifiedDate(Instant lastModifiedDate) { |
| | | this.lastModifiedDate = lastModifiedDate; |
| | | } |
| | | |
| | | public OtpLoginTypeEnum getContactType() { |
| | | return contactType; |
| | | } |
| | | |
| | | public void setContactType(OtpLoginTypeEnum contactType) { |
| | | this.contactType = contactType; |
| | | } |
| | | |
| | | |
| | | |