Skip to content

Fix Hibernate Interceptor compatibility for OpenMRS 3.x#28

Open
SSR-java wants to merge 2 commits into
openmrs:masterfrom
SSR-java:fix/hibernate-interceptor-compatibility
Open

Fix Hibernate Interceptor compatibility for OpenMRS 3.x#28
SSR-java wants to merge 2 commits into
openmrs:masterfrom
SSR-java:fix/hibernate-interceptor-compatibility

Conversation

@SSR-java
Copy link
Copy Markdown

This PR fixes compatibility issues in the datafilter module when running with newer versions of Hibernate and OpenMRS 3.x.

Changes made:

  • Replaced deprecated EmptyInterceptor with Hibernate Interceptor
  • Removed super.* method calls that depended on EmptyInterceptor
  • Implemented required interceptor interface methods
  • Migrated javax.persistence imports to jakarta.persistence
  • Ensured interceptor methods return appropriate defaults (null / false)

These changes allow the module to run correctly with the Jakarta-based stack used in OpenMRS 3.x.

@SSR-java SSR-java marked this pull request as draft March 21, 2026 03:11
@SSR-java SSR-java marked this pull request as ready for review March 21, 2026 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant