Пример #1
0
 /**
  * Mapear ResulSet a un Pojo
  *
  * @param res
  * @return
  * @throws SQLException
  */
 @Override
 public Estilo mapeo(ResultSet res) throws SQLException {
   Estilo gru = new Estilo();
   gru.setId(res.getInt("id"));
   gru.setNombre(res.getString("nombre"));
   gru.setDescripcion(res.getString("descripcion"));
   gru.setCodigo(res.getString("codigo"));
   return gru;
 }