Refine and optimize JPA/Hibernate support #144
Comments
Upvoting this. Im unable to compile https://github.com/Evolveum/midpoint project due to hibernate error. Using 0.8.0 spring-graalvm and java11-20.2.0/bin/native-image on Linux. Thanks. could not find target method: private void org.hibernate.jpa.boot.internal.Target_EntityManagerFactoryBuilderImpl.processHibernateConfigXmlResources(org.hibernate.boot.registry.StandardServiceRegistryBuilder,org.hibernate.jpa.boot.internal.Target_EntityManagerFactoryBuilderImpl$Target_MergedSettings,java.lang.String) |
@martin-lizner Could you please provide a minimal repro for the issue you mentioned? |
As discussed with @schauder I will focus on reviewing the substitutions and him on the hints. |
On Java 11 the footprint gains are negligible See gh-144
@martin-lizner My recent commit should fix your issue. |
Reduced registrations for reflection for: - Loggers - Tuplizer - Persister - Nodes - Eventlisteners - Dialects - IdGenerators Also grouped the native hints by type of class registered since similar classes often need similar treatment.
Reduced registrations for reflection for: - Loggers - Tuplizer - Persister - Nodes - Eventlisteners - Dialects - IdGenerators Also grouped the native hints by type of class registered since similar classes often need similar treatment.
hibernate-graalvm
is usable : my guess is that it is not because static config is not efficient enough in term of footprint but worth to check and we could maybe use its config to improve our compatibilityhibernate.bytecode.provider=none
automaticallyhibernate-enhance-maven-plugin
The text was updated successfully, but these errors were encountered: