You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using hibernate @org.hibernate.annotations.TenantId annotation on JPA entities, native execution does not work anymore.
To Reproduce
Add some @org.hibernate.annotations.TenantId on a JPA entity property
Expected behavior
Keep org.hibernate.binder.internal.TenantIdBinder class
Logs
Caused by: org.hibernate.AnnotationException: error processing @AttributeBinderType annotation '@org.hibernate.annotations.TenantId()'
at org.hibernate.boot.model.internal.PropertyBinder.callAttributeBinders(PropertyBinder.java:285) ~[na:na]
at org.hibernate.boot.model.internal.PropertyBinder.lambda$bind$964ff3a4$1(PropertyBinder.java:339) ~[na:na]
at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.processSecondPasses(InFlightMetadataCollectorImpl.java:1815) ~[data-manager-backend:6.4.4.Final]
at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.processSecondPasses(InFlightMetadataCollectorImpl.java:1774) ~[data-manager-backend:6.4.4.Final]
at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:332) ~[na:na]
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:1432) ~[na:na]
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1503) ~[na:na]
at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:75) ~[na:na]
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:390) ~[data-manager-backend:6.1.5]
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:409) ~[data-manager-backend:6.1.5]
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:396) ~[data-manager-backend:6.1.5]
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:366) ~[data-manager-backend:6.1.5]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1833) ~[data-manager-backend:6.1.4]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1782) ~[data-manager-backend:6.1.4]
... 14 common frames omitted
Caused by: java.lang.InstantiationException: org.hibernate.binder.internal.TenantIdBinder
at [email protected]/java.lang.Class.newInstance(DynamicHub.java:639) ~[data-manager-backend:na]
at org.hibernate.boot.model.internal.PropertyBinder.callAttributeBinders(PropertyBinder.java:281) ~[na:na]
... 27 common frames omitted
Caused by: java.lang.NoSuchMethodException: org.hibernate.binder.internal.TenantIdBinder.<init>()
at [email protected]/java.lang.Class.checkMethod(DynamicHub.java:1038) ~[data-manager-backend:na]
at [email protected]/java.lang.Class.getConstructor0(DynamicHub.java:1204) ~[data-manager-backend:na]
at [email protected]/java.lang.Class.newInstance(DynamicHub.java:626) ~[data-manager-backend:na]
... 28 common frames omitted
System Info (please complete the following information):
OS: debian
GraalVM CE 17.0.8+7.1 (build 17.0.8+7-jvmci-23.0-b15)
Java Version 17
spring native compilation
The text was updated successfully, but these errors were encountered:
Describe the bug
When using hibernate @org.hibernate.annotations.TenantId annotation on JPA entities, native execution does not work anymore.
To Reproduce
Add some @org.hibernate.annotations.TenantId on a JPA entity property
Expected behavior
Keep org.hibernate.binder.internal.TenantIdBinder class
Logs
System Info (please complete the following information):
The text was updated successfully, but these errors were encountered: