Subversion Repositories SmartDukaan

Rev

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

Rev 26607 Rev 28653
Line 1... Line 1...
1
package com.spice.profitmandi.dao.model;
1
package com.spice.profitmandi.dao.model;
2
 
2
 
3
public class CartItem
3
public class CartItem
4
{	
4
{	
5
	
5
	
6
	private long quantity;
6
	private int quantity;
7
	private int itemId;
7
	private int itemId;
8
	private double sellingPrice;
8
	private double sellingPrice;
9
 
9
 
10
	public CartItem(long quantity, int itemId) {
10
	public CartItem(int quantity, int itemId) {
11
		super();
11
		super();
12
		this.quantity = quantity;
12
		this.quantity = quantity;
13
		this.itemId = itemId;
13
		this.itemId = itemId;
14
	}
14
	}
15
 
15
 
16
    public CartItem() {
16
    public CartItem() {
17
    	super();
17
    	super();
18
    }
18
    }
19
 
19
 
20
    public long getQuantity() {
20
    public int getQuantity() {
21
		return quantity;
21
		return quantity;
22
	}
22
	}
23
    
23
    
24
    
24
    
25
 
25
 
Line 59... Line 59...
59
 
59
 
60
	public void setSellingPrice(double sellingPrice) {
60
	public void setSellingPrice(double sellingPrice) {
61
		this.sellingPrice = sellingPrice;
61
		this.sellingPrice = sellingPrice;
62
	}
62
	}
63
 
63
 
64
	public void setQuantity(long quantity) {
64
	public void setQuantity(int quantity) {
65
		this.quantity = quantity;
65
		this.quantity = quantity;
66
	}
66
	}
67
 
67
 
68
	public int getItemId() {
68
	public int getItemId() {
69
		return itemId;
69
		return itemId;