Subversion Repositories SmartDukaan

Rev

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

Rev 22009 Rev 22881
Line 14... Line 14...
14
 * 
14
 * 
15
 * @author ashikali
15
 * @author ashikali
16
 *
16
 *
17
 */
17
 */
18
@Entity
18
@Entity
19
@Table(name="logistics.postoffices", schema = "logistics")
19
@Table(name="dtr.postoffices", schema = "logistics")
20
public class PostOffice implements Serializable{
20
public class PostOffice implements Serializable{
21
	
21
	
22
	private static final long serialVersionUID = 1L;
22
	private static final long serialVersionUID = 1L;
23
	
23
	
24
	public PostOffice() {
24
	public PostOffice() {
Line 33... Line 33...
33
	private int pinCode;
33
	private int pinCode;
34
	
34
	
35
	@Column(name = "taluk")
35
	@Column(name = "taluk")
36
	private String city;
36
	private String city;
37
	
37
	
-
 
38
	@Column(name = "district")
-
 
39
	private String district;
-
 
40
	
38
	@Column(name = "state")
41
	@Column(name = "state")
39
	private String state;
42
	private String state;
40
	
43
	
41
	public int getId() {
44
	public int getId() {
42
		return id;
45
		return id;
Line 54... Line 57...
54
		return city;
57
		return city;
55
	}
58
	}
56
	public void setCity(String city) {
59
	public void setCity(String city) {
57
		this.city = city;
60
		this.city = city;
58
	}
61
	}
-
 
62
	public String getDistrict() {
-
 
63
		return district;
-
 
64
	}
-
 
65
	public void setDistrict(String district) {
-
 
66
		this.district = district;
-
 
67
	}
59
	public String getState() {
68
	public String getState() {
60
		return state;
69
		return state;
61
	}
70
	}
62
	public void setState(String state) {
71
	public void setState(String state) {
63
		this.state = state;
72
		this.state = state;
Line 84... Line 93...
84
			return false;
93
			return false;
85
		return true;
94
		return true;
86
	}
95
	}
87
	@Override
96
	@Override
88
	public String toString() {
97
	public String toString() {
89
		return "PostOffice [id=" + id + ", pinCode=" + pinCode + ", city=" + city + ", state=" + state + "]";
98
		return "PostOffice [id=" + id + ", pinCode=" + pinCode + ", city=" + city + ", district=" + district + ", state=" + state + "]";
90
	}
99
	}
91
	
100
	
92
        
101
        
93
}
102
}
94
103