Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Obtaining all data in a table with Hibernate

List<Product> list = new LinkedList<>();
    Query query = session.createQuery("from Product");
    for(final Object o : query.list()) {
        list.add((Product)o);
    }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Obtaining #data #table #Hibernate
ADD COMMENT
Topic
Name
6+5 =