Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

hibernate getList of a table

CriteriaBuilder builder = session.getCriteriaBuilder();
CriteriaQuery<Products> criteria = builder.createQuery(Products.class);
criteria.from(Products.class);
List<Products> products = session.createQuery(criteria).getResultList();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #hibernate #getList #table
ADD COMMENT
Topic
Name
2+3 =