Commit Graph

6040 Commits

Author SHA1 Message Date
Christian Beikov cf1853a4a0 HHH-15041 H2Dialect does not work properly with h2 2.0.202 due to new DDL type requirements 2022-01-25 15:35:48 +00:00
Christian Beikov 0fc59729da Get rid of the MVCC connection option for H2 2022-01-25 15:35:48 +00:00
Christian Beikov 2f17b1a951 HHH-14985 H2Dialect does not work properly with h2 2.0.202 on inserts 2022-01-25 15:35:48 +00:00
Christian Beikov 48c54bc827 Adapt tests and skips for H2 2.0.202+ 2022-01-25 15:35:48 +00:00
Christian Beikov f4cfda2b73 HHH-15009 Allow augmenting supported physical table types through dialect for H2 2.0.202+ support 2022-01-25 15:35:48 +00:00
Christian Beikov 7a46be6572 HHH-15014 Fix subquery tuple rendering for H2 2.0.202+ 2022-01-25 15:35:48 +00:00
Christian Beikov 60148a78cf Get rid of column names that are problematic on H2 2.0.202+ 2022-01-25 15:35:48 +00:00
Andrea Boriero 729268433e HHH-15044 Revert HHH-14826 fix because the provided test was wrong 2022-01-20 13:22:02 +01:00
Yoann Rodière bc3efea6fb HHH-15036 Disable DefaultCatalogAndSchemaTest when testing against MariaDB < 10.3 2022-01-18 16:38:46 +01:00
Yoann Rodière 34278588ec HHH-15022 Revert to the legacy behavior of not qualifying temporary ID tables with the default catalog/schema 2022-01-18 15:14:41 +01:00
Yoann Rodière 9dea484927 HHH-15022 Test deleting all entities of a given type in a table-per-class hierarchy with a default schema 2022-01-18 15:14:41 +01:00
Christian Beikov ca2b8cb2f3 HHH-15032 Fix backwards incompatible SPI change that happened in 5.6.2 due to introducing SqlStringGenerationContext 2022-01-17 18:05:21 +01:00
Sanne Grinovero 30b0ad267e HHH-15033 Restrict JNDI lookups to "java" scheme 2022-01-16 22:04:51 +00:00
Sanne Grinovero 157716095a HHH-15002 Add integration test for the H2 Dialect change 2022-01-16 20:33:21 +00:00
Sanne Grinovero 7c67cf72d1 HHH-15018 OracleTypesHelper shouldn't log stacktraces when the Oracle JDBC driver isn't loadable 2022-01-10 17:08:29 +00:00
Filipe Roque 11552b3e93 HHH-15002 H2 supports 'true' and 'false' boolean literals
Cherry picked from 1706141ffc
2022-01-05 12:38:38 +01:00
Sanne Grinovero 8d1027f967 HHH-14935 Revert deprecation of org.hibernate.annotations.Type, TypeDef and TypeDefs 2021-12-15 20:33:38 +00:00
Ivaylo Mitrev fc957ec91e HHH-14948 - Reduce the size of the imports cache in the metamodel
We have agreed to mitigate a memory issue by introducing a hard-coded
(for the time being) cap on the imports cache in MetamodelImpl. This
would preserve the previously available performance improvement for
the majority of applications using Hibernate (which are expected to have
less than 1000 imports) while mitigating an unbounded memory consumption
issue for applications that exceed this limit when dynamically
generating queries with random entity aliases.

