Subversion Repositories SmartDukaan

Rev

Rev 29845 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
29707 tejbeer 1
package com.spice.profitmandi.dao.entity.catalog;
2
 
3
import java.time.LocalDateTime;
4
 
5
import javax.persistence.Column;
6
import javax.persistence.Entity;
7
import javax.persistence.GeneratedValue;
8
import javax.persistence.GenerationType;
9
import javax.persistence.Id;
10
import javax.persistence.Table;
11
 
12
@Entity
13
@Table(name = "catalog.customer_offers", schema = "catalog")
14
public class CustomerOffer {
15
 
16
	@Id
17
	@GeneratedValue(strategy = GenerationType.IDENTITY)
18
	private int id;
19
 
20
	@Column(name = "offer_name")
21
	private String offerName;
22
 
23
	@Column(name = "start_date")
24
	private LocalDateTime startDate;
25
 
26
	@Column(name = "end_date")
27
	private LocalDateTime endDate;
28
 
29
	@Column(name = "created_timestamp")
30
	private LocalDateTime createdTimestamp;
31
 
32
	@Column(name = "updated_timestamp")
33
	private LocalDateTime updatedTimestamp;
34
 
35
	public int getId() {
36
		return id;
37
	}
38
 
39
	public void setId(int id) {
40
		this.id = id;
41
	}
42
 
43
	public String getOfferName() {
44
		return offerName;
45
	}
46
 
47
	public void setOfferName(String offerName) {
48
		this.offerName = offerName;
49
	}
50
 
51
	public LocalDateTime getStartDate() {
52
		return startDate;
53
	}
54
 
55
	public void setStartDate(LocalDateTime startDate) {
56
		this.startDate = startDate;
57
	}
58
 
59
	public LocalDateTime getEndDate() {
60
		return endDate;
61
	}
62
 
63
	public void setEndDate(LocalDateTime endDate) {
64
		this.endDate = endDate;
65
	}
66
 
67
	public LocalDateTime getCreatedTimestamp() {
68
		return createdTimestamp;
69
	}
70
 
71
	public void setCreatedTimestamp(LocalDateTime createdTimestamp) {
72
		this.createdTimestamp = createdTimestamp;
73
	}
74
 
75
	public LocalDateTime getUpdatedTimestamp() {
76
		return updatedTimestamp;
77
	}
78
 
79
	public void setUpdatedTimestamp(LocalDateTime updatedTimestamp) {
80
		this.updatedTimestamp = updatedTimestamp;
81
	}
82
 
83
	@Override
84
	public String toString() {
85
		return "CustomerOffer [id=" + id + ", offerName=" + offerName + ", startDate=" + startDate + ", endDate="
86
				+ endDate + ", createdTimestamp=" + createdTimestamp + ", updatedTimestamp=" + updatedTimestamp + "]";
87
	}
88
 
89
}