Subversion Repositories SmartDukaan

Rev

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

Rev 22730 Rev 22859
Line 4... Line 4...
4
import javax.persistence.Entity;
4
import javax.persistence.Entity;
5
import javax.persistence.Id;
5
import javax.persistence.Id;
6
import javax.persistence.Table;
6
import javax.persistence.Table;
7
 
7
 
8
/**
8
/**
9
 * This class basically contains private deal user.
9
 * This class basically contains address details
10
 * 
10
 * 
11
 * @author ashikali
11
 * @author ashikali
12
 *
12
 *
13
 */
13
 */
14
@Entity
14
@Entity
Line 20... Line 20...
20
	private int id;
20
	private int id;
21
	
21
	
22
	@Column(name="counter_id")
22
	@Column(name="counter_id")
23
	private Integer counterId;
23
	private Integer counterId;
24
	
24
	
25
	public boolean isFofo() {
-
 
26
		return isFofo;
-
 
27
	}
-
 
28
	public void setFofo(boolean isFofo) {
-
 
29
		this.isFofo = isFofo;
-
 
30
	}
-
 
31
	@Column(name = "isActive")
25
	@Column(name = "isActive")
32
	private boolean active;
26
	private boolean active;
33
	
27
	
34
	@Column(name = "isFofo")
28
	@Column(name = "isFofo")
35
	private boolean isFofo;
29
	private boolean isFofo;
Line 61... Line 55...
61
	}
55
	}
62
	public void setBulkShipmentAmountLimit(float bulkShipmentAmountLimit) {
56
	public void setBulkShipmentAmountLimit(float bulkShipmentAmountLimit) {
63
		this.bulkShipmentAmountLimit = bulkShipmentAmountLimit;
57
		this.bulkShipmentAmountLimit = bulkShipmentAmountLimit;
64
	}
58
	}
65
	
59
	
-
 
60
	public boolean isFofo() {
-
 
61
		return isFofo;
-
 
62
	}
-
 
63
	
-
 
64
	public void setFofo(boolean isFofo) {
-
 
65
		this.isFofo = isFofo;
-
 
66
	}
-
 
67
	
66
	@Override
68
	@Override
67
	public int hashCode() {
69
	public int hashCode() {
68
		final int prime = 31;
70
		final int prime = 31;
69
		int result = 1;
71
		int result = 1;
70
		result = prime * result + id;
72
		result = prime * result + id;
Line 81... Line 83...
81
		PrivateDealUser other = (PrivateDealUser) obj;
83
		PrivateDealUser other = (PrivateDealUser) obj;
82
		if (id != other.id)
84
		if (id != other.id)
83
			return false;
85
			return false;
84
		return true;
86
		return true;
85
	}
87
	}
-
 
88
	
86
	@Override
89
	@Override
87
	public String toString() {
90
	public String toString() {
88
		return "PrivateDealUser [id=" + id + ", counterId=" + counterId + ", active=" + active
91
		return "PrivateDealUser [id=" + id + ", counterId=" + counterId + ", active=" + active
89
				+ ", bulkShipmentAmountLimit=" + bulkShipmentAmountLimit + "]";
92
				+ ", bulkShipmentAmountLimit=" + bulkShipmentAmountLimit + ", fofo" + isFofo + "]";
90
	}
93
	}
91
	
-
 
92
	
-
 
93
}
94
}