How to restore or refresh hibernate (JPA) object from database?
Issue
- After loading and modifying an entity, is it possible to cancel the changes and get the entity back from the database ?
Environment
- Hibernate
- Java Persistence API (JPA)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
