Creating a Criteria instance by R4R Team

In The  Hibernate the interface org.hibernate.Criteria represents a query against a particular persistent class. The Session is a factory for Criteria instances.


Below the given code tells us about the above conversation:


Criteria crt = session.createCriteria(Student.class);

crt.setMaxResults(50);

List student = crit.list();

Leave a Comment:
Search
Categories
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!