what is hibernate ceteria ?

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


Please Help Members By Posting Answers For Below Questions

What are the interfaces in java collections? : java collections

853


Which server-side script takes the input from JavaScript, can access the database if it needs to, and processes the data.

1823


Which interface does java.util.hashtable implement?

926


Which java collection class can be used to maintain the entries in the order in which they were last accessed?

772


What is the enumerator of the java collection framework? : java collections

777


What are the main classes of the list interfaces? : java collections

785


Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?

2773


Which sorting algorithm is used by collections.sort() in java ?

747


How do I find jre path in windows?

754


Hi Friends, i have searched in google but not clear. can you give bank example with synchronized keyword

1821


What is the Spring2.5 MVC Navigation flow?

5772


How is hashset maintained in memory by java ?

848


What are the types of interface used in the java collections? : java collections

794


What are the different types of features of the java collections framework? : java collections

824


What are the different types of ways where you can iterate over a list? : java collections

761