Skip to content
lyncodev edited this page Aug 16, 2012 · 2 revisions

Common tasks could be achieved very easily. The following methods are generated by default with Spring Roo, so all Entities will contain such methods.

Finding one Community by ID

Community community = Community.findCommunity(<ID>);

Finding All Communities

Sample App here

List<Community> communities = Community.findAllCommunitys();
for (Community community : communities)
   // Do something

Counting Communities

long count = Community.countCommunitys();

Communities Pagination

List<Community> communities = Community.findCommunityEntries(<Offset>, <Length>);
for (Community community : communities)
   // Do something

Clone this wiki locally