public Integer insert(MermaBeans merma) throws DAOException {
			PreparedStatement pst = null;
			ResultSet generatedKeys = null;
			try {
				pst = con.prepareStatement(sql.getString("INSERT_MERMA"),
						Statement.RETURN_GENERATED_KEYS);
				
	//INSERT INTO MERMA (IDMERMA, CANTIDAD) VALUES (?,?)	
				
				pst.setInt(1, merma.getIdMerma());
				pst.setString(2, merma.getCantidad());
				
				if (pst.executeUpdate() != 1)
					throw new DAOException("No se pudo insertar la solicitud");

				generatedKeys = pst.getGeneratedKeys();
				generatedKeys.first();
				ResultSetMetaData rsmd = generatedKeys.getMetaData();
				if (rsmd.getColumnCount() > 1) {
					throw new DAOException("Se genero mas de una llave");
				}
				
				//con.commit();
				return generatedKeys.getInt(1);

			} catch (SQLException e) {
				e.printStackTrace();
				throw new DAOException(e.getMessage());
			} catch (Exception e) {
				throw new DAOException(e.getMessage());
			} finally {
				try {
					if (pst != null)
						pst.close();
					if (generatedKeys != null)
						generatedKeys.close();
				} catch (SQLException e) {
					e.printStackTrace();
				}
			}
		}