Subversion Repositories SmartDukaan

Rev

Rev 457 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 457 Rev 1050
Line 21... Line 21...
21
 * @author naveen
21
 * @author naveen
22
 *
22
 *
23
 */
23
 */
24
public class Entity extends ReusableMetaModelComponent {
24
public class Entity extends ReusableMetaModelComponent {
25
    /**
25
    /**
26
	 * 
-
 
-
 
26
	 * This is serial versionId. Need to put corresponding to the svn checkout version. 
-
 
27
	 * So that code can be retrieved for the version and Objects can be restored.
27
	 */
28
	 */
-
 
29
	//FIXME to be decided
28
	private static final long serialVersionUID = 1L;
30
	private static final long serialVersionUID = 1L;
29
	
31
	
30
	/**
32
	/**
31
	 * Pointer to entity's category 
33
	 * Pointer to entity's category 
32
	 */
34
	 */
Line 50... Line 52...
50
	/**
52
	/**
51
	 * List of slides that describe the entity
53
	 * List of slides that describe the entity
52
	 */
54
	 */
53
	private List<Slide> slides;
55
	private List<Slide> slides;
54
 
56
 
-
 
57
	
-
 
58
	private List<Long> slideSequence;
-
 
59
	
55
	/**
60
	/**
56
	 * 
61
	 * 
57
	 * @param newID Unique identifier
62
	 * @param newID Unique identifier
58
	 * @param categoryID Category ID
63
	 * @param categoryID Category ID
59
	 */
64
	 */
60
    public Entity(long newID, long categoryID) {
65
    public Entity(long newID, long categoryID) {
61
    	super(newID);
66
    	super(newID);
62
    	this.categoryID = categoryID;
67
    	this.categoryID = categoryID;
63
    }
68
    }
64
 
69
 
-
 
70
    public List<Long> getSlideSequence() {
-
 
71
		return slideSequence;
-
 
72
	}
-
 
73
 
-
 
74
	public void setSlideSequence(List<Long> slideSequence) {
-
 
75
		if(this.slideSequence==null){
-
 
76
			this.slideSequence = new ArrayList<Long>();
-
 
77
		}
-
 
78
		this.slideSequence = slideSequence;
-
 
79
	}
-
 
80
 
65
    /**
81
	/**
66
     * 
82
     * 
67
     * @return categoryID
83
     * @return categoryID
68
     *     
84
     *     
69
     */
85
     */
70
    public long getCategoryID() {
86
    public long getCategoryID() {
Line 237... Line 253...
237
	 */
253
	 */
238
	@Override
254
	@Override
239
	public String toString() {
255
	public String toString() {
240
		return "Entity [brand=" + brand + ", categoryID=" + categoryID
256
		return "Entity [brand=" + brand + ", categoryID=" + categoryID
241
				+ ", modelName=" + modelName + ", modelNumber=" + modelNumber
257
				+ ", modelName=" + modelName + ", modelNumber=" + modelNumber
-
 
258
				+ ", slideSequence=" + slideSequence
242
				+ ", slides=" + slides + ", getID()=" + getID() + "]";
259
				+ ", slides=" + slides + ", getID()=" + getID() + "]";
243
	}
260
	}
244
   
261
   
245
}
262
}