Subversion Repositories SmartDukaan

Rev

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