The commit also adds a not-so-beautiful test, which, however, is
beneficial considering the consequences of introduing a regression.
2021-12-09 15:13:21 +00:00
Yoann Rodière 67e09b1290 HHH-14922 Give precedence to default catalog/schema over implicit catalog/schema 2021-12-07 08:25:03 +01:00
Yoann Rodière 795d5cd4e9 HHH-14922 Delay applying the implicit catalog/schema until schema management tool or session factory creation
This is necessary if we want the default catalog/schema to take
precedence, since the default catalog/schema is applied late,
on schema management tool or session factory creation.
2021-12-07 08:25:03 +01:00
Yoann Rodière 9b47fcdfa8 HHH-14922 Test behavior when setting both implicit catalog/schema and default catalog/schema 2021-12-07 08:25:03 +01:00
Yoann Rodière 3071f58c21 HHH-14921 Test handling of default catalog and schema when not configured during metadata creation 2021-12-07 08:25:03 +01:00
Yoann Rodière 1ee0e2e338 HHH-14921 Test handling of default catalog and schema 2021-12-07 08:25:03 +01:00
Yoann Rodière a9f1ada94d HHH-14921 Delay determination of the default catalog/schema until schema management tool or session factory creation 2021-12-07 08:25:03 +01:00
Yoann Rodière 36b001221b HHH-14921 Always use SqlStringGenerationContext for generation of SQL strings involving table/sequence names 2021-12-07 08:25:03 +01:00
Yoann Rodière 5b83edfd49 HHH-14921 Delay generation of SQL strings by identifier generators until schema export or session factory creation 2021-12-07 08:25:03 +01:00
Yoann Rodière 9a14200ca2 HHH-14921 Remove unused method PersistentIdentifierGenerator#generatorKey 2021-12-07 08:25:03 +01:00
Yoann Rodière 0bd228a640 HHH-14921 Remove a few unused SQL generation methods in identifier generators
They are getting in the way of changes related to the default schema
2021-12-07 08:25:03 +01:00
Yoann Rodière af5afa988d HHH-14921 Clarify that org.hibernate.mapping.AuxiliaryDatabaseObject has been replaced with org.hibernate.boot.model.relational.AuxiliaryDatabaseObject 2021-12-07 08:25:03 +01:00
Yoann Rodière 9d3b3d1c8a HHH-14921 Clarify the ability of IdentifierGenerator to be configured and to register exportables 2021-12-07 08:25:03 +01:00
Christian Beikov 49d2fccbcb Fixup code formatting 2021-12-06 20:30:06 +01:00
jaehun.lee 696db95416 polishing 2021-12-06 20:30:06 +01:00
Christian Beikov 77776a6af1 HHH-14211 Switch to using oid for CLOB in PostgreSQL to avoid losing data after vacuumlo 2021-12-06 20:17:43 +01:00
Christian Beikov 2d871d64f2 HHH-14897 Allow ordering with nulls first/last in JPA Criteria 2021-12-06 16:49:20 +01:00
Jan Schatteman 69cd716e37
Revert deprecations on main (#4412)
* Revert "HHH-14857 - Deprecations in preparation for 6"

This reverts commit 91e29358be.

* Revert "HHH-14857 - Deprecations in preparation for 6"

This reverts commit e4b56b9271.
2021-12-02 22:06:01 +01:00
Marius Klein f604e8fa33 HHH-14937 SybaseASE15 supports schemas and catalogs 2021-11-23 11:28:01 +01:00
Sanne Grinovero 1dc49271c1 HHH-14540 Maintain strict API backwards compatibility 2021-11-16 15:32:05 +00:00
Chris Cranford e155fc551e HHH-14540 Don't share session-scoped interceptors with temp session 2021-11-16 15:27:51 +00:00
Ratul sharker b125d13ede HHH-14916 : test case written. 2021-11-15 13:43:37 +01:00
Ratul sharker 1a641695fa HHH-14916 : inside `renderFetches`, `renderJoins` called if the `fetch` is `instanceof` `Form` interface. 2021-11-15 13:43:37 +01:00
Yoann Rodière 2e1f7b5d89 HHH-14918 Test entity with composite ID containing an association to another entity which itself has a composite ID containing an association to another entity 2021-11-08 16:52:09 +01:00
Yoann Rodière ccd58ee499 HHH-14918 Always process components containing an ID copy as we would any other FK 2021-11-08 16:52:09 +01:00
Sanne Grinovero 6c53a9d1ab HHH-14903 The new getConfiguredJdbcBatchSize method optimisation should apply to StatelessSession as well 2021-11-01 10:28:11 +00:00
Sanne Grinovero a2cbe10e07 HHH-14901 Refactor shared code into a single reused method 2021-10-27 11:58:10 +01:00
Sanne Grinovero cc7498cf3c HHH-14901 Introduce a new BatchBuilder implementation, suitable for immutable code deployments 2021-10-27 11:58:10 +01:00
Sanne Grinovero 7f71dca1ae HHH-14899 StaleObjectStateExceptionHandlingTest should expect a StaleStateException 2021-10-26 16:34:24 +01:00
Sanne Grinovero 634c257d93 HHH-14899 Rename test class to fix typo: StateObjectStateExceptionHandlingTest to StaleObjectStateExceptionHandlingTest 2021-10-26 16:34:24 +01:00
Sanne Grinovero 7ff73d178f HHH-14899 Inconsistent default value for STATEMENT_BATCH_SIZE 2021-10-26 16:34:24 +01:00
Sanne Grinovero 959dfea66f HHH-14899 Have SessionImpl override the default method getConfiguredJdbcBatchSize 2021-10-26 16:34:24 +01:00
Sanne Grinovero 5ad60c4b61 HHH-14900 No need in tests to shadow the jdbcBatchSize field of BatchBuilderImpl extensions 2021-10-26 16:34:24 +01:00