Service Builder generates a file in your project’s docroot/WEB-INF/src folder. Liferay Portal uses the properties in this file to alter your service’s database schema and load Spring configuration files to support deployment of your service. You should not modify this file, but rather make any necessary overrides in a file in that same folder.

Here are some of the properties included in the file:

  • This is true by default. This property determines whether or not Liferay should automatically apply changes to the database model when a new version of the plugin is deployed.
  • build.namespace: This is the namespace you defined in docroot/WEB-INF/service.xml. Liferay distinguishes different plugins from each other using their namespaces.
  • build.number: Liferay distinguishes different builds of your plugin. Each time a distinct build of your plugin is deployed to Liferay, Liferay increments this number.
  • This is the time of the latest build of your plugin.
  • spring.configs: This is a comma-delimited list of Spring configurations.
  • include-and-override: The default value of this property defines as an override file for

It’s sometimes useful to override the property from Setting in your file prevents Liferay from trying automatically to apply any changes to the database model when a new version of the plugin is deployed. This is needed in projects in which it is preferred to manually manage the changes to the database or in which the SQL schema has intentionally been modified manually after generation by Service Builder.

Related Topics

What is Service Builder?

Creating Local Services

« Leveraging Hibernate's Criteria APIIntroduction to Security and Permissions »
Este artigo foi útil?
Utilizadores que acharam útil: 0 de 0