Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed


package in.shop2020.model;

import java.io.Serializable;

import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Item implements Serializable {
    private static final long serialVersionUID = 799163332657086378L;
    public static final String NAME_KEY = "name";
    public static final String ID_KEY = "id";
    public static final String CATALOG_ID_KEY = "catalog_id";
    public static final String BRAND_KEY = "brand";
    public static final String COLOR_KEY = "color";

    @PrimaryKey
    @Persistent()
    private Long id;

    @Persistent
        private Long catalogId;
    
    @Persistent
    private String name;
    
    @Persistent
    private String brand;
        
    @Persistent
    private String color;
    
    public Long getId() {
                return id;
        }
    
    public void setId(Long id) {
                this.id = id;
        }

    public void setCatalogId(Long catalogId) {
        this.catalogId = catalogId;
    }

    public Long getCatalogId() {
        return catalogId;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getBrand() {
        return this.brand;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getColor() {
        return this.color;
    }
}