Get vs Load method in Hibernate - Interview Question
Advertisements
| Top Tutorials | New Tutorials | Submit | Login | Register |
Tutorial Detail
Get vs Load method in Hibernate - Interview Question
Both get and load method are used to retrieve object in hibernate but there are subtle difference between them which can affect performance if used athttp://javarevisited.blogspot.com/2012/07/hibernate-get-and-load-difference-interview-ques...
Total Hits: 3126
Total Votes: 12 votes
Category: JAVA/Frameworks
Submitted on: 2012-12-24 15:30:16
Submitted By: Javin Paul
Description:
Both get and load method are used to retrieve object in hibernate but there are subtle difference between them which can affect performance if used at wrong place. Like get() never return uninitialized object and always hit DB if object is not found in cache but same time it return null if object doesn't exist which can be used to make decisions. More detail...Rating Detail
| Stars | Percentage | Total Vote |
|---|---|---|
![]() |
![]() ![]() 83.33% |
10 |
![]() ![]() |
![]() ![]() 0% |
0 |
![]() ![]() ![]() |
![]() ![]() 0% |
0 |
![]() ![]() ![]() ![]() |
![]() ![]() 0% |
0 |
![]() ![]() ![]() ![]() ![]() |
![]() ![]() 16.67% |
2 |





83.33%

0%

0%

0%

16.67%