Saturday, 19 January 2013

How To Disable Automatic Updates By Service.xml with Database in Liferay

Even though liferay service layer is an excellent and efficient tool to work with database and it generates automatic hibernate spring framework, it has some drawback in terms of customization. model-hints.

portlet-model-hints.xml and portlet-model-hints-ext.xml entries are work around for customizing database schema. Still if you face any problem and want to continue without liferay service layer database scheme, you can just disable this update with database.

  1. Add service-ext.properties in resource folder(If you are not using maven, then locate the path of service.properties and keep extension file in the same path.)
  2. Enter following entry and restart the server. 
               build.auto.upgrade=false

1 comment: