forgot the select field

This commit is contained in:
Alex Huang 2011-01-31 11:16:13 -08:00
parent f96f5a7db0
commit a49a4184d5
1 changed files with 1 additions and 0 deletions

View File

@ -760,6 +760,7 @@ public class StorageManagerImpl implements StorageManager, StorageService, Manag
_serverId = ((ManagementServer)ComponentLocator.getComponent(ManagementServer.Name)).getId();
UpHostsInPoolSearch = _storagePoolHostDao.createSearchBuilder(Long.class);
UpHostsInPoolSearch.selectField(UpHostsInPoolSearch.entity().getHostId());
SearchBuilder<HostVO> hostSearch = _hostDao.createSearchBuilder();
hostSearch.and("status", hostSearch.entity().getStatus(), Op.EQ);
UpHostsInPoolSearch.join("hosts", hostSearch, hostSearch.entity().getId(), UpHostsInPoolSearch.entity().getHostId(), JoinType.INNER);