Blame | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.entity.scratch;import javax.persistence.*;import java.time.LocalDate;@Entity@NamedQuery(name = "OfferEntity.getOfferByDate", query = "SELECT oe FROM OfferEntity oe WHERE :date BETWEEN oe.startDate AND oe.endDate")@Table(name = "web.offer")public class OfferEntity {@Id@GeneratedValue(strategy = GenerationType.IDENTITY)private int id;@Column(name = "name")private String name;@Column(name = "offer_type")private String offerType;@Column(name = "description")private String description;@Column(name = "offer_image")private String offerImage;@Column(name = "start_date")private LocalDate startDate;@Column(name = "terms_condition")private String termsCondition;@Column(name = "end_date")private LocalDate endDate;@Column(name = "user_limit")private int userLimit;@Column(name = "scratch_validity")private int scratchValidity;@Column(name = "product_category")private String productCategory;@Column(name = "payment_method")private String paymentMethod;@Column(name = "is_active")private boolean active = true;@Column(name = "classification")private String classification;@Column(name = "is_deleted")private boolean deleted = false;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 getOfferType() {return offerType;}public void setOfferType(String offerType) {this.offerType = offerType;}public String getDescription() {return description;}public void setDescription(String description) {this.description = description;}public String getOfferImage() {return offerImage;}public void setOfferImage(String offerImage) {this.offerImage = offerImage;}public LocalDate getStartDate() {return startDate;}public void setStartDate(LocalDate startDate) {this.startDate = startDate;}public LocalDate getEndDate() {return endDate;}public void setEndDate(LocalDate endDate) {this.endDate = endDate;}public String getTermsCondition() {return termsCondition;}public void setTermsCondition(String termsCondition) {this.termsCondition = termsCondition;}public int getUserLimit() {return userLimit;}public void setUserLimit(int userLimit) {this.userLimit = userLimit;}public int getScratchValidity() {return scratchValidity;}public void setScratchValidity(int scratchValidity) {this.scratchValidity = scratchValidity;}public String getProductCategory() {return productCategory;}public void setProductCategory(String productCategory) {this.productCategory = productCategory;}public String getPaymentMethod() {return paymentMethod;}public void setPaymentMethod(String paymentMethod) {this.paymentMethod = paymentMethod;}public boolean getActive() {return active;}public void setActive(boolean active) {this.active = active;}public String getClassification() {return classification;}public void setClassification(String classification) {this.classification = classification;}public boolean getDeleted() {return deleted;}public void setDeleted(boolean deleted) {this.deleted = deleted;}@Overridepublic String toString() {return "Offer{" +"id=" + id +", name='" + name + '\'' +", offerType='" + offerType + '\'' +", description='" + description + '\'' +", offerImage='" + offerImage + '\'' +", startDate=" + startDate +", endDate=" + endDate +", termsCondition='" + termsCondition + '\'' +", userLimit=" + userLimit +", scratchValidity=" + scratchValidity +", productCategory='" + productCategory + '\'' +", paymentMethod='" + paymentMethod + '\'' +", active='" + active + '\'' +", classification=" + classification + '\'' +", deleted=" + deleted + '\'' +'}';}}