Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
24317 govind 1
package com.spice.profitmandi.dao.entity.fofo;
2
 
3
import java.io.Serializable;
4
 
5
import javax.persistence.Column;
6
import javax.persistence.Entity;
7
import javax.persistence.GeneratedValue;
8
import javax.persistence.GenerationType;
9
import javax.persistence.Id;
10
import javax.persistence.Table;
11
 
12
/**
13
 * This class basically contains  details
14
 * 
15
 * @author Govind
16
 *
17
 */
18
@Entity
19
@Table(name="fofo.service_brand", schema = "fofo")
20
public class ServiceBrandsConfig implements Serializable{
21
 
22
	private static final long serialVersionUID = 1L;
23
 
24
	public ServiceBrandsConfig() {
25
	}
26
 
27
	@Id
28
	@Column(name="id")
29
	@GeneratedValue(strategy = GenerationType.IDENTITY)
30
	private int id;
31
 
32
	@Column(name = "service_id")
33
	private int serviceId;
34
 
35
	@Column(name = "brand")
36
	private String brand;
37
 
38
	public int getId() {
39
		return id;
40
	}
41
 
42
	public void setId(int id) {
43
		this.id = id;
44
	}
45
 
46
	public int getServiceId() {
47
		return serviceId;
48
	}
49
 
50
	public void setServiceId(int serviceId) {
51
		this.serviceId = serviceId;
52
	}
53
 
54
	public String getBrand() {
55
		return brand;
56
	}
57
 
58
	public void setBrand(String brand) {
59
		this.brand = brand;
60
	}
61
 
62
	@Override
63
	public int hashCode() {
64
		final int prime = 31;
65
		int result = 1;
66
		result = prime * result + ((brand == null) ? 0 : brand.hashCode());
67
		result = prime * result + id;
68
		result = prime * result + serviceId;
69
		return result;
70
	}
71
 
72
	@Override
73
	public boolean equals(Object obj) {
74
		if (this == obj)
75
			return true;
76
		if (obj == null)
77
			return false;
78
		if (getClass() != obj.getClass())
79
			return false;
80
		ServiceBrandsConfig other = (ServiceBrandsConfig) obj;
81
		if (brand == null) {
82
			if (other.brand != null)
83
				return false;
84
		} else if (!brand.equals(other.brand))
85
			return false;
86
		if (id != other.id)
87
			return false;
88
		if (serviceId != other.serviceId)
89
			return false;
90
		return true;
91
	}
92
 
93
	@Override
94
	public String toString() {
95
		return "ServiceBrandsConfig [id=" + id + ", serviceId=" + serviceId + ", brand=" + brand + "]";
96
	}
97
 
98
 
99
 
100
 
101
}