Answers for "hibernate getList of a table"

0

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();
Posted by: Guest on May-03-2021
0

hibernate getList of a table

(List<Products>)session.createSQLQuery("SELECT * FROM Products").addEntity(Products.class).list();
Posted by: Guest on May-03-2021

Browse Popular Code Answers by Language