This was originally reported to as a bug to my project, but I think that this is something that has to be resolved in Hibernate itself. CacheKeyImplementation implements Serializable, but cache keys for some types have fields that are not serializable. See the following stacktrace:
Cache keys for org.hibernate.type.EmbeddedComponentType contain a reference to java.lang.reflect.Field via org.hibernate.tuple.component.PojoComponentTuplizer. Classes in java.lang.reflect are not serializable. This issue has been resolved in Hibernate 6 where cache keys no longer reference the type itself, but the disassembled state of the type. Does it make sense to backport the changes from to cache keys from Hibernate 6 to 5? |