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

Search Interview Questions


 3180 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

   



HCL Technologies

HCL Technologies Limited is an Indian multinational IT services company, headquartered in Noida, Uttar Pradesh, India. It is a subsidiary of HCL Enterprise.

Link: https://www.hcltech.com/
   




Hibernate - Interview Questions and Answers for 'Hcl technologies' - 9 question(s) found - Order By Newest

Frequently asked question in companies using Hibernate.
  Q1. What is Lazy Initialization in Hibernate ?Hibernate
Admin
info@buggybread.com
Ans. It's a feature to lazily initialize dependencies , relationship and associations from the Database. Any related references marked as @OneToMany or @ManyToMany are loaded lazily i.e when they are accessed and not when the parent is loaded.

  Sample Code for Lazy Initialization

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


   Like      Discuss      Correct / Improve     hibernate   lazy loading hibernate   lazy initialization hibernate   architecture     overstock.com  BridgePoint Technologies  Medgate  Dex Media  Diversant  Tieto  Oracle  Bank of America Merrill LYNCH  NEC Japan  HCL Technologies  Deloitte  Accenture  Accenture India  Infosys  Tata Consultancy (TCS)  Luxoft  Nvidia  Cority  Kumaran Systems  PubMatic  Deven Infotech  Tavant  Casenet  Azuga  Egen Solutions  Photon Infotech  Dun & Bradstreet  ITHAKA  EngineerBabu  Atos  Zycus  CPA Global  Zycus  Fareportal  Saxo Bank  NSF International   Publicis  Sapient Razorfish  Pratham Software  ATCS  Q3 Technologies  Metacube Software  A3Logics  Nagarro  Tech Mahindra  Patni Computers  L&T Infotech  Mphasis  Mindtree  Hexaware  Collabera  3i Infotech  IGate  Kpit Technologies  NIIT Technologies  Trianz  Persistent Systems  IT Asset  SkillTeam Consulting  KenQA Services  Career Infosystem  Savera IT Solutions  Miracle Corporate Solutions  MAKWIZ Technologies  Global Resources Consulting  Nastech Consulting  Best Infosystems  InnoData India  Career Trackers and Consulting  BR Raysoft Global  Brainwork TechnoSolutions  GroupFit Insurance Brokers  FlexSin Technologies  IRIS Software  FIS Global Business Solutions  TRH Consultancy Services  NexThoughts Software Technologies      Basic        frequent

Try 2 Question(s) Test


Frequently asked question in companies using hibernate.
  Q2. Difference between first level and second level cache in hibernate ?Hibernate
Admin
info@buggybread.com
Ans. 1. First level cache is enabled by default whereas Second level cache needs to be enabled explicitly.

2. First level Cache came with Hibernate 1.0 whereas Second level cache came with Hibernate 3.0.

3. First level Cache is Session specific whereas Second level cache is shared by sessions that is why First level cache is considered local and second level cache is considered global.

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


   Like      Discuss      Correct / Improve     hibernate   orm   hibernate cache   architecture   technical lead     EFI  Geometric  QuinStreet  Cognizant (CTS)  ZS Associates  Walt Disney  Virtusa  JP Morgan  Awin  UrbanPro  Thomson Reuters  Azuga  HCL Technologies  Infosys  GoldenSource  Evoke  Tata Consultancy (TCS) Technologies  Intercontinental Exchange      Intermediate        frequent


 Q3. What are the contents of Hibernate configuration file ( hibernate.cfg.xml ) ?Hibernate
Admin
info@buggybread.com
Ans. HBM Files ( Mapping )
DB Connection ( DB Connection String , User Name , Password , Pool Size )
SQL Dialect ( SQL variant to be generated )
Show SQL ( Show / No show SQL on Console )
Auto Commit ( True / False )

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

   Like      Discuss      Correct / Improve     hibernate   configuration   barclays     Mphasis  Mccoy Global Links  Availity  Infosys  GlobalLogic  Cognizant (CTS)  Overstock.com  Erricson  Erricson India  HCL Technologies  Tata Consultancy (TCS)


Very frequently asked if being interviewed for hibernate. Frequently asked in Tata Consultancy (TCS) and Overstock.com
  Q4. 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


 Q5. What are different types of second level cache ?Hibernate
Admin
info@buggybread.com
Ans. 1. EHCache ( Easy Hibernate )
2. OSCache ( Open Symphony )
3. Swarm Cache ( JBoss )
4. Tree Cache ( JBoss )

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

   Like      Discuss      Correct / Improve     hibernate   orm   hibernate cache   technical lead     Capgemini  GlobalLogic  Evoke Technologies  HCL Technologies  Accenture  Accenture India  Overstock


Very frequently asked Hibernate interview question. Frequently asked in TCS ( based on 2 feedback )
  Q6. What are different types of associations in Hibernate ?Hibernate
Admin
info@buggybread.com
Ans. There are 4 types of associations in Hibernate

One to One
One to Many
Many to One
Many to Many

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

   Like      Discuss      Correct / Improve     hibernate   associations     Overstock.com  BirlaSoft  Fiserv  Overstock.com  Tata Consultancy (TCS)  Wipro  Tech Mahindra  Infosys  HCL Technologies  Fidelity  Sabre        frequent


 Q7. 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  Accenture India  Capgemini      Basic        Frequent

Try 1 Question(s) Test


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


 Q9. Explain different inheritance mapping strategies with JPA / Hibernate.Hibernate2019-01-04 10:13:43

 This question was recently asked at 'Cognizant (CTS),HCL Technologies,Accenture,Accenture India'.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     hibernate mapping  hibernate associations     Cognizant (CTS)  HCL Technologies  Accenture  Accenture India




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

HCL Technologies: HCL is a great company to begin ... Anonymous

HCL Technologies: This company is not bad for someone ... Jagriti

X Close this

Help Us Improve.
Please share your
interview experience.

Company Name:   


Questions Asked: