HHH-17474 Change org.hibernate.cache.internal.NaturalIdCacheKey constructor scope

This commit is contained in:
Andrea Boriero 2023-11-28 10:20:48 +01:00 committed by Andrea Boriero
parent d25fb203a1
commit 153d134db3
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,8 @@ public class NaturalIdCacheKey implements Serializable {
private final String tenantId;
private final int hashCode;
private NaturalIdCacheKey(Object naturalIdValues, String entityName, String tenantId, int hashCode) {
// The constructor needs to be public because it is used by WildFly NaturalIdCacheKeyMarshaller#readFrom(ProtoStreamReader)
public NaturalIdCacheKey(Object naturalIdValues, String entityName, String tenantId, int hashCode) {
this.naturalIdValues = naturalIdValues;
this.entityName = entityName;
this.tenantId = tenantId;