Fix controllo SQLServerConnection in EntityBase
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good

This commit is contained in:
2025-07-30 18:58:04 +02:00
parent 88a518d0ad
commit 1d0fed90ae

View File

@@ -1489,11 +1489,11 @@ public abstract class EntityBase implements Serializable, Cloneable, EntityInter
public void updateEntity() throws Exception {
java.sql.Connection con = connection.getConnection();
if (!(con instanceof SQLServerConnection)) {
if (!(con.isWrapperFor(SQLServerConnection.class))) {
throw new Exception("Impossibile processare una entity su una connessione diversa da SQL Server");
}
SQLServerConnection sqlServerConnection = (SQLServerConnection) con;
SQLServerConnection sqlServerConnection = con.unwrap(SQLServerConnection.class);
if (nativeSql != null) {