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
Post a Comment