Information about the service builder(service.xml) - data is deleted whenever we are deploying the portlet in liferay



Whenever we are writing the service.xml , we must be ensure the following condition

<column name="frameworkVersionId" type="long" primary="true" id-type="increment"/>

Dont use id-type="increment" in cluster environment because when ever you are deploying the portlet data will be deleted and as it will be as new table.

Ensure whenever your writing the id-type="increment" for the primary key generation.

Comments

Popular posts from this blog

Theme display in javascript

How to know which liferay version we are using

Viewing the SQL Query in liferay : debugging the SQL Query in Hibernate