com.liferay.portal.tools.samplesqlbuilder.dependencies.counters.ftl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of portal-impl Show documentation
Show all versions of portal-impl Show documentation
Contains implementation for the portal services.
<#assign counterModels = dataFactory.newCounterModels()>
<#list counterModels as counterModel>
<#if ('${counterModel.name}' == 'com.liferay.counter.model.Counter')>
update Counter set currentId = ${counterModel.currentId} where name = '${counterModel.name}';
<#else>
insert into Counter values ('${counterModel.name}', ${counterModel.currentId});