Subversion Repositories SmartDukaan

Rev

Rev 23300 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.entity.user;

import java.time.LocalDateTime;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * This class basically contains address details
 * 
 * @author ashikali
 *
 */
@Entity
@Table(name="user.counter")

public class Counter {
        
        @Id
        @Column(name="id", unique=true, updatable=false)
        @GeneratedValue(strategy = GenerationType.IDENTITY)
        private int id;
        
        @Column(name = "name")
        private String name;
        
        @Column(name = "email")
        private String emailId;
        
        @Column(name = "mobile")
        private String mobileNumber;
        
        @Column(name = "gstin")
        private String gstin;
        
        @Column(name = "addressId")
        private int addressId;
        
        @Column(name = "createdOn")
        private LocalDateTime createdOn;
        
        public LocalDateTime getCreatedOn() {
                return createdOn;
        }

        public void setCreatedOn(LocalDateTime createdOn) {
                this.createdOn = createdOn;
        }

        public LocalDateTime getVerifiedOn() {
                return verifiedOn;
        }

        public void setVerifiedOn(LocalDateTime verifiedOn) {
                this.verifiedOn = verifiedOn;
        }

        @Column(name = "verifiedOn")
        private LocalDateTime verifiedOn;
        
        @Column(name = "documentVerified", columnDefinition = "tinyint(1) default 0")
        private boolean documentVerified;

        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 getEmailId() {
                return emailId;
        }

        public void setEmailId(String emailId) {
                this.emailId = emailId;
        }

        public String getMobileNumber() {
                return mobileNumber;
        }

        public void setMobileNumber(String mobileNumber) {
                this.mobileNumber = mobileNumber;
        }

        public String getGstin() {
                return gstin;
        }

        public void setGstin(String gstin) {
                this.gstin = gstin;
        }
        
        public int getAddressId() {
                return addressId;
        }
        
        public void setAddressId(int addressId) {
                this.addressId = addressId;
        }

        public boolean isDocumentVerified() {
                return documentVerified;
        }

        public void setDocumentVerified(boolean documentVerified) {
                this.documentVerified = documentVerified;
        }

        @Override
        public int hashCode() {
                final int prime = 31;
                int result = 1;
                result = prime * result + id;
                return result;
        }

        @Override
        public boolean equals(Object obj) {
                if (this == obj)
                        return true;
                if (obj == null)
                        return false;
                if (getClass() != obj.getClass())
                        return false;
                Counter other = (Counter) obj;
                if (id != other.id)
                        return false;
                return true;
        }

        @Override
        public String toString() {
                return "Counter [id=" + id + ", name=" + name + ", emailId=" + emailId + ", mobileNumber=" + mobileNumber
                                + ", gstin=" + gstin + ", addressId=" + addressId + ", documentVerified=" + documentVerified + "]";
        }
        
}