playframework / playframework/play1

Session-scoped Hibernate interceptor does not work

Open
#1,361 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.6k
Forks
671
Avg merge
12d 15h
Merged PRs (30d)
1

Description

TLDR: Using Play 1.5.3, specifying a session-scoped Hibernate Interceptor by setting the following Hibernate in application.conf, doesn't work:

hibernate.session_factory.session_scoped_interceptor=utils.HibernateQueryInterceptor


I described the issue extensively in this Stackoverflow question, hoping that it's perhaps something I'm doing wrong.
I am starting to think this might be a legitimate bug, therefore I'm raising it here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Hibernate configuration in application.conf and compare the reported behavior with the linked Stack Overflow question. Reproduce the session-scoped interceptor setup and determine whether utils.HibernateQueryInterceptor is created and applied to Hibernate sessions; done means the configured interceptor is invoked as intended.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.