Subversion Repositories SmartDukaan

Rev

Rev 29004 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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