Labels

Ubuntu (5) Jax-RS (4) angular.js (4) java (4) linux (4) Jersey (3) classloader (3) javascript (3) Angular-UI (2) Eclipse (2) Google Chrome (2) Liferay (2) RAD 7.0 (2) SSL (2) WAS 6.1 (2) ATI Radeon 2600 (1) Apache (1) Axis (1) Birt (1) Bootstrap3 (1) CORS (1) CompizConfig (1) Finder (1) Generator (1) Google Docs (1) Grunt.js (1) JAX-RPC (1) Junit (1) Liferay javascript (1) MySQL (1) Power Mock (1) Python (1) Rest client (1) Service Builder (1) Subclipse (1) Unity (1) Virtual Host (1) Web Services (1) WebGL (1) WebStorm (1) bash (1) drivers (1) ext plugin (1) jvm (1) node.js (1) openVZ (1) play framework (1) validation (1) yeoman (1) yo (1)
Showing posts with label Generator. Show all posts
Showing posts with label Generator. Show all posts

December 10, 2012

Liferay Service builder : finder methods not created in *ServiceUtil class

I had to generate finder methods via liferay service builder, and was surprised not to find corresponding static utility methods in *ServiceUtil class.

I had to "manually" write the implemenation of those methods in my *LocalServiceImpl.java class. Tod do so, simply call the corresponding *util.findByxxxx method in your implementation method :


// xxxLocalServiceImpl.java :
public List<XXX> findByGroupId(long groupId) throws SystemException {
return xXXPersistence.findByGroupId(groupId);
}
And then re-run service builder build-services task to create the corresponding static utility method in XXXLocalServiceUtil class.


Hope this help.