Subversion Repositories SmartDukaan

Rev

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

Rev 8785 Rev 8809
Line 193... Line 193...
193
	public Map<Long, Entity> getEntities() throws Exception{
193
	public Map<Long, Entity> getEntities() throws Exception{
194
    	Map<Long,Entity> map = new TreeMap<Long, Entity>(); 
194
    	Map<Long,Entity> map = new TreeMap<Long, Entity>(); 
195
    	Iterator<DBObject> iterator = views.entity.find().iterator();
195
    	Iterator<DBObject> iterator = views.entity.find().iterator();
196
    	while(iterator.hasNext()){
196
    	while(iterator.hasNext()){
197
    		DBObject dbo = iterator.next();
197
    		DBObject dbo = iterator.next();
-
 
198
    		System.out.println("Entity IDD :"  + (Long)dbo.get("_id"));
198
    		map.put((Long)dbo.get("_id"), (Entity)toObject(dbo, Entity.class));
199
    		map.put((Long)dbo.get("_id"), (Entity)toObject(dbo, Entity.class));
199
    	}
200
    	}
200
    	return map;
201
    	return map;
201
    }
202
    }
202
    
203