Subversion Repositories SmartDukaan

Rev

Rev 22859 | 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
/**
22859 ashik.ali 9
 * This class basically contains address details
22352 ashik.ali 10
 * 
11
 * @author ashikali
12
 *
13
 */
14
@Entity
31860 tejbeer 15
@Table(name="user.privatedealuser")
22352 ashik.ali 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
 
25
	@Column(name = "isActive")
26
	private boolean active;
27
 
22730 amit.gupta 28
	@Column(name = "isFofo")
29
	private boolean isFofo;
30
 
22352 ashik.ali 31
	@Column(name = "bulkShipmentAmountLimit")
32
	private float bulkShipmentAmountLimit;
33
 
34
	public int getId() {
35
		return id;
36
	}
37
	public void setId(int id) {
38
		this.id = id;
39
	}
40
	public Integer getCounterId() {
41
		return counterId;
42
	}
43
	public void setCounterId(Integer counterId) {
44
		this.counterId = counterId;
45
	}
46
 
47
	public boolean isActive() {
48
		return active;
49
	}
50
	public void setActive(boolean active) {
51
		this.active = active;
52
	}
53
	public float getBulkShipmentAmountLimit() {
54
		return bulkShipmentAmountLimit;
55
	}
56
	public void setBulkShipmentAmountLimit(float bulkShipmentAmountLimit) {
57
		this.bulkShipmentAmountLimit = bulkShipmentAmountLimit;
58
	}
59
 
22859 ashik.ali 60
	public boolean isFofo() {
61
		return isFofo;
62
	}
63
 
64
	public void setFofo(boolean isFofo) {
65
		this.isFofo = isFofo;
66
	}
67
 
22352 ashik.ali 68
	@Override
69
	public int hashCode() {
70
		final int prime = 31;
71
		int result = 1;
72
		result = prime * result + id;
73
		return result;
74
	}
75
	@Override
76
	public boolean equals(Object obj) {
77
		if (this == obj)
78
			return true;
79
		if (obj == null)
80
			return false;
81
		if (getClass() != obj.getClass())
82
			return false;
83
		PrivateDealUser other = (PrivateDealUser) obj;
84
		if (id != other.id)
85
			return false;
86
		return true;
87
	}
22859 ashik.ali 88
 
22352 ashik.ali 89
	@Override
90
	public String toString() {
91
		return "PrivateDealUser [id=" + id + ", counterId=" + counterId + ", active=" + active
22859 ashik.ali 92
				+ ", bulkShipmentAmountLimit=" + bulkShipmentAmountLimit + ", fofo" + isFofo + "]";
22352 ashik.ali 93
	}
94
}