CLOUDSTACK-5089: fixed VPCDao to set the accountId field correctly

This commit is contained in:
Alena Prokharchyk 2013-11-07 13:34:31 -08:00
parent 4e632afd55
commit 17c0cb48e1
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ public class VpcDaoImpl extends GenericDaoBase<VpcVO, Long> implements VpcDao{
CountByAccountId = createSearchBuilder(Long.class);
CountByAccountId.select(null, Func.COUNT, CountByAccountId.entity().getId());
CountByAccountId.and("offeringId", CountByAccountId.entity().getAccountId(), Op.EQ);
CountByAccountId.and("accountId", CountByAccountId.entity().getAccountId(), Op.EQ);
CountByAccountId.and("removed", CountByAccountId.entity().getRemoved(), Op.NULL);
CountByAccountId.done();
}