@Override
 protected MapSqlParameterSource createFullParametersMapper(DiskImageDynamic entity) {
   return createIdParameterMapper(entity.getId())
       .addValue("read_rate", entity.getread_rate())
       .addValue("write_rate", entity.getwrite_rate())
       .addValue("actual_size", entity.getactual_size())
       .addValue("read_latency_seconds", entity.getReadLatency())
       .addValue("write_latency_seconds", entity.getWriteLatency())
       .addValue("flush_latency_seconds", entity.getFlushLatency());
 }
 @Override
 public DiskImageDynamic mapRow(ResultSet rs, int rowNum) throws SQLException {
   DiskImageDynamic entity = new DiskImageDynamic();
   entity.setId(getGuidDefaultEmpty(rs, "image_id"));
   entity.setread_rate((Integer) rs.getObject("read_rate"));
   entity.setwrite_rate((Integer) rs.getObject("write_rate"));
   entity.setactual_size(rs.getLong("actual_size"));
   entity.setReadLatency(
       rs.getObject("read_latency_seconds") != null
           ? rs.getDouble("read_latency_seconds")
           : null);
   entity.setWriteLatency(
       rs.getObject("write_latency_seconds") != null
           ? rs.getDouble("write_latency_seconds")
           : null);
   entity.setFlushLatency(
       rs.getObject("flush_latency_seconds") != null
           ? rs.getDouble("flush_latency_seconds")
           : null);
   return entity;
 }