Subversion Repositories SmartDukaan

Rev

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