Following
are the steps to implement Custom SQL
- Create Simple Liferay MVC Portlet
- Define entity in service.xml
- Run the Service Builder
- Create SQL queries configuration XML file (Custom SQL XML file)
- Write Native SQL in Custom SQL xml file
- Create Finder Implementation class
- Run the Service Builder
- Implement Required Custom SQL Method in Finder Implementation Java Class
- Run the Service Builder
- Write Custom Service Method in respective Local Service Implementation Class
- Run the Service Builder
- Use Respective Local Service Util class to call service method
No comments:
Post a Comment