org.hibernate.persister.entity.DiscriminatorType is marked Serializable but is not. This breaks serialization of QueryKey

Description

org.hibernate.type.Type extends Serializable. org.hibernate.persister.entity.DiscriminatorType includes a field "private final Loadable persister" that is not serializable.

As a result my 2nd level cache cannot serialize a org.hibernate.cache.spi.QueryKey due to one of the named parameters being a DiscriminatorType. Since DiscriminatorType is marked as Serializable, it should be Serializable.

Environment

None

Status

Assignee

Unassigned

Reporter

Russ Tennant

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Worked in

5.2.8

Components

Affects versions

Priority

Major
Configure