Subversion Repositories SmartDukaan

Rev

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

Rev 23574 Rev 23585
Line 9... Line 9...
9
import javax.persistence.Entity;
9
import javax.persistence.Entity;
10
import javax.persistence.EnumType;
10
import javax.persistence.EnumType;
11
import javax.persistence.Enumerated;
11
import javax.persistence.Enumerated;
12
import javax.persistence.Id;
12
import javax.persistence.Id;
13
import javax.persistence.Table;
13
import javax.persistence.Table;
-
 
14
import javax.persistence.Transient;
14
 
15
 
15
import org.hibernate.annotations.UpdateTimestamp;
16
import org.hibernate.annotations.UpdateTimestamp;
16
 
17
 
-
 
18
import com.spice.profitmandi.common.model.OperatorType;
17
import com.spice.profitmandi.common.util.FormattingUtils;
19
import com.spice.profitmandi.common.util.FormattingUtils;
18
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
20
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
19
import com.spice.profitmandi.dao.enumuration.catalog.AmountType;
21
import com.spice.profitmandi.dao.enumuration.catalog.AmountType;
-
 
22
import com.spice.profitmandi.dao.enumuration.dtr.RechargeType;
20
 
23
 
21
/**
24
/**
22
 * This class basically contains recharge commission details
25
 * This class basically contains recharge commission details
23
 * 
26
 * 
24
 * @author ashikali
27
 * @author ashikali
Line 62... Line 65...
62
	
65
	
63
	@Convert(converter = LocalDateTimeAttributeConverter.class)
66
	@Convert(converter = LocalDateTimeAttributeConverter.class)
64
	@Column(name="update_timestamp", updatable = false)
67
	@Column(name="update_timestamp", updatable = false)
65
	@UpdateTimestamp
68
	@UpdateTimestamp
66
	private LocalDateTime updateTimestamp = LocalDateTime.now();
69
	private LocalDateTime updateTimestamp = LocalDateTime.now();
-
 
70
	@Transient
-
 
71
	private RechargeType rechargeType;
-
 
72
	
-
 
73
 
-
 
74
	public RechargeType getRechargeType() {
-
 
75
		return rechargeType;
-
 
76
	}
-
 
77
 
-
 
78
	public void setRechargeType(RechargeType rechargeType) {
-
 
79
		this.rechargeType = rechargeType;
-
 
80
	}
-
 
81
 
-
 
82
	public OperatorType getOperatorType() {
-
 
83
		return operatorType;
-
 
84
	}
-
 
85
 
-
 
86
	public void setOperatorType(OperatorType operatorType) {
-
 
87
		this.operatorType = operatorType;
-
 
88
	}
-
 
89
 
-
 
90
	@Transient
-
 
91
	private OperatorType operatorType;
-
 
92
	
-
 
93
	@Transient
-
 
94
	private String operatorName;
-
 
95
 
-
 
96
	public String getOperatorName() {
-
 
97
		return operatorName;
-
 
98
	}
-
 
99
 
-
 
100
	public void setOperatorName(String operatorName) {
-
 
101
		this.operatorName = operatorName;
-
 
102
	}
67
	
103
	
68
	public float getOurCommission() {
104
	public float getOurCommission() {
69
		return ourCommission;
105
		return ourCommission;
70
	}
106
	}
71
 
107
 
Line 179... Line 215...
179
		return "RechargeCommission [operatorId=" + operatorId + ", providerId=" + providerId + ", amount=" + amount
215
		return "RechargeCommission [operatorId=" + operatorId + ", providerId=" + providerId + ", amount=" + amount
180
				+ ", amountType=" + amountType + ", ourCommission=" + ourCommission + ", ourCommissionType="
216
				+ ", amountType=" + amountType + ", ourCommission=" + ourCommission + ", ourCommissionType="
181
				+ ourCommissionType + ", createTimestamp=" + createTimestamp + ", updateTimestamp=" + updateTimestamp
217
				+ ourCommissionType + ", createTimestamp=" + createTimestamp + ", updateTimestamp=" + updateTimestamp
182
				+ "]";
218
				+ "]";
183
	}
219
	}
-
 
220
 
-
 
221
	
184
        
222
        
185
}
223
}
186
224