1

What happens if i use Hibernate 'get' method for Entity that has 'Lazy' fetch type? or other way if i use 'load' method for Entity with 'Eager' fetch type? Does get and load methods work the same way in these cases?

1
  • What about get() and load() method of Hibernate, Is it related to lazy and Eager of Spring-data-JPA? @Rakesh Patil Commented Jul 4, 2019 at 15:39

1 Answer 1

1

FetchType.LAZY = Doesn’t load the relationships unless explicitly “asked for” via getter FetchType.EAGER = Loads ALL relationships

Sign up to request clarification or add additional context in comments.

1 Comment

What about get() and load() method of Hibernate, Is it related to lazy and Eager of Spring-data-JPA? @developerbhuwan

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.