Subversion Repositories SmartDukaan

Rev

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

Rev 49 Rev 51
Line 11... Line 11...
11
import in.shop2020.metamodel.definitions.Catalog;
11
import in.shop2020.metamodel.definitions.Catalog;
12
import in.shop2020.metamodel.definitions.Category;
12
import in.shop2020.metamodel.definitions.Category;
13
import in.shop2020.metamodel.definitions.DefinitionsContainer;
13
import in.shop2020.metamodel.definitions.DefinitionsContainer;
14
 
14
 
15
/**
15
/**
-
 
16
 * Utility class that supports core Entity class. All related 
-
 
17
 * objects are fetched from database and aggregated here.
-
 
18
 *
16
 * @author naveen
19
 * @author naveen
17
 *
20
 *
18
 */
21
 */
19
public class ExpandedEntity extends Entity {
22
public class ExpandedEntity extends Entity {
-
 
23
	
20
	/**
24
	/**
21
	 * 
25
	 * Expanded from category ID
22
	 */
26
	 */
23
	private Category category;
27
	private Category category;
24
	
28
	
25
	/**
29
	/**
26
	 * 
30
	 * Expanded from list of slide IDs
27
	 */
31
	 */
28
	private List<ExpandedSlide> expandedSlides;
32
	private List<ExpandedSlide> expandedSlides;
29
	
33
	
30
	/**
34
	/**
31
	 * 
35
	 * 
32
	 */
36
	 */
33
	private static final long serialVersionUID = 1L;
37
	private static final long serialVersionUID = 1L;
34
 
38
 
35
	/**
39
	/**
-
 
40
	 * Takes Entity object as input and converts all references 
-
 
41
	 * into corresponding detail objects
36
	 * 
42
	 * 
37
	 * @param entity
43
	 * @param entity Entity object
38
	 * @throws Exception 
44
	 * @throws Exception 
39
	 */
45
	 */
40
	public ExpandedEntity(Entity entity) throws Exception {
46
	public ExpandedEntity(Entity entity) throws Exception {
41
		super(entity.getID(), entity.getCategoryID());
47
		super(entity.getID(), entity.getCategoryID());
42
		
48