Subversion Repositories SmartDukaan

Rev

Rev 24317 | Rev 28797 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 24317 Rev 28755
Line 5... Line 5...
5
import javax.persistence.Column;
5
import javax.persistence.Column;
6
import javax.persistence.Entity;
6
import javax.persistence.Entity;
7
import javax.persistence.GeneratedValue;
7
import javax.persistence.GeneratedValue;
8
import javax.persistence.GenerationType;
8
import javax.persistence.GenerationType;
9
import javax.persistence.Id;
9
import javax.persistence.Id;
-
 
10
import javax.persistence.NamedQueries;
-
 
11
import javax.persistence.NamedQuery;
10
import javax.persistence.Table;
12
import javax.persistence.Table;
11
 
13
 
-
 
14
import com.spice.profitmandi.dao.enumuration.fofo.ApplicableServiceType;
-
 
15
 
12
/**
16
/**
13
 * This class basically contains  details
17
 * This class basically contains details
14
 * 
18
 * 
15
 * @author Govind
19
 * @author Govind
16
 *
20
 *
17
 */
21
 */
18
@Entity
22
@Entity
19
@Table(name="fofo.service_brand", schema = "fofo")
23
@Table(name = "fofo.service_brand", schema = "fofo")
-
 
24
 
-
 
25
@NamedQueries({
-
 
26
		@NamedQuery(name = "ServiceBrandsConfig.selectFinanceServices", query = "select new com.spice.profitmandi.dao.model.FinanceServicesModel(pbs.fofoId, "
-
 
27
				+ " pbs.partnerStatusType,pbs.applicableType,pbs.active,pbs.brandServiceId,sb.serviceId,sb.brand,po.name) from PartnerBrandService pbs "
-
 
28
				+ " join  ServiceBrandsConfig sb  on pbs.brandServiceId = sb.id  join PaymentOption po on sb.serviceId = po.id"),
-
 
29
 
-
 
30
})
20
public class ServiceBrandsConfig implements Serializable{
31
public class ServiceBrandsConfig implements Serializable {
21
	
32
 
22
	private static final long serialVersionUID = 1L;
33
	private static final long serialVersionUID = 1L;
23
	
34
 
24
	public ServiceBrandsConfig() {
35
	public ServiceBrandsConfig() {
25
	}
36
	}
26
	
37
 
27
	@Id
38
	@Id
28
	@Column(name="id")
39
	@Column(name = "id")
29
	@GeneratedValue(strategy = GenerationType.IDENTITY)
40
	@GeneratedValue(strategy = GenerationType.IDENTITY)
30
	private int id;
41
	private int id;
31
	
42
 
32
	@Column(name = "service_id")
43
	@Column(name = "service_id")
33
	private int serviceId;
44
	private int serviceId;
34
	
45
 
35
	@Column(name = "brand")
46
	@Column(name = "brand")
36
	private String brand;
47
	private String brand;
37
 
48
 
38
	public int getId() {
49
	public int getId() {
39
		return id;
50
		return id;
Line 93... Line 104...
93
	@Override
104
	@Override
94
	public String toString() {
105
	public String toString() {
95
		return "ServiceBrandsConfig [id=" + id + ", serviceId=" + serviceId + ", brand=" + brand + "]";
106
		return "ServiceBrandsConfig [id=" + id + ", serviceId=" + serviceId + ", brand=" + brand + "]";
96
	}
107
	}
97
 
108
 
98
	
-
 
99
	
-
 
100
	
-
 
101
}
109
}
102
110