Subversion Repositories SmartDukaan

Rev

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

Rev 8906 Rev 8909
Line 198... Line 198...
198
	public Map<Long, Entity> getEntities() throws Exception{
198
	public Map<Long, Entity> getEntities() throws Exception{
199
    	Map<Long,Entity> map = new TreeMap<Long, Entity>(); 
199
    	Map<Long,Entity> map = new TreeMap<Long, Entity>(); 
200
    	Iterator<DBObject> iterator = views.entity.find().iterator();
200
    	Iterator<DBObject> iterator = views.entity.find().iterator();
201
    	while(iterator.hasNext()){
201
    	while(iterator.hasNext()){
202
    		DBObject dbo = iterator.next();
202
    		DBObject dbo = iterator.next();
203
    		if(1000068l == (Long)dbo.get("_id")) continue;
-
 
204
    		log.info("Entity IDD :"  + (Long)dbo.get("_id"));
-
 
205
    		map.put((Long)dbo.get("_id"), (Entity)toObject(dbo, Entity.class));
203
    		map.put((Long)dbo.get("_id"), (Entity)toObject(dbo, Entity.class));
206
    	}
204
    	}
207
    	return map;
205
    	return map;
208
    }
206
    }
209
    
207