SessionFactory exposes internal interfaces

Description

In Hibernate ORM 6, SessionFactory now extends AuditReaderFactory. Problem, AuditReaderFactory is located in package org.hibernate.envers.internal... so it's supposedly an internal interface?

  • If that interface is actually internal, it should not be extended by SessionFactory

  • If that interface is not internal, it should be moved to a different package.

I noticed that while working on Hibernate Search: we have a tool to check that we don't use any of Hibernate ORM's internal APIs, and it started to flag every use of SessionFactory, since it exposes an internal interface.

Environment

None

Status

Assignee

Unassigned

Reporter

Yoann Rodière

Fix versions

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure