Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Obtaining all data in a table with Hibernate

Session session;
EntityManager em = session.getEntityManagerFactory().createEntityManager();
TypedQuery<Product> query = em.createQuery("from Product", Product.class);
List<Product> list = query.getResultList();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Obtaining #data #table #Hibernate
ADD COMMENT
Topic
Name
4+9 =