Commit Graph

8506 Commits

Author SHA1 Message Date
Christian Beikov 45fc49314e HHH-10999 Add support for SQL array types mapped as Java arrays and collections 2022-05-30 19:52:39 +02:00
Karel Maesen 39d8fa0662
HHH-15294 cockroachdb fixes
* HHH-15294 Fix setting of untyped null values in CockroachDB dialect

Solution exactly same as in PostgresqlDialect

* HHH-15294 Change CockroachDB multitable mutation strategies to CTE

Align with the Postgresql strategy

* HHH-15294 Fix missing IdentityColumnSupport in CockroachDB Dialect

* HHH-15294 Skip test for CockRoachDB due to unsupported automatic type conversion

* HHH-15294 CockroachDB doesn't support value propagation
2022-05-27 16:22:06 +02:00
koisyu 3d893712e6 HHH-15300 - Lazy evaluation to statement.toString() when logging slow queries 2022-05-26 15:15:18 -05:00
Steve Ebersole 3635e4e935 build changes 2022-05-25 14:14:48 -05:00
Steve Ebersole 19f513dde2 HHH-15251 - Unified mapping XSD based on JPA 3.1
- more work on HbmXmlTransformer
2022-05-25 08:40:51 -05:00
Steve Ebersole 309edd9e32 HHH-15251 - Unified mapping XSD based on JPA 3.1
- more work on HbmXmlTransformer
2022-05-25 08:40:51 -05:00
Steve Ebersole d5a23a61ea HHH-14063 - AccessType is not correctly propagated for embeddable mappings in element-collection
- tests
2022-05-24 14:42:05 -05:00
Steve Ebersole 4ddf6e39b5 HHH-15251 - Unified mapping XSD based on JPA 3.1
- more work on HbmXmlTransformer
2022-05-24 12:08:22 -05:00
Andrea Boriero 8f5c7881ff HHH-15281 INSERTs/UPDATEs no longer executed as JDBC Batch statements if hibernate.temp.use_jdbc_metadata_defaults is set to false 2022-05-24 14:58:27 +01:00
Andrea Boriero 11b8352f13 HHH-15281 Add test for issue 2022-05-24 14:58:27 +01:00
Steve Ebersole 9a26f2503b HHH-15276 - Introduce ConverterRegistration 2022-05-23 13:08:45 -05:00
Steve Ebersole 571d46bef8 HHH-15276 - Introduce ConverterRegistration 2022-05-23 13:08:45 -05:00
Andrea Boriero 6409db767d HHH-15286 Query with a Composite Identifier (@IdClass) throws an exception 2022-05-23 15:05:39 +02:00
Andrea Boriero 00e8506a13 HHH-15286 Add test for issue 2022-05-23 15:05:39 +02:00
Christian Beikov cb93dc7876 HHH-15291 Fix translation issue with SqmCoalesce 2022-05-23 12:50:28 +02:00
Christian Beikov f2446e2ce5 Workaround XJC generation issue 2022-05-23 11:35:40 +02:00
Andrea Boriero 81d749e930 HHH-15279 NPE with Id on OneToOne referencing entity with multi-level EmbeddedId 2022-05-23 10:28:05 +02:00
Andrea Boriero 4066fe0445 HHH-15279 Add test for issue 2022-05-23 10:28:05 +02:00
Karel Maesen e05b99658f HHH-15293 BYTES column type in CockroachDB does not support a length specification 2022-05-23 10:19:42 +02:00
Nathan Xu 566a543d77 HHH-15292 escape html chars in JavaDoc 2022-05-23 10:15:04 +02:00
Andrea Boriero 5ba1193890 HHH-15283 - fix NPE for NamedNativeQuery + SqlResultSetMapping (columns) 2022-05-23 09:39:57 +02:00
Nathan Xu 583a36902c HHH-15283 - fix NPE for NamedNativeQuery + SqlResultSetMapping (columns) 2022-05-23 09:39:57 +02:00
Andrea Boriero e0f1a2ee13 HHH-15258 Fix test failure for HANA db 2022-05-23 09:36:10 +02:00
Steve Ebersole 26dbafb2b3 HHH-15251 - Unified mapping XSD based on JPA 3.1;
- `mapping-3.1.0.xsd`
   - JAXB model for `mapping-3.1.0.xsd`
   - Overriding caching (region, usage, include) via partial mapping document
   - Initial hbm.xml -> mapping.xml transformation support
   - Gradle task for performing transformations
