Subversion Repositories SmartDukaan

Rev

Rev 24917 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
24917 tejbeer 1
package com.spice.profitmandi.dao.entity.fofo;
2
 
3
import javax.persistence.Column;
4
import javax.persistence.Entity;
5
import javax.persistence.EnumType;
6
import javax.persistence.Enumerated;
7
import javax.persistence.Id;
8
import javax.persistence.Table;
9
import javax.persistence.Transient;
10
 
11
import com.spice.profitmandi.common.enumuration.CounterSize;
12
import com.spice.profitmandi.dao.entity.user.Address;
13
 
14
/**
15
 * This class basically contains store code details
16
 * 
17
 * @author Govind
18
 *
19
 */
20
@Entity
31860 tejbeer 21
@Table(name="fofo.fofo_inactive_store")
24917 tejbeer 22
public class InActiveFofoStore {
23
 
24
	@Id
25
	@Column(name="id", unique=true, updatable=false)
26
	private int id;
27
 
28
	@Column(name="code", unique = true)
29
	private String code;
30
 
31
	@Column(name = "latitude")
32
	private String latitude;
33
 
34
	@Column(name = "longitude")
35
	private String longitude;
36
 
37
	@Column(name="counter_size")
38
	@Enumerated(EnumType.STRING)
39
	private CounterSize counterSize = CounterSize.TEN_LAC;
40
 
41
	@Column(name="minimum_investment")
42
	private float minimumInvestment;
43
 
44
	//Number of days to realise money.
45
	/*@Column(name="credit_cycle")
46
	private int creditCycle;*/
47
 
48
	public float getMinimumInvestment() {
49
		return minimumInvestment;
50
	}
51
	public void setMinimumInvestment(float minimumInvestment) {
52
		this.minimumInvestment = minimumInvestment;
53
	}
54
 
55
	@Transient
56
	private Address userAddress;
57
 
58
 
59
	/*public int getCreditCycle() {
60
		return creditCycle;
61
	}
62
	public void setCreditCycle(int creditCycle) {
63
		this.creditCycle = creditCycle;
64
	}*/
65
	public CounterSize getCounterSize() {
66
		return counterSize;
67
	}
68
	public void setCounterSize(CounterSize counterSize) {
69
		this.counterSize = counterSize;
70
	}
71
	public int getId() {
72
		return id;
73
	}
74
	public void setId(int id) {
75
		this.id = id;
76
	}
77
 
78
    public String getCode() {
79
		return code;
80
	}
81
 
82
    public void setCode(String code) {
83
		this.code = code;
84
	}
85
 
86
    public String getLatitude() {
87
		return latitude;
88
	}
89
 
90
    public void setLatitude(String latitude) {
91
		this.latitude = latitude;
92
	}
93
 
94
    public String getLongitude() {
95
		return longitude;
96
	}
97
 
98
    public void setLongitude(String longitude) {
99
		this.longitude = longitude;
100
	}
101
 
102
 
103
	public Address getUserAddress() {
104
		return userAddress;
105
	}
106
	public void setUserAddress(Address userAddress) {
107
		this.userAddress = userAddress;
108
	}
109
	@Override
110
	public int hashCode() {
111
		final int prime = 31;
112
		int result = 1;
113
		result = prime * result + id;
114
		return result;
115
	}
116
	@Override
117
	public boolean equals(Object obj) {
118
		if (this == obj)
119
			return true;
120
		if (obj == null)
121
			return false;
122
		if (getClass() != obj.getClass())
123
			return false;
124
		InActiveFofoStore other = (InActiveFofoStore) obj;
125
		if (id != other.id)
126
			return false;
127
		return true;
128
	}
129
 
130
	@Override
131
	public String toString() {
132
		return "FofoStore [id=" + id + ", code=" + code + ", latitude=" + latitude + ", longitude=" + longitude
133
				+ ", counterSize=" + counterSize + ", minimumInvestment=" + minimumInvestment + ", userAddress="
134
				+ userAddress + "]";
135
	}
136
 
137
 
138
}