eExisting = (EventStat) c.list().get(0);
}
if(eExisting == null)
eExisting = eUpdate;
else
<BUG>eExisting.setCount(eExisting.getCount() + eUpdate.getCount());
session.saveOrUpdate(eExisting);</BUG>
}
}
private void doUpdateResourceStatObjects(Session session, Collection<ResourceStat> objects) {

eExisting = (EventStat) c.list().get(0);
}
if(eExisting == null)
eExisting = eUpdate;
else
eExisting.setCount(eExisting.getCount() + eUpdate.getCount());
String eExistingSiteId = eExisting.getSiteId();
if ((eExistingSiteId!=null) && (eExistingSiteId.trim().length()>0))
session.saveOrUpdate(eExisting);
}
}
private void doUpdateResourceStatObjects(Session session, Collection<ResourceStat> objects) {
