You could use a dynamic list for this, by just fetching that single field into a datatable, or you could use the ResultsetFields used to fetch the dynamic list also to fetch a projection and project it onto the entity class, which gives entity instances with just the ID filled
.