Subversion Repositories SmartDukaan

Rev

Rev 25721 | Rev 27088 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 25721 Rev 27081
Line 3... Line 3...
3
import java.io.Serializable;
3
import java.io.Serializable;
4
import java.time.LocalDateTime;
4
import java.time.LocalDateTime;
5
 
5
 
6
import javax.persistence.Column;
6
import javax.persistence.Column;
7
import javax.persistence.Entity;
7
import javax.persistence.Entity;
-
 
8
import javax.persistence.EnumType;
-
 
9
import javax.persistence.Enumerated;
-
 
10
import javax.persistence.GeneratedValue;
-
 
11
import javax.persistence.GenerationType;
8
import javax.persistence.Id;
12
import javax.persistence.Id;
9
import javax.persistence.Table;
13
import javax.persistence.Table;
10
 
14
 
-
 
15
import com.spice.profitmandi.dao.entity.fofo.PartnerType;
-
 
16
 
11
@Entity
17
@Entity
12
@Table(name = "catalog.focused_model", schema = "catalog")
18
@Table(name = "catalog.focused_model", schema = "catalog")
13
public class FocusedModel implements Serializable {
19
public class FocusedModel implements Serializable {
14
 
20
 
15
	private static final long serialVersionUID = 1L;
21
	private static final long serialVersionUID = 1L;
16
 
22
 
17
	@Id
23
	@Id
18
	@Column(name = "catalog_id", columnDefinition = "int(11)")
24
	@Column(name = "id", columnDefinition = "int(11)")
-
 
25
	@GeneratedValue(strategy = GenerationType.IDENTITY)
-
 
26
	private int id;
-
 
27
 
-
 
28
	@Column(name = "catalog_id")
19
	private int catalogId;
29
	private int catalogId;
20
 
30
 
-
 
31
	public int getId() {
-
 
32
		return id;
-
 
33
	}
-
 
34
 
-
 
35
	public void setId(int id) {
-
 
36
		this.id = id;
-
 
37
	}
-
 
38
 
21
	@Column(name = "recommended_qty")
39
	@Column(name = "recommended_qty")
22
	private int recommendedQty;
40
	private int recommendedQty;
23
 
41
 
24
	@Column(name = "minimum_qty")
42
	@Column(name = "minimum_qty")
25
	private int minimumQty;
43
	private int minimumQty;
26
 
44
 
-
 
45
	@Column(name = "partner_type")
-
 
46
	@Enumerated(EnumType.STRING)
-
 
47
	private PartnerType partnerType;;
-
 
48
 
27
	@Column(name = "created_timestamp")
49
	@Column(name = "created_timestamp")
28
	private LocalDateTime createdTimestamp;
50
	private LocalDateTime createdTimestamp;
29
 
51
 
-
 
52
	public PartnerType getPartnerType() {
-
 
53
		return partnerType;
-
 
54
	}
-
 
55
 
-
 
56
	public void setPartnerType(PartnerType partnerType) {
-
 
57
		this.partnerType = partnerType;
-
 
58
	}
-
 
59
 
30
	public int getCatalogId() {
60
	public int getCatalogId() {
31
		return catalogId;
61
		return catalogId;
32
	}
62
	}
33
 
63
 
34
	public LocalDateTime getCreatedTimestamp() {
64
	public LocalDateTime getCreatedTimestamp() {
Line 63... Line 93...
63
		return serialVersionUID;
93
		return serialVersionUID;
64
	}
94
	}
65
 
95
 
66
	@Override
96
	@Override
67
	public String toString() {
97
	public String toString() {
68
		return "FocusedModel [catalogId=" + catalogId + ", recommendedQty=" + recommendedQty + ", minimumQty="
98
		return "FocusedModel [id=" + id + ", catalogId=" + catalogId + ", recommendedQty=" + recommendedQty
69
				+ minimumQty + ", createdTimestamp=" + createdTimestamp + "]";
99
				+ ", minimumQty=" + minimumQty + ", partnerType=" + partnerType + ", createdTimestamp="
-
 
100
				+ createdTimestamp + "]";
70
	}
101
	}
71
 
102
 
72
}
103
}
73
104