This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

All entities have a findXEntries method which allows for pagination, so you probably want to use this instead. You can also use Roo's dynamic finders if you know which items you want to display. To use them, you need to push in the relevant methods in your controllers (marked with @ModelAttribute).

Comment

Thanks for your response Stefan. I know, that I can use the findXEntries, paging or dynamic finders for my custom code. However the scaffolded controllers will contain queries to all entities of the referenced type to populate their create/update forms, right? In my example that would be a call to findAllImageWrappers each time I create a new Album or edit an existing one.

Comment

We are aware that things are not optimal with the use of @ModelAttributes. We are planning to address this issue for the next release. Feel free to comment on the existing ticket for this: https://jira.springsource.org/browse/ROO-2514 for suggestions.