|    
			
				21/04/2009, 04:03
			
			
			  | 
  |   |  |  |  Fecha de Ingreso: abril-2009 
						Mensajes: 4
					 Antigüedad: 16 años, 6 meses Puntos: 0 |  | 
  |  Respuesta: Ayuda JPA  
  EntityManager em = emf.createEntityManager();Libro l = new Libro();
 EntityTransaction tx = em.getTransaction();
 tx.begin();
 try {
 Query consulta = em.createQuery("DELETE FROM l WHERE l.isbn:=isbn");
 consulta.setParameter("isbn", isbnParam);
 int results = consulta.executeUpdate();
 em.flush();
 tx.commit();
 } catch (PersistenceException pe) {
 tx.rollback();
 throw pe;
 } finally {
 em.close();
 }
 
 
 asi me quedo el metodo al final ,¿ves algun error?.
     |