Fix controllo SQLServerConnection in EntityBase
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user