removed obsolete

This commit is contained in:
Fabio Sinibaldi 2020-12-03 19:32:40 +01:00
parent 2da542d7f6
commit a9ad9008fd
1 changed files with 8 additions and 8 deletions

View File

@ -48,19 +48,19 @@ public class ConcessioneManager extends AbstractRecordManager<Concessione> {
entityManager.createNativeQuery("Update layerconcessione set record_id="+getRecord().getId()+" where id = "+l.getId()).executeUpdate();
if(l.getWMSLink()!=null) {
entityManager.createNativeQuery("Update layerconcessione set wmslink='"+l.getWMSLink()+"' where id = "+l.getId()).executeUpdate();
entityManager.createNativeQuery("Update sdilayerdescriptor set wmslink='"+l.getWMSLink()+"' where id = "+l.getId()).executeUpdate();
// entityManager.createNativeQuery("Update sdilayerdescriptor set wmslink='"+l.getWMSLink()+"' where id = "+l.getId()).executeUpdate();
}
if(l.getLayerName()!=null) {
entityManager.createNativeQuery("Update layerconcessione set layername='"+l.getLayerName()+"' where id = "+l.getId()).executeUpdate();
entityManager.createNativeQuery("Update sdilayerdescriptor set layername='"+l.getLayerName()+"' where id = "+l.getId()).executeUpdate();
// entityManager.createNativeQuery("Update sdilayerdescriptor set layername='"+l.getLayerName()+"' where id = "+l.getId()).executeUpdate();
}
if(l.getLayerID()!=null) {
entityManager.createNativeQuery("Update layerconcessione set layerid='"+l.getLayerID()+"' where id = "+l.getId()).executeUpdate();
entityManager.createNativeQuery("Update sdilayerdescriptor set layerid='"+l.getLayerID()+"' where id = "+l.getId()).executeUpdate();
// entityManager.createNativeQuery("Update sdilayerdescriptor set layerid='"+l.getLayerID()+"' where id = "+l.getId()).executeUpdate();
}
if(l.getLayerUUID()!=null) {
entityManager.createNativeQuery("Update layerconcessione set layeruuid='"+l.getLayerUUID()+"' where id = "+l.getId()).executeUpdate();
entityManager.createNativeQuery("Update sdilayerdescriptor set layeruuid='"+l.getLayerUUID()+"' where id = "+l.getId()).executeUpdate();
// entityManager.createNativeQuery("Update sdilayerdescriptor set layeruuid='"+l.getLayerUUID()+"' where id = "+l.getId()).executeUpdate();
}
}
if(getRecord().getPosizionamentoScavo()!=null) {
@ -68,19 +68,19 @@ public class ConcessioneManager extends AbstractRecordManager<Concessione> {
entityManager.createNativeQuery("Update layerconcessione set record_id="+getRecord().getId()+" where id = "+l.getId()).executeUpdate();
if(l.getWMSLink()!=null) {
entityManager.createNativeQuery("Update layerconcessione set wmslink='"+l.getWMSLink()+"' where id = "+l.getId()).executeUpdate();
entityManager.createNativeQuery("Update sdilayerdescriptor set wmslink='"+l.getWMSLink()+"' where id = "+l.getId()).executeUpdate();
// entityManager.createNativeQuery("Update sdilayerdescriptor set wmslink='"+l.getWMSLink()+"' where id = "+l.getId()).executeUpdate();
}
if(l.getLayerName()!=null) {
entityManager.createNativeQuery("Update layerconcessione set layername='"+l.getLayerName()+"' where id = "+l.getId()).executeUpdate();
entityManager.createNativeQuery("Update sdilayerdescriptor set layername='"+l.getLayerName()+"' where id = "+l.getId()).executeUpdate();
// entityManager.createNativeQuery("Update sdilayerdescriptor set layername='"+l.getLayerName()+"' where id = "+l.getId()).executeUpdate();
}
if(l.getLayerID()!=null) {
entityManager.createNativeQuery("Update layerconcessione set layerid='"+l.getLayerID()+"' where id = "+l.getId()).executeUpdate();
entityManager.createNativeQuery("Update sdilayerdescriptor set layerid='"+l.getLayerID()+"' where id = "+l.getId()).executeUpdate();
// entityManager.createNativeQuery("Update sdilayerdescriptor set layerid='"+l.getLayerID()+"' where id = "+l.getId()).executeUpdate();
}
if(l.getLayerUUID()!=null) {
entityManager.createNativeQuery("Update layerconcessione set layeruuid='"+l.getLayerUUID()+"' where id = "+l.getId()).executeUpdate();
entityManager.createNativeQuery("Update sdilayerdescriptor set layeruuid='"+l.getLayerUUID()+"' where id = "+l.getId()).executeUpdate();
// entityManager.createNativeQuery("Update sdilayerdescriptor set layeruuid='"+l.getLayerUUID()+"' where id = "+l.getId()).executeUpdate();
}
}