What problem does it solve?
Service Builder eliminates repetitive, error-prone boilerplate when creating models, persistence, and service layers for Liferay modules, letting developers focus on business logic instead of generated plumbing.
Core Features & Use Cases
- Code generation: Generate model interfaces, model implementations, persistence classes, and service interfaces/implementations from a single service.xml.
- Finders and queries: Produce typed finder methods, support dynamic queries, and enable custom SQL for complex retrieval patterns.
- Deployment patterns: Guide on splitting API and service modules, using LocalServiceImpl for internal logic and ServiceImpl for permissioned external operations.
- Use case: Build a Liferay module that stores domain entities, exposes secure remote services, implements efficient finders, and runs optimized custom SQL for reporting.
Quick Start
Generate models, persistence, and service layers from your service.xml using the Service Builder build step and implement business logic in LocalServiceImpl.