« Quartz and Hibernate — Handling Session Management?
May 6, 2006 • ☕️ 1 min read
How to manage the Hibernate session for the duration of the quartz job execution?
Quartz/cron jobs by default have their own start-up times which doesn’t always match the application workflow.
If you are using lazy-init entities inside your Quartz Job then you have to initialize them eagerly either through a FETCH or using Hibernate.initialize().