Closed hantsy closed 3 months ago
/cc @gsmet (hibernate-orm), @yrodiere (hibernate-orm)
Hey,
Hibernate ORM 6.6.0.Alpha1/Jakarta Data 1.0 RC1
There is tight coupling between the Hibernate ORM extension in Quarkus and Hibernate ORM, which makes version overrides impossible without updating the Hibernate ORM extension in Quarkus.
I checked, and with your reproducer, the problem doesn't happen with Hibernate ORM 6.5.2 -- aka "the version of Hibernate ORM that Quarkus 3.11 is intended to work with".
My guess would be that some fixes in Hibernate ORM 6.5.1/6.5.2 are not part of Hibernate ORM 6.6 yet -- given it's only an Alpha1, and a lot of fixes have been merged since this alpha but haven't been released as part of the 6.6 stream yet.
I'll close this for now, feel free to reopen if the problem is still there with Hibernate ORM 6.6.0.Alpha2.
Describe the bug
I tried to experience the new Jakarta Data feature shipped with the latest Hibernate 6.
The example project is here: https://github.com/hantsy/quarkus-sandbox/tree/master/jakarta-data which uses the latest stack:
besides the basic db-kind settings, I have to configure hibernate dialect
quarkus.hibernate-orm.dialect=org.hibernate.dialect.PostgreSQLDialect
to make it work.Gavin King also confirmed this issue is introduced in the latest 3.11.0, https://hibernate.zulipchat.com/#narrow/stream/132096-hibernate-user/topic/SessionFacgory.20is.20null/near/441905256
Expected behavior
It should detect the dialect from db connection and
db-kind
settings as usinghibernate-orm-panache
module.Actual behavior
If without this dialect line in the
application.properties
.Run the application, it will throw exception like the following.
How to Reproduce?
quarkus.hibernate-orm.dialect=org.hibernate.dialect.PostgreSQLDialect
in the application.propertiesOutput of
uname -a
orver
Windows 10
Output of
java -version
21
Quarkus version or git rev
3.11.0
Build tool (ie. output of
mvnw --version
orgradlew --version
)3.9.7
Additional information
No response