Hi Scott, I have discussed the problem with Chritstian and we agree the best solution is to change the scope of the constructor back to public. I have created a Jira [1] for this issue.
[1] https://hibernate.atlassian.net/browse/HHH-17474 On Mon, Nov 27, 2023 at 11:11 PM Scott Marlow <smar...@redhat.com> wrote: > I just tried to build WildFly with Hibernate ORM 6.4.0.Final and am seeing > a build failure due to WildFly [1] depending on an internal ORM class > org.hibernate.cache.internal.NaturalIdCacheKey [2] that has a private > constructor. > > Would it make sense to add a NaturalIdCacheKey#from method that has the > previous parameters? Or something else? > > The WildFly build failure is (also shown via > https://github.com/wildfly/wildfly/pull/17447 ci): > " > [ERROR] COMPILATION ERROR : > [INFO] ------------------------------------------------------------- > [ERROR] > > /home/smarlow/work/wildfly/jpa/hibernate6/src/main/java/org/jboss/as/jpa/hibernate/cache/NaturalIdCacheKeyMarshaller.java:[57,47] > incompatible types: java.lang.String cannot be converted to > org.hibernate.persister.entity.EntityPersister > [INFO] 1 error > . > . > . > Error: > /home/runner/work/wildfly/wildfly/jpa/hibernate6/src/main/java/org/jboss/as/jpa/hibernate/cache/NaturalIdCacheKeyMarshaller.java:[57,16] > NaturalIdCacheKey(java.lang.Object,java.lang.String,java.lang.String,int) > has private access in org.hibernate.cache.internal.NaturalIdCacheKey > " > > Scott > > [1] > > https://github.com/wildfly/wildfly/blob/main/jpa/hibernate6/src/main/java/org/jboss/as/jpa/hibernate/cache/NaturalIdCacheKeyMarshaller.java#L57 > [2] > > https://github.com/hibernate/hibernate-orm/blob/5ea40e255d1f1d10d110477817b6a3bfef2d8634/hibernate-core/src/main/java/org/hibernate/cache/internal/NaturalIdCacheKey.java#L65-L64 > [3] https://github.com/wildfly/wildfly/pull/17447 > _______________________________________________ > hibernate-dev mailing list -- hibernate-dev@lists.jboss.org > To unsubscribe send an email to hibernate-dev-le...@lists.jboss.org > Privacy Statement: https://www.redhat.com/en/about/privacy-policy > List Archives: > https://lists.jboss.org/archives/list/hibernate-dev@lists.jboss.org/message/DYF5AG4AED7MYWRHJE2F7R7FQB7NST76/ > _______________________________________________ hibernate-dev mailing list -- hibernate-dev@lists.jboss.org To unsubscribe send an email to hibernate-dev-le...@lists.jboss.org Privacy Statement: https://www.redhat.com/en/about/privacy-policy List Archives: https://lists.jboss.org/archives/list/hibernate-dev@lists.jboss.org/message/FBPJMXZKG3Z2ZERQXKJ6LCPQ3SLEXYFR/