Subversion Repositories SmartDukaan

Rev

Rev 28493 | Rev 29004 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
28493 tejbeer 1
package com.spice.profitmandi.dao.entity.transaction;
2
 
3
import javax.persistence.Column;
4
import javax.persistence.Entity;
5
import javax.persistence.Enumerated;
6
import javax.persistence.GeneratedValue;
7
import javax.persistence.GenerationType;
8
import javax.persistence.Id;
9
import javax.persistence.Table;
10
 
11
import com.spice.profitmandi.dao.enumuration.transaction.OrganisationType;
12
 
13
 
14
@Entity
15
@Table(name = "transaction.organisation", schema = "transaction")
28988 amit.gupta 16
public class Organisation {
28493 tejbeer 17
 
18
	@Id
19
	@Column(name = "id", unique = true, updatable = false)
20
	@GeneratedValue(strategy = GenerationType.IDENTITY)
21
	private int id;
22
 
23
	@Column(name="name")
24
	private String name;
25
 
26
	@Enumerated
27
	@Column(name="type")
28
	private OrganisationType type;
29
 
30
	@Column(name="address")
31
	private String address;
32
 
33
	@Column(name="registered_id")
34
	private String registeredId;
35
 
36
	public int getId() {
37
		return id;
38
	}
39
 
40
	public void setId(int id) {
41
		this.id = id;
42
	}
43
 
44
	public String getName() {
45
		return name;
46
	}
47
 
48
	public void setName(String name) {
49
		this.name = name;
50
	}
51
 
52
	public OrganisationType getType() {
53
		return type;
54
	}
55
 
56
	public void setType(OrganisationType type) {
57
		this.type = type;
58
	}
59
 
60
	public String getAddress() {
61
		return address;
62
	}
63
 
64
	public void setAddress(String address) {
65
		this.address = address;
66
	}
67
 
68
	public String getRegisteredId() {
69
		return registeredId;
70
	}
71
 
72
	public void setRegisteredId(String registeredId) {
73
		this.registeredId = registeredId;
74
	}
75
 
76
	@Override
77
	public String toString() {
28988 amit.gupta 78
		return "Organisation [id=" + id + ", name=" + name + ", type=" + type + ", address=" + address
28493 tejbeer 79
				+ ", registeredId=" + registeredId + "]";
80
	}
81
 
82
 
83
 
84
 
85
}