Add the transaction annotation, so that template and model will be saved
within the same transaction.
Issue-ID: CLAMP-151
Change-Id: Ia0c50967317c3c158b401175dc1fbc166610518b
Signed-off-by: xg353y <xg353y@intl.att.com>
import org.onap.clamp.clds.model.CldsTemplate;
import org.onap.clamp.clds.service.CldsService;
import org.onap.clamp.clds.service.CldsTemplateService;
+import org.springframework.transaction.annotation.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.ApplicationContext;
}
@Override
+ @Transactional
public void installTheCsar(CsarHandler csar) throws SdcArtifactInstallerException {
try {
String serviceTypeId = queryDcaeToGetServiceTypeId(csar);