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 considerations to be made in case of loops in java ?
Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?
What is the enumerator of the java collection framework? : java collections
Which java collection class can be used to maintain the entries in the order in which they were last accessed?
can u draw class/object diagram for ATM
What are the main classes of the list interfaces? : java collections
What is deque in the java collections framework? : java collections
please mail me the interview question based on java/j2ee
In hyderabad, which s/w training center is best for java, other than corejava what r the new tools to learn in java,which tool is best & have current requirement,pls give me information about java to learn ?
What are the differences between the java collection and the java list? : java collections
Which sorting algorithm is used by collections.sort() in java ?
What are the uses of the set interfaces in the java collections? : java collections
How is hashset maintained in memory by java ?
What are the different types of classes implemented in the set interfaces? : java collections
What are the types of the main implementing classes in the map interfaces? : java collections