2022-05-20 06:46:44 -05:00
Andrea Boriero b88094e70a HHH-15285 Calling getJavaType() of @ElementCollection with basic types returns wrong type 2022-05-19 18:47:54 +02:00
Andrea Boriero 192b591c51 HHH-15285 Add test for issue 2022-05-19 18:47:54 +02:00
Andrea Boriero 2af19a6278 HHH-15258 Orphan removal for OneToMany relations is broken when used with GenerationType.IDENTITY 2022-05-19 13:07:35 +02:00
Nathan Xu 1a94bcc4a2 HHH-15258 Add test for issue 2022-05-19 13:07:35 +02:00
Andrea Boriero e29884b764 HHH-15260 Criteria query is unable to determine TableReference when combining subquery with join 2022-05-19 12:18:58 +02:00
Thomas Heigl f0cb0e8f78 HHH-15260 Add test for issue 2022-05-19 12:18:58 +02:00
Andrea Boriero 298623d2cc MysqlDialect register localtimeLocaltimestamp functions 2022-05-19 10:46:13 +02:00
Andrea Boriero 1ae61b3388 HHH-15278 NPE when NULL is used in the projection 2022-05-19 10:46:13 +02:00
Andrea Boriero 3251d5e9d0 HHH-15278 Add test for issue 2022-05-19 10:46:13 +02:00
Nathan Xu e87ad39dd6 HHH-15153 - @OneToOne does not support @EmbeddedId 2022-05-18 15:50:11 +02:00
Andrea Boriero 61586d9559 HHH-15256 HQL Query with left join throws NPE when using :param IS NULL 2022-05-16 15:18:27 +02:00
Andrea Boriero 747777167c HHH-15256 Add test for issue 2022-05-16 15:18:27 +02:00
Nathan Xu 5d6e9a1fdb HHH-15255 fix org.hibernate.orm.test.batch.BatchTest 2022-05-16 12:52:57 +02:00
Sven Strickroth d03588fd29 [HHH-15259] Explicitly add JavaDoc to make @deprecated hint visible in Eclipse
Signed-off-by: Sven Strickroth <email@cs-ware.de>
2022-05-16 12:51:35 +02:00
Andrea Boriero 22074e3dcb HHH-15269 Update NativeQuery unable to use h-schema placeholder, just emits placeholder contents into SQL 2022-05-16 11:03:31 +02:00
Andrea Boriero bd27a70685 HHH-15269 Add test for issue 2022-05-16 11:03:31 +02:00
Francesco Marino b37168a0ff HHH-15134 Update a bytecode enanchhed Entity with a Version attribute causes OptimisticLockException 2022-05-14 23:19:03 +01:00
Sanne Grinovero f2ac89a484 HHH-15274 Field LazyAttributeLoadingInterceptor#lazyFields can never be null 2022-05-14 19:06:35 +01:00
Sanne Grinovero 8e78a61bcc HHH-15274 Optimise LazyAttributeLoadingInterceptor's routines to identify lazy fields 2022-05-14 19:06:35 +01:00
Nathan Xu 3630fbad9b HHH-15263 - @NamedQuery is not supported with UPDATE statement 2022-05-13 14:21:57 +02:00
Christian Beikov 9d35e3dd18 HHH-15267 Make ParameterBindingsMemento extend Serializable so that cache keys can be serialized 2022-05-13 13:40:04 +02:00
Christian Beikov 9351bcf30d HHH-15266 Fix NPE during function logging due to wrong character_length alternative key registration 2022-05-13 13:35:22 +02:00
Yoann Rodière 967ede47c0 HHH-15265 Take default catalog/schema into account when generating DDL comments 2022-05-13 13:26:47 +02:00
Yoann Rodière de4439ca0c HHH-15265 Test that default catalog/schema are taken into account in generated DDL comments 2022-05-13 13:26:47 +02:00
Yoann Rodière 3aada57305 HHH-15270 Fix inconsistent precedence of orm.xml implicit catalog over "default_catalog" in XML-mapped entities 2022-05-13 13:26:47 +02:00
Yoann Rodière 141ad167ee HHH-15270 Test default catalog/schema with hbm.xml/orm.xml mapping when catalog/schema not specified at file level 2022-05-13 13:26:47 +02:00
Steve Ebersole 49734095da Javadoc 2022-05-11 16:00:20 -05:00
Andrea Boriero 29848043b6 HHH-15229 Query returns null for broken foreign key reference and NotFoundAction.EXCEPTION 2022-05-05 16:28:32 +02:00
Andrea Boriero 0ce120a344 HHH-15229 Add test for issue 2022-05-05 16:28:32 +02:00
Ptits de Barbe 19f6959519 HHH-4384 Allow join column override if @JoinColumn is absent on @OneToOne(mappedBy = "").
Tests: this case and disallow if mappedBy > "".
2022-05-05 16:03:11 +02:00
Nathan Xu d998d6fb48 HHH-15241 fix broken references in javadoc 2022-05-05 16:01:55 +02:00
Nathan Xu 691ee7bf5d HHH-15246 fix NPE when null value is set to Enum in query 2022-05-05 13:42:51 +02:00
Christian Beikov a961ba45ac Add documentation for CompositeUserType 2022-05-05 09:18:19 +02:00
Christian Beikov c18e611ed6 HHH-15200 Add support for the SQLXML type 2022-05-05 09:07:37 +02:00
Christian Beikov 51c40cd6a1 HHH-15165 Add support for SQL geography type 2022-05-04 16:55:15 +02:00
Nathan Xu 64c39691ff HHH-15211 fix embeddable basic attribute converter hash code bug 2022-05-04 10:12:40 +02:00
Nathan Xu 1946aea068 HHH-15211 add testing case 2022-05-04 10:12:40 +02:00
Andrea Boriero 6a778a321a HHH-15240 Defining a UserVersionType causes AssertionError from VersionResolution if running in JVM with -ea flag set 2022-05-04 09:09:04 +02:00
Andrea Boriero 6b02554c82 HHH-15240 Add test for issue 2022-05-04 09:09:04 +02:00
Andrea Boriero 5f0c215d6d HHH-14843 Add test for issue 2022-05-03 09:56:48 +02:00
Nathan Xu b469c73d1e HHH-15232 fix a bug when empty entity collection is provided for a query parameter 2022-05-02 10:13:15 +02:00
Steve Ebersole e2258b3232 HHH-15150 - EmbeddedId CacheKeys are no longer Serializable 2022-04-29 15:16:50 -05:00
Andrea Boriero 6c5870ee0b HHH-15150 EmbeddedId CacheKeys are no longer Serializable 2022-04-29 15:16:50 -05:00
William Burns 1194e7f23b HHH-15150 Add test for issue 2022-04-29 15:16:50 -05:00
Andrea Boriero 5d0fc0f488 HHH-15233 Query NPE when using ':param IS NULL' and the parameter is an Entity 2022-04-29 13:50:08 -05:00
Andrea Boriero d4f03109c8 HHH-15233 Add test for issue 2022-04-29 13:50:08 -05:00
Steve Ebersole 5c12f7a951 HHH-15201 - Composite ID with dynamic-map entities fails with an exception 2022-04-29 13:39:49 -05:00
Andrea Boriero aa6bb1481c HHH-15201 Composite ID with dynamic-map entities fails with an exception 2022-04-29 17:48:53 +02:00
Andrea Boriero 03410ac24e HHH-15201 Add test for issue 2022-04-29 17:47:26 +02:00
Nathan Xu a2e39a1757 HHH-15220 Fix typos 2022-04-29 13:49:08 +01:00
Nathan Xu 502c6610e2 HHH-15221 Fix a logging error in JdbcValuesCacheHit.java 2022-04-29 12:26:40 +01:00
Yoann Rodière a057a045d4 HHH-15212 Test placeholders in auxiliary object SQL strings 2022-04-28 08:46:54 +02:00
Yoann Rodière d28e300013 HHH-15212 Fix SimpleAuxiliaryDatabaseObject ignoring the default catalog/schema set through configuration properties 2022-04-28 08:46:54 +02:00
Steve Ebersole 9e9a8135dc HHH-15206 - Upgrade to ANTLR 4.10 2022-04-27 06:44:57 -05:00
Steve Ebersole 69e57404c6 HHH-15226 - Publish a Gradle platform (Maven Bom++) for Hibernate ORM
- plus use Gradle version catalogs as opposed to `libraries.gradle`
- dropped OSGi manifest entries for hibernate-envers - they were broken and we decided we no longer support OSGi
2022-04-26 14:41:04 -05:00
Andrea Boriero 5b85321bb9 HHH-15225 Jta transactions, name queries with errors throw IllegalStateException instead of IllegalArgumentException when transaction is not active 2022-04-26 14:57:48 +02:00
Andrea Boriero ae51ae9c31 HHH-15225 Add test for issue 2022-04-26 14:57:48 +02:00
Andrea Boriero 0592e1be77 HHH-15142 add test for issue 2022-04-26 14:00:52 +02:00
Andrea Boriero c58cd979d1 HHH-15223 Embeddables in the Query Result, the embeddable instance returned by the query will not be in the managed state 2022-04-26 10:56:59 +02:00
Andrea Boriero c0df74f0f3 HHH-15223 Add test for issue 2022-04-26 10:56:59 +02:00
Loïc LEFEVRE d83128ee85 HHH-15210 Increase Oracle Dialect MaxIdentifierLength to 128 for 12.2+ 2022-04-25 09:58:14 +02:00
Sanne Grinovero 46b3c10d8f HHH-15219 Re-introduce the ability to stop and then reactivate a ServiceRegistry 2022-04-23 22:18:46 +01:00
Sanne Grinovero 8dcbed8d45 HHH-15222 Introduce a SessionLazyDelegator SPI 2022-04-23 22:17:37 +01:00
Yoann Rodière f904cb343b HHH-15141 Test bytecode enhancement on cross-package inheritance tree with protected @Embedded field 2022-04-13 09:35:10 +01:00
Sanne Grinovero 432b393042 HHH-15204 Remove dependency to jakarta.activation:jakarta.activation-api 2022-04-13 07:14:52 +01:00
Andrea Boriero 43f310da92 HHH-15167 IllegalArgumentException occurred while calling setter for property 2022-04-12 11:28:08 +02:00
Christian Beikov e5f28ae17a HHH-15202 Only create SubselectFetch if entity contains subselect fetch config 2022-04-11 14:32:20 +02:00
Andrea Boriero 4423962cea HHH-15167 Add additional test 2022-04-11 09:11:46 +02:00
Andrea Boriero 0ed6f8f979 HHH-15167 IllegalArgumentException occurred while calling setter for property 2022-04-11 09:11:46 +02:00
Andrea Boriero d43c784af1 HHH-15167 Add test for issue 2022-04-11 09:11:46 +02:00
Andrea Boriero aca41278a2 Add test for issue 2022-04-11 09:11:46 +02:00
Christian Beikov dc42ec38ed HHH-15189 Print deprecation warning for lock timeout only when a value is passed 2022-04-08 10:21:22 +02:00
Andrea Boriero 25f282eb6e HHH-14819 Add test for issue 2022-04-08 09:24:09 +02:00
Christian Beikov 776bc1d0aa HHH-15174 Move annotation handling code to common method for element collection and basic values 2022-04-07 21:03:20 +02:00
Sanne Grinovero 6815c2aa7c HHH-15184 Improve efficiency of Component#getColumns() 2022-04-06 18:49:36 +01:00
Sanne Grinovero 25aec8d1b7 HHH-15184 Improve efficiency of Component#getSelectables() 2022-04-06 18:49:36 +01:00
Christian Beikov cf152d57b1 HHH-15168 Fix NPE in NativeQueryImpl.ParameterInterpretationImpl#toString 2022-04-05 12:03:55 +02:00
Christian Beikov 6f0ec52e81 HHH-15162 Add STRING_OR_CLOB FunctionParameterType and use that for various length functions 2022-04-05 11:55:50 +02:00
Christian Beikov 6a7bec612f HHH-15161 Infer parameter types in insert-select and avoid rendering cast in simple insert-select 2022-04-04 15:41:28 +02:00
Christian Beikov 956ec30de5 HHH-15157 Add HQL query to NoResultException 2022-04-04 13:07:44 +02:00
Christian Beikov f03254347a Drop LocalDateCustomSessionLevelTimeZoneTest because it's a driver issue 2022-04-01 13:15:48 +02:00
Christian Beikov fa7cb3f0e9 Fix issues with respecting padding and limit for in list rendering 2022-03-31 18:01:46 +02:00
Steve Ebersole ad828a0a4a release announcement, doc artifacts 2022-03-31 11:01:06 -05:00
Steve Ebersole 8d20c033b1 Address test failures in Gradle plugin module
- I was not able to figure this out, so simply disabled the TestKit related tests
- unfortunately, this means we have no automated functional testing of the plugin in the build
2022-03-31 07:49:28 -05:00
Andrea Boriero 3358157d19 HHH-15078 - Support for Tuple and SelectionQuery 2022-03-31 07:49:14 -05:00
Steve Ebersole aa0c57aa5c HHH-15078 - Support for Tuple and SelectionQuery 2022-03-30 14:20:44 -05:00
Steve Ebersole 5b0c49e6a2 HHH-15133 - Use specified result-type to better infer "shape" of query results with implicit selections
Alternate solution for de-duplication handling
2022-03-30 13:34:18 -05:00
Steve Ebersole c033b9aa5f HHH-15133 - Use specified result-type to better infer "shape" of query results with implicit selections 2022-03-30 13:34:18 -05:00
Steve Ebersole bec32ebbc4 HHH-15133 - Use specified result-type to better infer "shape" of query results with implicit selections 2022-03-30 13:34:18 -05:00
Steve Ebersole cac18ae0c7 HHH-15133 - Use specified result-type to better infer "shape" of query results with implicit selections 2022-03-30 13:34:18 -05:00
Christian Beikov 4334b46376 Update the bulk section of the batching documentation chapter for the new mutation strategies. Also implement the missing InlineUpdateHandler 2022-03-30 18:21:27 +02:00
Christian Beikov 111fe26ccc Fix some issues in the legacy type resolution documentation and raw types issues for UserType 2022-03-30 18:21:27 +02:00
Andrea Boriero 63ba1787d0 Legacy generator strategy increment size 2022-03-30 15:58:00 +02:00
Gavin King 7d9eada83e roll back breakage to DurationJavaType
see the comment in the code
2022-03-30 09:52:13 +02:00
Steve Ebersole 6d55b9b2a4 mark some incubations 2022-03-29 22:03:20 -05:00
Steve Ebersole e433f32fc6 HHH-15143 - Add an "implicit naming strategy" for database structures (sequence and tables) for identifier generators
- clean up, javadoc, migration-guide
2022-03-29 20:59:21 -05:00
Steve Ebersole 56ba690366 HHH-15143 - Add an "implicit naming strategy" for database structures (sequence and tables) for identifier generators 2022-03-29 20:59:21 -05:00
Andrea Boriero 2709bc70b0 HHH-15143 - Add an "implicit naming strategy" for database structures (sequence and tables) for identifier generators 2022-03-29 20:59:21 -05:00
Steve Ebersole 33e2faced2 HHH-15143 - Add an "implicit naming strategy" for database structures (sequence and tables) for identifier generators
HHH-15144 - Add IncubationLogger
2022-03-29 20:59:21 -05:00
Christian Beikov 117e62195a Allow configuring the preferred JDBC type for Instant 2022-03-29 19:31:53 +02:00
Christian Beikov a9d1035806 Do some renaming for consistency and update documentation for new SQL types 2022-03-29 19:31:53 +02:00
Steve Ebersole 814c164c81 HHH-14672 - Allow specifying CHAR-based storage for UUID mappings 2022-03-29 16:53:35 +02:00
Christian Beikov 21a343fc60 Fix HQL update issues with composite id fk associations as fix some raw types issue 2022-03-29 16:07:24 +02:00
Christian Beikov 063a13c8a3 Get rid of some NotYetImplementedFor6Exception uses 2022-03-29 14:03:49 +02:00
Christian Beikov 13460034fd Add a migration guide section, replace static executor uses and remove obsolete todos 2022-03-29 14:03:49 +02:00
Christian Beikov bbe8783887 Further improvements 2022-03-26 01:56:33 +01:00
Christian Beikov 352970604d Render select item aliases for sub queries in from clause to avoid possible alias collision 2022-03-26 01:56:33 +01:00
Christian Beikov 23098ca254 Disable select item deduplication for query groups and deduplicate within a fetch parent 2022-03-26 01:56:33 +01:00
Christian Beikov b4a1b149fb Add support for specifying the SqlTypes field name when a type code is expected 2022-03-26 00:02:18 +01:00
Christian Beikov e1742ac3ac Update H2 to 2.1.210 and HSQLDB to 2.6.1 2022-03-25 21:59:23 +01:00
Christian Beikov b737231416 Make sure Hibernate works with the Jakarta Persistence 3.1 API 2022-03-25 21:24:13 +01:00
Christian Beikov 6b8fdf3b70 Model timestampdiff with interval as result with null duration unit 2022-03-25 21:13:14 +01:00
Christian Beikov de21820f84 HHH-13135 Use FOR NO KEY UPDATE when locking in PostgreSQL 2022-03-25 20:53:25 +01:00
Christian Beikov f048ea8205 Introduce a special TimeZoneStorageType#NORMALIZE_UTC variant 2022-03-25 20:53:05 +01:00
Christian Beikov f2aa533dfc Switch back to numeric(21) with nanosecond resolution as fallback for mapping Duration to retain backwards compatibility 2022-03-25 20:20:28 +01:00
Christian Beikov 6801ff0f26 Introduce option to configure how to store java.time.Duration 2022-03-25 20:20:28 +01:00
Christian Beikov 7020a1a563 Make sure timestampdiff returns a double for the SECOND unit as per JPA 3.1 2022-03-25 20:20:28 +01:00
Christian Beikov 5a2f92588c Do not reuse join that is treat joined 2022-03-25 15:27:14 +01:00
Andrea Boriero 99ed18c228 Add additional tests 2022-03-25 13:46:12 +01:00
Andrea Boriero 1a1a6c22f1 Fix @ForeignKeyey(ConstraintMode.NO_CONSTRAINT) throwing EntityNotFoundException 2022-03-25 13:46:12 +01:00
Steve Ebersole 33a7133695 HHH-15139 - Improvements for QueryInterpretationCache
- improvements to SqmInterpretationsKey
- improvements to AbstractFetchParent
2022-03-25 07:16:33 -05:00
Christian Beikov 6fd8034ec5 Use string based storage as fallback for JSON 2022-03-24 21:29:37 +01:00
Christian Beikov ad806ffc83 Fix compile error 2022-03-24 21:23:00 +01:00
Christian Beikov ce298a1566 Make use of type variable for a few CompositeUserType methods 2022-03-24 09:29:45 +01:00
Sanne Grinovero bee5bae7b6 HHH-15138 Further simplify BoundedConcurrentHashMap by removing support for NONE eviction 2022-03-23 18:22:42 +00:00
Sanne Grinovero 04bfdd49ab HHH-15138 Style and formatting fixes in BoundedConcurrentHashMap 2022-03-23 18:22:42 +00:00