Service Builder is a model-driven code generation tool built by Liferay that allows developers to define custom object models called entities. Service Builder generates a service layer through ORM technology that provides a clean separation between your object model and code for the underlying database. Service Builder takes an XML file as input and generates the necessary model, persistence, and service layers for your application.