@Test @DataSet(value = "/datasets/book.xml") public void read_shouldReadByIsbnExistingBook() { assertBook(dao.readByIsbn(ISBN)); }
public Book readByIsbn(String isbn) { Query query = entityManager.createNamedQuery("Book.readByIsbn"); query.setParameter("isbn", isbn); Book book = (Book) query.getSingleResult(); logger.debug("Read by isbn book[{}]", book); return book; }
BookJpaDaoImpl extends AbstractJpaDao<Book, Long> { public Book readByIsbn(String isbn) { Query query = entityManager.createNamedQuery("Book.readByIsbn"); query.setParameter("isbn", isbn); Book book = (Book) query.getSingleResult(); logger.debug("Read by isbn book[{}]", book); return book; } }
BookJpaDaoImpl extends AbstractJpaDao<Book, Long> { public Book readByIsbn(String isbn) { Query query = entityManager.createNamedQuery("Book.readByIsbn"); query.setParameter("isbn", isbn); Book book = (Book) query.getSingleResult(); logger.debug("Read by isbn book[{}]", book); return book; }  }
BookJpaDaoImpl extends AbstractJpaDao<Book, Long> { public Book readByIsbn(String isbn) { Query query = entityManager.createNamedQuery("Book.readByIsbn"); query.setParameter("isbn", isbn); Book book = (Book) query.getSingleResult(); logger.debug("Read by isbn book[{}]", book); return book; }  Book readByIsbn(String isbn); }
BookJpaDaoImpl extends AbstractJpaDao<Book, Long> { public Book readByIsbn(String isbn) { Query query = entityManager.createNamedQuery("Book.readByIsbn"); query.setParameter("isbn", isbn); Book book = (Book) query.getSingleResult(); logger.debug("Read by isbn book[{}]", book); return book; }  Book readByIsbn(String isbn);  }