Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3094 vikas 1
 
2
package in.shop2020.model;
3
 
4
import java.io.Serializable;
5
 
6
import javax.jdo.annotations.IdentityType;
7
import javax.jdo.annotations.PersistenceCapable;
8
import javax.jdo.annotations.Persistent;
9
import javax.jdo.annotations.PrimaryKey;
10
 
11
@PersistenceCapable(identityType = IdentityType.APPLICATION)
12
public class Item implements Serializable {
13
    private static final long serialVersionUID = 799163332657086378L;
14
    public static final String NAME_KEY = "name";
15
    public static final String ID_KEY = "id";
16
    public static final String CATALOG_ID_KEY = "catalog_id";
17
    public static final String BRAND_KEY = "brand";
18
    public static final String COLOR_KEY = "color";
19
 
20
    @PrimaryKey
21
    @Persistent()
22
    private Long id;
23
 
24
    @Persistent
25
	private Long catalogId;
26
 
27
    @Persistent
28
    private String name;
29
 
30
    @Persistent
31
    private String brand;
32
 
33
    @Persistent
34
    private String color;
35
 
36
    public Long getId() {
37
		return id;
38
	}
39
 
40
    public void setId(Long id) {
41
		this.id = id;
42
	}
43
 
44
    public void setCatalogId(Long catalogId) {
45
        this.catalogId = catalogId;
46
    }
47
 
48
    public Long getCatalogId() {
49
        return catalogId;
50
    }
51
 
52
    public void setName(String name) {
53
        this.name = name;
54
    }
55
 
56
    public String getName() {
57
        return name;
58
    }
59
 
60
    public void setBrand(String brand) {
61
        this.brand = brand;
62
    }
63
 
64
    public String getBrand() {
65
        return this.brand;
66
    }
67
 
68
    public void setColor(String color) {
69
        this.color = color;
70
    }
71
 
72
    public String getColor() {
73
        return this.color;
74
    }
75
}