What is fetchtype in hibernate?



What is fetchtype in hibernate?..

Answer / Priyanka Wadhwa

The fetchtype in Hibernate determines how a related entity is fetched when it's loaded. It can be set to EAGER (by default) or LAZY, where EAGER means the associated objects are loaded immediately and LAZY means they are loaded only when accessed.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

Mention some important annotations used for hibernate mapping?

1 Answers  


What are the 4 principles of orm?

1 Answers  


What is the difference between an orm and an odm?

1 Answers  


What is difference between getcurrentsession () and opensession ()?

1 Answers  


Why do we use inheritance mapping in hibernate?

1 Answers  


Why is orm used?

1 Answers  


Explain hibernate configuration file and hibernate mapping file?

1 Answers  


Is hibernate sessionfactory is thread safe?

1 Answers  


Explain the query object in hibernate?

1 Answers  


What is meant by hibernate tuning?

1 Answers  


What is difference between session and sessionfactory in hibernate?

1 Answers  


What is a meant by light object mapping?

1 Answers  


Categories