Github user koushik-das commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/1853#discussion_r106589966 --- Diff: server/src/com/cloud/dc/dao/DedicatedResourceDaoImpl.java --- @@ -312,6 +317,65 @@ public DedicatedResourceVO findByHostId(Long hostId) { } @Override + public List<DedicatedResourceVO> listAvailableResources(Long accountId, Long... domains) { --- End diff -- @anshul1886 Check out SearchBuilder class, it has methods like or(), op(), cp() which can be used to construct the query. Also the same field can be used in multiple places, search for reference to or(), op() etc. elsewhere in the code and you will find how to use them. One such place is QueryManagerImpl.java
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---