Answer Posted / kameshwar
The interface org.hibernate.Criteria represents a query
against a particular persistent class. The Session is a
factory for Criteria instances.
Criteria crit = sess.createCriteria(Cat.class);
crit.setMaxResults(50);
List cats = crit.list();
Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What are the interfaces in java collections? : java collections
Which server-side script takes the input from JavaScript, can access the database if it needs to, and processes the data.
Which interface does java.util.hashtable implement?
Which java collection class can be used to maintain the entries in the order in which they were last accessed?
What is the enumerator of the java collection framework? : java collections
What are the main classes of the list interfaces? : java collections
Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?
Which sorting algorithm is used by collections.sort() in java ?
How do I find jre path in windows?
Hi Friends, i have searched in google but not clear. can you give bank example with synchronized keyword
What is the Spring2.5 MVC Navigation flow?
How is hashset maintained in memory by java ?
What are the types of interface used in the java collections? : java collections
What are the different types of features of the java collections framework? : java collections
What are the different types of ways where you can iterate over a list? : java collections