Anuj Mehra
Anuj Mehra

Reputation: 320

Do we have something similar to Hibernate's load method when we are using JPA?

As per definition hibernate's "load()" method always retrieves proxy objects.

In my current project I am using JPA and ORM provider being used is hibernate. How can I achieve load() functionality (provided by Session) while using EntityManager (JPA)?

Upvotes: 1

Views: 392

Answers (1)

eltabo
eltabo

Reputation: 3807

Maybe what you want is EntityManager.getReference

Upvotes: 1

Related Questions