-
Type:
Task
-
Resolution: Done
-
Priority:
Minor - P4
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
-
None
We need to implement this method for at least two reasons:
- remove the default MongoDialect constructor, and expose only MongoDialect(DialectResolutionInfo), as supposed to be done according to the Hibernate ORM documentation (see https://github.com/mongodb/mongo-hibernate/pull/8#discussion_r1838874171);
- Hibernate ORM can get MongoDB version info and conduct version checking (throwing exception if version < v6)
- avoid the warning level exception during JDBC service initialization as below:
```
15:45:19 [Test worker] WARN o.h.e.j.e.i.JdbcEnvironmentInitiator - HHH000342: Could not obtain connection to query metadata
org.hibernate.HibernateException: error performing isolated work
at org.hibernate.resource.transaction.backend.jdbc.internal.JdbcIsolationDelegate.delegateWork(JdbcIsolationDelegate.java:95)
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.getJdbcEnvironmentUsingJdbcMetadata(JdbcEnvironmentInitiator.j
```
We don't need to return all metadata for a good portion of them is SQL specific. The goal here is to get DB version and unblock JDBC service initialization (without throwing a warning level exception).
- depends on
-
HIBERNATE-29 implement java.sql.Connection
-
- Closed
-
- related to
-
HIBERNATE-38 Design, implement and document how an application can configure the product
-
- Closed
-