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 is deque in the java collections framework? : java collections

540


What are the interfaces in java collections? : java collections

616


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

576


What is the Spring2.5 MVC Navigation flow?

5372


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

1614






my interviewer asked me what technical specification you used how to answer that question

1935


What is the use of the list interface in the java collection? : java collections

602


What is java collection? : java collections

579


who will give req's to u?. how they send req's to u? . what design documents contains?. when bugs raised on other developer code how to report to them?.(throgh mail or ........). how to retrive 100 recods from dao layer to presentation layer.using which collection?. what is sequence diagram.?.

1818


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 ?

1679


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

574


What is iterator in the java collections framework? : java collections

537


What are the different types of collections views being provided by the map interface? : java collections

615


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

588


What are the differences between the java collection and the java list? : java collections

615