Subversion Repositories SmartDukaan

Rev

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

Rev 23418 Rev 23527
Line 18... Line 18...
18
import javax.persistence.Id;
18
import javax.persistence.Id;
19
import javax.persistence.Table;
19
import javax.persistence.Table;
20
import javax.persistence.Transient;
20
import javax.persistence.Transient;
21
 
21
 
22
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
22
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
23
import com.spice.profitmandi.dao.enumuration.catalog.SchemeAmountType;
23
import com.spice.profitmandi.dao.enumuration.catalog.AmountType;
24
import com.spice.profitmandi.dao.enumuration.catalog.SchemeType;
24
import com.spice.profitmandi.dao.enumuration.catalog.SchemeType;
25
 
25
 
26
/**
26
/**
27
 * This class basically contains scheme details
27
 * This class basically contains scheme details
28
 * 
28
 * 
Line 53... Line 53...
53
	@Enumerated(EnumType.STRING)
53
	@Enumerated(EnumType.STRING)
54
	private SchemeType type;
54
	private SchemeType type;
55
	
55
	
56
	@Column(name = "amount_type")
56
	@Column(name = "amount_type")
57
	@Enumerated(EnumType.STRING)
57
	@Enumerated(EnumType.STRING)
58
	private SchemeAmountType amountType;
58
	private AmountType amountType;
59
	
59
	
60
	@Column(name = "amount")
60
	@Column(name = "amount")
61
	private float amount;
61
	private float amount;
62
	
62
	
63
	@Convert(converter = LocalDateTimeAttributeConverter.class)
63
	@Convert(converter = LocalDateTimeAttributeConverter.class)
Line 121... Line 121...
121
	public void setType(SchemeType type) {
121
	public void setType(SchemeType type) {
122
		this.type = type;
122
		this.type = type;
123
	}
123
	}
124
	
124
	
125
	
125
	
126
	public SchemeAmountType getAmountType() {
126
	public AmountType getAmountType() {
127
		return amountType;
127
		return amountType;
128
	}
128
	}
129
	
129
	
130
	public void setAmountType(SchemeAmountType amountType) {
130
	public void setAmountType(AmountType amountType) {
131
		this.amountType = amountType;
131
		this.amountType = amountType;
132
	}
132
	}
133
	
133
	
134
	public float getAmount() {
134
	public float getAmount() {
135
		return amount;
135
		return amount;