OSIV: You Can’t Switch It Off, You Can Only Turn It On
summary
Talk explains Spring’s open-in-view (OSIV) setting for Hibernate: what OSIV actually does, why conventional advice is to disable it at a project’s start, and why postponing that change can cause problems. The presentation uses experiments with a Spring service, reading Hibernate source, and reviewing Spring transaction management to show how to disable OSIV safely, what mitigations exist if issues already occur, and why OSIV is enabled by default.
AI-written summary · about
