Hibernate - Interview Questions and Answers for 'Capgemini' | Search Java Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com
Share

Search Interview Questions


 2720 questions in repository.
 There are more than 200 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Capgemini


   




Hibernate - Interview Questions and Answers for 'Capgemini' - 2 question(s) found - Order By Newest

Very frequently asked if being interviewed for hibernate. Frequently asked in Tata Consultancy (TCS) and Overstock.com
  Q1. Difference between load and get ?Hibernate
Admin
info@buggybread.com
Ans. If id doesnt exist in the DB load throws an exception whereas get returns null in that case.get makes the call to DB immediately whereas load makes the call to proxy.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like      Discuss      Correct / Improve     hibernate     Overstock.com  Nagarro  Anthem  Tata Consultancy (TCS)  Nucleus Software Exports  CDK Global  Dell  Capgemini  Persistent Systems  HCL Technologies  Nagarro  Sears  CDK Global  Oracle  Nucleus Software Exports  CACI International      basic        frequent


Related Questions

  What is Lazy Initialization in Hibernate ?
  What are the ways to avoid LazyInitializationException ?
  Difference between first level and second level cache in hibernate ?
  How to configure second level cache in Hibernate ?
  What are the contents of Hibernate configuration file ( hibernate.cfg.xml ) ?
  Which annotations are used in Hibernate ?
  What things you would care about to improve the performance of Application if its identified that its DB communication that needs to be improved ?
  What are the advantages of Hibernate ?
  What is the purpose of dialect configured in Hibernate configuration file ?
  Please specify in what sequence the objects of following classes will be created ?

Session , SessionFactory, Query , Configuration


 Q2. What is Criteria in Hibernate ?Hibernate
Admin
info@buggybread.com
Ans. Criteria is a simplified API for retrieving entities by composing Criterion objects.

For example - session.createCriteria(Employee.class).add( Restrictions.like("name", "A%") ).list();

will return all employee objects having name starting with A.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like      Discuss      Correct / Improve     hibernate   hibernate criteria     IBM  HCL Technologies  Overstock.com  Tata Consultancy (TCS)  Accenture  Capgemini      Basic        Frequent

Try 1 Question(s) Test


Related Questions

  How do we specify the criteria if it involves mapping between two entities or join between tables ?
  Name few Restriction Methods ?
  In Hibernate, While defining Criteria, Have you ever faced any problem while adding restrictions with user defined types or Enums ?
  What is your choice while writing queries within Hibernate - criteria or HQL ?




Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner



comments powered by Disqus
 

Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked:
         

X Close this

Capgemini: Good Company. Got a good client to ... Amit

X Close this

Help Us Improve.
Please share your
interview experience.

Company Name:   


Questions Asked: