Subversion Repositories SmartDukaan

Rev

Rev 22653 | Go to most recent revision | Details | 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.GeneratedValue;
6
import javax.persistence.GenerationType;
7
import javax.persistence.Id;
8
import javax.persistence.Table;
9
 
10
/**
11
 * This class basically contains address details
12
 * 
13
 * @author ashikali
14
 *
15
 */
16
@Entity
17
@Table(name="user.privatedealuser", schema = "user")
18
public class PrivateDealUser {
19
 
20
	@Id
21
	@Column(name="id", unique=true, updatable=false)
22
	private int id;
23
 
24
	@Column(name="counter_id")
25
	private Integer counterId;
26
 
27
	@Column(name = "isActive")
28
	private boolean active;
29
 
30
	@Column(name = "bulkShipmentAmountLimit")
31
	private float bulkShipmentAmountLimit;
32
 
33
	public int getId() {
34
		return id;
35
	}
36
	public void setId(int id) {
37
		this.id = id;
38
	}
39
	public Integer getCounterId() {
40
		return counterId;
41
	}
42
	public void setCounterId(Integer counterId) {
43
		this.counterId = counterId;
44
	}
45
 
46
	public boolean isActive() {
47
		return active;
48
	}
49
	public void setActive(boolean active) {
50
		this.active = active;
51
	}
52
	public float getBulkShipmentAmountLimit() {
53
		return bulkShipmentAmountLimit;
54
	}
55
	public void setBulkShipmentAmountLimit(float bulkShipmentAmountLimit) {
56
		this.bulkShipmentAmountLimit = bulkShipmentAmountLimit;
57
	}
58
 
59
	@Override
60
	public int hashCode() {
61
		final int prime = 31;
62
		int result = 1;
63
		result = prime * result + id;
64
		return result;
65
	}
66
	@Override
67
	public boolean equals(Object obj) {
68
		if (this == obj)
69
			return true;
70
		if (obj == null)
71
			return false;
72
		if (getClass() != obj.getClass())
73
			return false;
74
		PrivateDealUser other = (PrivateDealUser) obj;
75
		if (id != other.id)
76
			return false;
77
		return true;
78
	}
79
	@Override
80
	public String toString() {
81
		return "PrivateDealUser [id=" + id + ", counterId=" + counterId + ", active=" + active
82
				+ ", bulkShipmentAmountLimit=" + bulkShipmentAmountLimit + "]";
83
	}
84
 
85
 
86
}