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

Search Interview Questions


 2807 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' - 3 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 ?


 Q3. Explain Hibernate caching mechanismHibernate2018-11-14 12:53:50

 This question was recently asked at 'Infosys,Sabre,Sapient,HCL Technologies,Thomson Reuters,Capgemini,FINRA,abhra,Ephesoft,Ananth Technologies,Verizon,Azuga,UrbanPro,Indecomm Global Services,The Digital Group,mPHATEK systems,Cakesoft Technologies,GoldenSource Corporation,Synechron,Clear2Pay,Rigil,Azuga,GGK Technologies system'.This question is still unanswered. Can you please provide an answer.


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

   Like      Discuss      Correct / Improve          Infosys  Sabre  Sapient  HCL Technologies  Thomson Reuters  Capgemini  FINRA  abhra  Ephesoft  Ananth Technologies  Verizon  Azuga  UrbanPro  Indecomm Global Services  The Digital Group  mPHATEK systems  Cakesoft Technologies  GoldenSource Corporation  Synechron  Clear2Pay  Rigil  Azuga  GGK Technologies system


Related Questions

  Difference between == and .equals() ?
  Why is String immutable in Java ?
  Explain the scenerios to choose between String , StringBuilder and StringBuffer ?

or

What is the difference between String , StringBuilder and StringBuffer ?
  What are the difference between composition and inheritance in Java?
  What do you mean by "Java is a statically typed language" ?
  Why do we need Inner classes ? Cant we just work with outer classes wherever we implement Inner classes ?
  What are different ways of object creation in Java ?
  What are points to consider in terms of access modifier when we are overriding any method?
 What is the difference between declaration, instantiation and initialization ?
  What are the common uses of "this" keyword in java ?




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: Was asked following questions: 1.What is the ... Anonymous

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

X Close this

Help Us Improve.
Please share your
interview experience.

Company Name:   


Questions Asked: