Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
21545 ashik.ali 1
package com.spice.profitmandi.dao.entity;
2
 
3
import java.io.Serializable;
4
import java.util.List;
5
 
6
import javax.persistence.CascadeType;
7
import javax.persistence.Column;
8
import javax.persistence.Entity;
9
import javax.persistence.FetchType;
10
import javax.persistence.GeneratedValue;
11
import javax.persistence.GenerationType;
12
import javax.persistence.Id;
13
import javax.persistence.JoinColumn;
14
import javax.persistence.NamedQueries;
15
import javax.persistence.NamedQuery;
16
import javax.persistence.OneToMany;
17
import javax.persistence.Table;
18
 
19
import org.hibernate.FetchMode;
20
import org.hibernate.annotations.Fetch;
21
 
22
/**
23
 * This class basically contains api details
24
 * 
25
 * @author ashikali
26
 *
27
 */
28
@Entity
21596 ashik.ali 29
@Table(name="logistics.postoffices", schema = "logistics")
21545 ashik.ali 30
public class PostOffice implements Serializable{
31
 
32
	private static final long serialVersionUID = 1L;
33
 
34
	public PostOffice() {
35
	}
36
 
37
	@Id
38
	@Column(name="id", unique=true, updatable=false)
39
	@GeneratedValue(strategy = GenerationType.IDENTITY)
40
	private int id;
41
 
42
	@Column(name="pincode")
43
	private int pinCode;
44
 
45
	@Column(name = "taluk")
46
	private String city;
47
 
48
	@Column(name = "state")
49
	private String state;
50
 
51
	public int getId() {
52
		return id;
53
	}
54
	public void setId(int id) {
55
		this.id = id;
56
	}
57
	public int getPinCode() {
58
		return pinCode;
59
	}
60
	public void setPinCode(int pinCode) {
61
		this.pinCode = pinCode;
62
	}
63
	public String getCity() {
64
		return city;
65
	}
66
	public void setCity(String city) {
67
		this.city = city;
68
	}
69
	public String getState() {
70
		return state;
71
	}
72
	public void setState(String state) {
73
		this.state = state;
74
	}
75
	@Override
76
	public String toString() {
77
		return "PostOffice [id=" + id + ", pinCode=" + pinCode + ", city=" + city + ", state=" + state + "]";
78
	}
79
 
80
 
81
}