Subversion Repositories SmartDukaan

Rev

Rev 22653 | Rev 22859 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
22352 ashik.ali 1
package com.spice.profitmandi.dao.entity.user;
2
 
3
import javax.persistence.Column;
4
import javax.persistence.Entity;
5
import javax.persistence.Id;
6
import javax.persistence.Table;
7
 
8
/**
22730 amit.gupta 9
 * This class basically contains private deal user.
22352 ashik.ali 10
 * 
11
 * @author ashikali
12
 *
13
 */
14
@Entity
15
@Table(name="user.privatedealuser", schema = "user")
16
public class PrivateDealUser {
17
 
18
	@Id
19
	@Column(name="id", unique=true, updatable=false)
20
	private int id;
21
 
22
	@Column(name="counter_id")
23
	private Integer counterId;
24
 
22730 amit.gupta 25
	public boolean isFofo() {
26
		return isFofo;
27
	}
28
	public void setFofo(boolean isFofo) {
29
		this.isFofo = isFofo;
30
	}
22352 ashik.ali 31
	@Column(name = "isActive")
32
	private boolean active;
33
 
22730 amit.gupta 34
	@Column(name = "isFofo")
35
	private boolean isFofo;
36
 
22352 ashik.ali 37
	@Column(name = "bulkShipmentAmountLimit")
38
	private float bulkShipmentAmountLimit;
39
 
40
	public int getId() {
41
		return id;
42
	}
43
	public void setId(int id) {
44
		this.id = id;
45
	}
46
	public Integer getCounterId() {
47
		return counterId;
48
	}
49
	public void setCounterId(Integer counterId) {
50
		this.counterId = counterId;
51
	}
52
 
53
	public boolean isActive() {
54
		return active;
55
	}
56
	public void setActive(boolean active) {
57
		this.active = active;
58
	}
59
	public float getBulkShipmentAmountLimit() {
60
		return bulkShipmentAmountLimit;
61
	}
62
	public void setBulkShipmentAmountLimit(float bulkShipmentAmountLimit) {
63
		this.bulkShipmentAmountLimit = bulkShipmentAmountLimit;
64
	}
65
 
66
	@Override
67
	public int hashCode() {
68
		final int prime = 31;
69
		int result = 1;
70
		result = prime * result + id;
71
		return result;
72
	}
73
	@Override
74
	public boolean equals(Object obj) {
75
		if (this == obj)
76
			return true;
77
		if (obj == null)
78
			return false;
79
		if (getClass() != obj.getClass())
80
			return false;
81
		PrivateDealUser other = (PrivateDealUser) obj;
82
		if (id != other.id)
83
			return false;
84
		return true;
85
	}
86
	@Override
87
	public String toString() {
88
		return "PrivateDealUser [id=" + id + ", counterId=" + counterId + ", active=" + active
89
				+ ", bulkShipmentAmountLimit=" + bulkShipmentAmountLimit + "]";
90
	}
91
 
92
 
93
}