After generating a domain model from a legacy database, I noticed that List classes that extend EntityQuery were generated as actions. I essentially want to be able to expose these models using resteasy. One problem that I have among many is when exposing the lists of resources there is no way to do pagination of the list of resources. Has anyone tried this? Does this make any sense? Does anyone have any suggestions on how to make the resteasy interface accept in firstResult the way the html view does?