Skip to content

Commit

Permalink
fix(upgrade-massivo): fix(upgrade-massivo): fix rollback massivo4 202…
Browse files Browse the repository at this point in the history
…40926
  • Loading branch information
sgravinadxc committed Sep 26, 2024
1 parent 1d9ee1d commit 0785b5a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import it.pa.repdgt.shared.entity.key.EnteSedeProgettoFacilitatoreKey;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
Expand Down Expand Up @@ -355,4 +356,8 @@ Optional<List<ServizioEntity>> findAllByDataServizioAndDurataServizioAndTipologi
"WHERE s.cod_inserimento = :codInserimento\n" +
"AND sxc.id_servizio IS NULL\n", nativeQuery = true)
List<ServizioEntity> findAllByCodInserimentoWithoutSXC(String codInserimento);

@Modifying
@Query(value = "DELETE FROM servizio s WHERE s.id = :idServizio", nativeQuery = true)
void deleteServizioByIdServizioNative(Long idServizio);
}
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ public void eliminaTipologiaServizioByListaServizi(List<ServizioEntity> listaSer
public void eliminaServiziByListaServizi(List<ServizioEntity> listaServizi){

for(ServizioEntity servizio : listaServizi){
servizioSqlRepository.delete(servizio);
servizioSqlRepository.deleteServizioByIdServizioNative(servizio.getId());
}

}
Expand Down

0 comments on commit 0785b5a

Please sign in to comment.