Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is hibernate ceteria ?

Answers were Sorted based on User's Feedback



what is hibernate ceteria ?..

Answer / 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

what is hibernate ceteria ?..

Answer / sushant

Hibernate is a replacement of DAO layer used in traditional
JDBC based applications.

And similarly you can say that Criteria is a replacement for
query to the DB.

Used somewhat like...

Session session = sessionFactory.openSession();
Criteria demoCriteria = session.createCriteria(Animal.class);

....
later you can set some property or restrictions in the query...

demoCriteria.add( Restrictions.like("name", "Dog%") )..
...etc.
..
and then execute this criteria to get the results.

List resultsList = demoCriteria.list();

hope that helps.
Mail me for some more info if you require some.
-Sushant

Is This Answer Correct ?    3 Yes 0 No

what is hibernate ceteria ?..

Answer / lal ajith kumara

Criteria technology used to search operations in hibernate.

Is This Answer Correct ?    0 Yes 0 No

what is hibernate ceteria ?..

Answer / guest

asdf

Is This Answer Correct ?    0 Yes 14 No

Post New Answer

More Java J2EE AllOther Interview Questions

Is it Mandatory to map each pojo class variable with table column in Hibernate? Is there any alternative to skip some of those? Thanks in advance...

2 Answers   Span Systems,


In HashSet duplicates are allowed while adding to the HashSet, but while retreiving the object from HashSet is not shown the duplicate values, WHY ?

2 Answers   Cap Gemini,


what is filter ?

2 Answers   SolutionNET,


What is a constructor?

4 Answers  


What are the types of java collections? : java collections

0 Answers  


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

0 Answers  


What are the classes in the java collection framework? : java collections

0 Answers  


what is the difference between banking and insurance domain?

2 Answers  


What is the Spring2.5 MVC Navigation flow?

1 Answers   IBM,


What are the considerations to be made in case of loops in java ?

0 Answers  


which book is the best for preparing for SCWCD 1.5

4 Answers   Google,


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.?.

0 Answers   iGate,


Categories