Subversion Repositories SmartDukaan

Rev

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

Rev 31860 Rev 31903
Line 1... Line 1...
1
package com.spice.profitmandi.dao.entity.catalog;
1
package com.spice.profitmandi.dao.entity.catalog;
2
 
2
 
3
import java.io.Serializable;
-
 
4
 
-
 
5
import javax.persistence.Column;
-
 
6
import javax.persistence.Entity;
-
 
7
import javax.persistence.EnumType;
-
 
8
import javax.persistence.Enumerated;
-
 
9
import javax.persistence.GeneratedValue;
-
 
10
import javax.persistence.GenerationType;
-
 
11
import javax.persistence.Id;
-
 
12
import javax.persistence.Table;
-
 
13
 
-
 
14
import com.spice.profitmandi.dao.enumuration.catalog.AmountType;
3
import com.spice.profitmandi.dao.enumuration.catalog.AmountType;
15
 
4
 
-
 
5
import javax.persistence.*;
-
 
6
import java.io.Serializable;
-
 
7
 
16
@Entity
8
@Entity
17
@Table(name = "catalog.target_slab")
9
@Table(name = "catalog.target_slab")
18
public class TargetSlab implements Serializable {
10
public class TargetSlabEntity implements Serializable {
19
    @Id
11
    @Id
20
    @Column(name = "id")
12
    @Column(name = "id")
21
    @GeneratedValue(strategy = GenerationType.IDENTITY)
13
    @GeneratedValue(strategy = GenerationType.IDENTITY)
22
    private int id;
14
    private int id;
23
 
15
 
24
    @Column(name = "offer_id")
16
    @Column(name = "offer_id")
25
    private int offerId;
17
    private int offerId;
26
 
18
 
27
    @Column(name="onwards_target")
19
    @Column(name = "onwards_target")
28
    private int onwardsTarget;
20
    private int onwardsTarget;
29
 
21
 
30
    @Column(name="item_criteria_id")
22
    @Column(name="item_criteria_id")
31
    private int itemCriteriaId;
23
    private int itemCriteriaId;
32
    
24
    
Line 114... Line 106...
114
			return true;
106
			return true;
115
		if (obj == null)
107
		if (obj == null)
116
			return false;
108
			return false;
117
		if (getClass() != obj.getClass())
109
		if (getClass() != obj.getClass())
118
			return false;
110
			return false;
119
		TargetSlab other = (TargetSlab) obj;
111
        TargetSlabEntity other = (TargetSlabEntity) obj;
120
		if (amountType != other.amountType)
112
		if (amountType != other.amountType)
121
			return false;
113
			return false;
122
		if (id != other.id)
114
		if (id != other.id)
123
			return false;
115
			return false;
124
		if (itemCriteriaId != other.itemCriteriaId)
116
		if (itemCriteriaId != other.itemCriteriaId)