Commit Graph

1532 Commits

Author SHA1 Message Date
Christian Beikov 4b48dd31f6 Get rid of MVCC JDBC connection parameter 2022-03-24 09:15:11 +01:00
CHAPEL Guillaume c57d394445 HHH-15118 Fix duplicate ids with PooledOptimizer when sequence value is initialValue 2022-03-18 10:27:06 +01:00
Steve Ebersole 6ab1cd3434 fix problem with release.gradle 2022-03-16 11:36:11 -05:00
Steve Ebersole f82d381fe3 Gradle build clean-ups
- re-organize release task definitions to avoid use of subproject iteration
2022-03-15 12:15:56 -05:00
Steve Ebersole 741b6b71f1 logging report 2022-03-11 14:45:43 -06:00
Steve Ebersole 7a1d6f13dd doc fix-ups 2022-03-09 13:45:11 -06:00
Steve Ebersole e16fbb6c31 report-tasks 2022-03-09 12:28:13 -06:00
Steve Ebersole 415b28f116 HHH-15114 - Clean up deprecations 2022-03-08 20:24:14 -06:00
Steve Ebersole b8c416744d not-found and fk() docs 2022-03-08 18:11:07 -06:00
Christian Beikov af9edd50d6 Add SqlTypes.TIMESTAMP_UTC to as jdbc type for java.time.Instant 2022-03-08 23:05:09 +01:00
Christian Beikov 964e72f536 Implement support for TimeZoneStorageType.COLUMN 2022-03-08 23:05:09 +01:00
Christian Beikov 2c80250b0e Replace typeNames in Dialect with SqlType and SqlTypeRegistry that dialects contribute into 2022-03-08 21:59:49 +01:00
Steve Ebersole ac4a792f84 render migration guide using asciidoctor and publish with docs 2022-03-08 11:26:55 -06:00
Steve Ebersole d52ebfb41d HHH-15099 - Improve handling of associations marked with @NotFound
- Keep track of NotFoundAction into mapping model
- Fix tests with erroneous assertions about `@NotFound` associations allowed to be lazy
2022-03-05 08:59:31 -06:00
Christian Beikov bdf8b2fc2e Fully generify and simplify UserType contract 2022-03-04 11:14:17 +01:00
Christian Beikov 8183901cfe Add documentation notes about LIST semantics for mappedBy mappings 2022-03-02 17:02:53 +01:00
Christian Beikov 7aaeebe3af Switch back to bag by default for list semantics 2022-03-02 17:02:53 +01:00
Christian Beikov 8e6fb5636b Adapt EmbeddableInstantiator and CompositeUserType to accept a ValueAccess instead of a Supplier 2022-02-25 19:15:38 +01:00
Christian Beikov c520b48487 Implement support for CompositeUserType and re-enable tests that make use of it 2022-02-25 15:36:16 +01:00
Andrea Boriero dc3b3db512 Re-enable additional tests 2022-02-15 17:45:39 +01:00
Christian Beikov 5bfbc466eb Rename JPA copy compliance setting to `hibernate.criteria.copy_tree` 2022-02-10 18:24:23 +01:00
Gavin King 4d024fde8b update documentation to explain implicit collection joins 2022-02-09 22:05:21 +01:00
Gavin King 9ebac67737 change the new syntax for HQL collection-aggregates
this feels more consistent to me, and avoids introducing "new" syntax
2022-02-09 22:05:21 +01:00
Gavin King 65e282766c test showing 'join treat' broken for @OneToMany 2022-02-08 12:23:43 +01:00
Gavin King a25758f519 don't write @SuppressWarnings({ "unchecked" }) 2022-02-05 20:03:50 +01:00
Steve Ebersole 86cdf67016 HHH-15055 - Document SelectionQuery and MutationQuery 2022-02-05 10:50:13 -06:00
Gavin King 798f9b0518 disable test on Sybase
oops, I missed that this failed in CI!
2022-02-02 20:41:52 +01:00
Gavin King f9392406b7 mention ordered set functions in documentation 2022-02-02 20:00:58 +01:00
Jan Schatteman d2b740ce5b
Jrenaat 6.0 deprecation removals (#4718)
* Removed deprecated org.hibernate.boot.jaxb.internal.stax.LocalSchema

Signed-off-by: Jan Schatteman <jschatte@redhat.com>

* Remove some deprecations from org.hibernate.engine.jdbc

Signed-off-by: Jan Schatteman <jschatte@redhat.com>

* Remove deprecated misspelled method in PostActionEventListener

Signed-off-by: Jan Schatteman <jschatte@redhat.com>

* Remove deprecated getSource() from AbstractPreDatabaseOperationEvent

Signed-off-by: Jan Schatteman <jschatte@redhat.com>

* Privatize deprecated buildOptimizer method in OptimizerFactory

Signed-off-by: Jan Schatteman <jschatte@redhat.com>

* Remove deprecated ServiceContributingIntegrator

Signed-off-by: Jan Schatteman <jschatte@redhat.com>

* Remove some more deprecated features

Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-01-31 19:14:48 +01:00
Christian Beikov 0ad5796ffd Implement SQM copying for JPA Criteria API uses 2022-01-31 19:04:37 +01:00
Gavin King ef391bf644 get rid of warnings about use of deprecated PersisterCreationContext 2022-01-31 14:10:04 +01:00
Gavin King 6f3592ac25 Streams are no longer closed by terminal operations
This is no longer true, according to H6 migration guide, so undocument it
2022-01-30 18:35:08 +01:00
Gavin King 99e43537c1 fix a couple of minor errors in doc 2022-01-30 06:21:53 +01:00
Gavin King 1188c6e628 Use a table instead of a list 2022-01-29 20:01:20 +01:00
Gavin King b2a929a46e fix quoting 2022-01-29 19:42:59 +01:00
Gavin King 475d028981 remove @TimeZoneColumn for now because it's unimplemented
and there's no plan to implement it for 6.0

(we can put it back later if someone gets around to implementing it)
2022-01-28 16:01:58 +01:00
Gavin King e80892b77f fix typo 2022-01-27 20:31:05 +01:00
Steve Ebersole 5436f441ae move remaining tests from o.h.test to o.h.orm.test 2022-01-26 17:06:53 -06:00
Steve Ebersole 7b00d3ce78 Migrate internal uses of `MetamodelImplementor` (deprecated) to instead use `MappingMetamodel` 2022-01-25 20:22:29 -06:00
Gavin King e51c210d78 squash lots of warnings in services
change the raw Map representation of config properties to Map<String,Object>
2022-01-25 21:04:50 +01:00
Steve Ebersole 3f879dc3db User Guide - collection mapping docs 2022-01-24 19:52:41 -06:00
Steve Ebersole a332d9191e Work on the User Guide section on @NotFound 2022-01-24 13:28:07 -06:00
Steve Ebersole d6c4f90f4c Change `@ParamDef#type` associated with a `@FilterDef` from `String` to `Class` in keeping with the general move away from String-based type usage in annotations 2022-01-24 08:27:11 -06:00
Gavin King 766483e46d remove hibernate.query.omit_join_of_superclass_tables 2022-01-22 20:01:17 +01:00
Steve Ebersole 8cda382ef9 api, spi, internal, deprecation
org.hibernate.query package
2022-01-21 13:34:06 -06:00
Gavin King 2df71bb7ab remove some more deprecated stuff from Environment
and refresh its Javadoc
2022-01-21 16:52:09 +01:00
Gavin King 329b2fc9c4 remove hibernate.jdbc.use_streams_for_binary config property
this should be handled by the Dialects
2022-01-21 16:52:09 +01:00
Steve Ebersole 5761e7801b api, spi, internal, deprecation
org.hibernate.jpa
2022-01-20 22:19:13 -06:00
Gavin King d385cc8825 remove hibernate.query.validate_parameters
in H6 we're going to always validate them
2022-01-20 23:20:16 +01:00
Gavin King a59bf70ccf remove hibernate.query.conventional_java_constants
this was apparently a sorta nasty bandaid to a performance problem in query compilation
and it caused problems for some users, breaking interpretation of enum values
2022-01-20 23:20:16 +01:00
Gavin King 846af92b54 remove JACC and JMX stuff from docs
it got left over somehow
2022-01-20 18:03:51 +01:00
Gavin King e7acffef15 remove some legacy config properties
the following are gone:

hibernate.ejb.resource_scanner
hibernate.query.substitutions
hibernate.jdbc.sql_exception_converter
hibernate.native_exception_handling_51_compliance
hibernate.legacy_limit_handler
hibernate.jdbc.wrap_result_sets
2022-01-20 18:03:51 +01:00
Christian Beikov 445cedfec7 Cleanup the naming of JavaDescriptor and JavaTypeDescriptor to align with the new naming JavaType 2022-01-20 16:01:02 +01:00
Christian Beikov fb749b6b32 Adapt tests and skips for H2 2.0.202+ 2022-01-18 15:18:01 +01:00
Steve Ebersole 7de0e79cad Clean up usages of ``@NotImplementedYet` 2022-01-14 15:56:59 -06:00
Steve Ebersole 9fe3c861ca HHH-15023 - Move Query and NativeQuery back to org.hibernate.query 2022-01-14 14:49:17 -06:00
Steve Ebersole fda6e96c5e HHH-15023 - Move Query and NativeQuery back to org.hibernate 2022-01-11 21:01:56 -06:00
Steve Ebersole d2584730f3 Document @IdGeneratorType;
Some work to clean up User Guide sections on id-generators
2022-01-10 09:54:06 -06:00
Gavin King 64d25f16d1 make 'element' and 'value' synonyms in doc 2022-01-10 15:48:34 +01:00
Gavin King e6128551b3 document new collection aggregate function syntax
and fix some other problems I found in the examples
2022-01-10 15:48:34 +01:00
Gavin King 4b5e6e1969 introduce new syntax for aggregate functions applying to collections
max(element x.y), min(index x.y), sum(element x.y)

and rationalize the node types here
2022-01-10 15:48:34 +01:00
Gavin King 596debed4d make @Check work when applied at the field level
This was a bug!

Also add checkConstraint member to @Table to allow check constraints on secondary tables

Also clean up some Javadoc of some related annotations
2022-01-10 00:01:24 +01:00
Gavin King 60ad64b2a6 update explanation of limit/fetch join problem for H6 2022-01-08 11:58:44 +01:00
Gavin King 3103d84949 fix an incorrect statement about case sensitivity 2022-01-08 02:31:20 +01:00
Steve Ebersole 448d678fb5 Drop `@CollectionClassificationType`;
Drop `@CollectionSemantics`;
Drop `@CollectionSemanticsRegistration(s)`;
Add `@CollectionTypeRegistration(s)`;
Rename `@CustomType` to `@Type`;
User Guide and Migration Guide changes
2022-01-06 21:46:48 -06:00
Gavin King a1ea84a3ac two very minor doc fixes 2022-01-06 23:26:21 +01:00
Gavin King aef951f279 move some function arg typechecking up to the SQM phase
this is where it needs to be for checking of named queries at startup
and for any checks that happen in an IDE or at build time
2022-01-06 18:10:00 +01:00
Steve Ebersole 773f3429c6 hibernate.mapping.default_list_semantics (`AvailableSettings#DEFAULT_LIST_SEMANTICS`)
make LIST the default classification for List attributes with no `@OrderColumn`, etc.
2022-01-06 08:53:00 -06:00
Gavin King c96f22dfe0 remove hibernate.dialect.show_hql_functions and just make it a log category
really unclear why I didn't do it that way in the first place
2022-01-06 15:24:35 +01:00
Steve Ebersole 1131292fa9 - fix apparently illegal Oracle identifier 2022-01-05 20:51:41 -06:00
Steve Ebersole a71ba9e385 Initial work to re-organize the Collections chapter in the UserGuide;
Docs for @CollectionType, @CollectionClassificationType and @CollectionSemantics;
Some api/spi/internal work;
Migration Guide;
2022-01-05 16:26:58 -06:00
Christian Beikov 2666f3f6e0 Add feature requirement for multi-insert test 2022-01-05 14:37:50 +01:00
Christian Beikov 6e8f344a9f Implement handling of top level limit/offset/fetch clause when collection fetches are involved 2022-01-05 14:37:50 +01:00
Christian Beikov 2e0a2eea43 Fix issues with multi table values inserts and add optimization for simple values inserts 2022-01-05 14:37:50 +01:00
Gavin King bddbb4d287 examples for native functions 2022-01-05 13:16:52 +01:00
Gavin King 31a795b8c7 quotes not needed for enum values in doc example 2022-01-05 00:42:05 +01:00
Gavin King e1d1d21a30 move a passage to a place it's easier to find 2022-01-05 00:42:05 +01:00
Gavin King 2d55d9a3a8 document id(), version(), naturalid() functions 2022-01-04 23:07:39 +01:00
Gavin King 4ae977a41e disable a test on Sybase
(missed this failure)
2022-01-04 18:06:43 +01:00
Gavin King b1aea5f993 document the existence of quoted identifiers 2022-01-04 16:18:55 +01:00
Gavin King 1934236314 document that you can insert multiple rows with 'values' 2022-01-04 15:05:42 +01:00
Gavin King ef53b2a2de make the BNFs more readable
and add one for grouped item
2022-01-04 15:05:42 +01:00
Gavin King ae2b19cbb0 finally rewrite a sentence I wrote close to 20 years ago
I almost feel like I shouldn't push this...
2022-01-04 02:39:18 +01:00
Gavin King 59e36c46c4 better documentation for limit and friends
with code example
2022-01-04 00:22:57 +01:00
Gavin King b9a040effb switch to inconsolata for monospace font 2022-01-03 21:26:03 +01:00
Gavin King b72e2620c6 remove a strange statement that was simply wrong from the docs 2022-01-03 21:25:50 +01:00
Gavin King 0e55930c75 use more standard whitespace in example code in docs 2022-01-03 21:25:16 +01:00
Gavin King 0f9faf85e5 minor improvements to the beginning part of HQL chapter 2022-01-03 19:39:14 +01:00
Gavin b55ccabba1 slightly nicer css 2022-01-03 18:39:58 +01:00
Gavin 49d9155f4e do a much better job of explaining query language concepts
and add an example of a union query
2022-01-03 18:39:58 +01:00
Gavin cf4d2d4338 undocument a fixed limitation 2022-01-03 17:09:18 +01:00
Gavin King 948eaf7210 more comments on 'fetch join'
- and improve a table
- and add BNF for limit/offset and order by
2022-01-02 18:56:07 +01:00
Gavin King 6c28a133dd enum + Java constant examples
+ minor fixes
2022-01-02 16:51:50 +01:00
Gavin King 72889fe861 add some missing functions to docs 2022-01-02 16:10:33 +01:00
Gavin King c48be75d3b
add an examples with treat() (#4552)
and slightly reorg doc
2022-01-02 15:45:48 +01:00
Gavin King 5ae55d7bfb
redesign 'collate' and add tests
* and add tests and documentation for 'collate'
* much better and less-ambiguous syntax for collate(), consistent with cast() and treat()
* reimplement collate() using the function infrastructure
* implement collate() for HSQLDB

This feature was previously untested and at least partially broken, and was making a mess 
of the HQL grammar.
2022-01-02 13:39:33 +01:00
Gavin King 4509cad315 at least *mention* treat() 2022-01-02 03:33:08 +01:00
Gavin King 648dac628f minor fixes to docs 2022-01-02 03:33:08 +01:00
Gavin King de7aaa88dc clean up sample BNFs 2022-01-01 23:52:27 +01:00
Gavin King 9edcf6b0c0 moar tables 2022-01-01 23:52:27 +01:00
Gavin King cb787e87a8 mention OffsetDateTime in lterals 2022-01-01 23:52:27 +01:00
Gavin King ec6540ea56 get rid of useless headings on sample code fragments 2022-01-01 23:52:27 +01:00
Gavin King 0966c7be1d more HQL doc rewriting
much better documentation for HQL statement types
rewrite section on predicates and logical operators
rewrite from/join section
stop shouting so much
document that H6 auto-removes non-distinct entity results
document limit/offset
document set operators and 'cross join'
slight reorg of Query API chapter, and new title
use "ordinal" instead of "positional" for parameters
2022-01-01 23:52:27 +01:00
Steve Ebersole 7599d3b2dd Re-write of `Collections` domain model section
preliminary work
2021-12-31 16:37:55 -06:00
Steve Ebersole 7c475c8ac0 migration-guide 2021-12-31 16:21:32 -06:00
Fabio Massimo Ercoli f5fdb653a8 Remove not used examples from documentation 2021-12-31 11:46:10 -06:00
Gavin King 3f8a0b6776 HQL doc rewrite/restructure
- document new features of HQL (literals, functions, filter, rollup)
- rewrite parts of the section dealing with the Query API + execution
- split out a new chapter about the query language, and reorder sections
- remove material about deprecated/removed features
- get rid of use of java.sql.Timestamp from the code!
- make use of repeatable annotations in code examples
2021-12-31 18:35:14 +01:00
Steve Ebersole 9beab38716 Re-write of `Collections` domain model section
preliminary work
2021-12-31 11:32:44 -06:00
Steve Ebersole 4ea949d93d Re-write of `Collections` domain model section
preliminary work
2021-12-31 11:08:25 -06:00
Gavin King 5bcf691d2b mention @GeneratedColumn in the docs 2021-12-31 16:01:32 +01:00
Christian Beikov 1184a5963b Re-add AvailableSettings.JPA_METAMODEL_GENERATION and re-enable metamodel tests 2021-12-23 10:01:07 +01:00
Christian Beikov 29bfb799aa Fix some test issues with HANA and emulate derived table column naming on HANA 2021-12-21 18:59:08 +01:00
Chris Cranford 99c13e5965 HHH-11595 Introduce `CollectionAuditTable` support 2021-12-18 22:53:42 -05:00
Steve Ebersole fe5a7466cf slightly expand the documentation for Boolean - minor fix-ups 2021-12-18 07:22:13 -06:00
Gavin King 7a81ec78ff slightly expand the documentation for Boolean 2021-12-18 07:22:13 -06:00
Gavin King a2272be61c documentation surrounding @Lob and Length 2021-12-18 05:05:55 -06:00
Chris Cranford b384b37f39 HHH-8051 Gracefully handle not-found to-one associations 2021-12-16 01:05:27 -05:00
Steve Ebersole 76c329f919 More work on ``@AttributeBinderType` 2021-12-09 12:54:20 -06:00
Steve Ebersole 1e33836632 to test pushing 2021-12-09 07:03:28 -06:00
Steve Ebersole 7a6cef5838 Miscellaneous
- Finished DialectVersion
- User Guide tidying
- User Guide section on AttributeBinder
2021-12-09 00:51:40 -06:00
Gavin King 365aa58254 add two new annotations to the list in Annotations.adoc 2021-12-08 08:44:09 -05:00
Gavin King 6f0676cf96 HHH-6054 add docs for @TenantId 2021-12-08 08:44:09 -05:00
gavin b2e6965577 remove MultiTenancyStrategy
Use the existence of a MultiTenantConnectionProvider to infer that multitenancy is enabled.
2021-12-08 08:44:09 -05:00
Steve Ebersole 915da5228d HHH-14497 - Drop legacy id-generator settings;
HHH-14718 - Drop deprecated generator implementations
2021-12-07 11:12:44 -06:00
Andrea Boriero 07155b7993 Merge remote-tracking branch 'upstream/main' into wip/6.0 2021-12-06 17:56:17 +01:00
Neon Ngo fa8b78d345 HHH-14956 Fix link to MetadataBuilderContributor javadocs
- Under Appendix > Configurations > Bootstrap properties
  - hibernate.metadata_builder_contributor
2021-12-06 16:33:09 +00:00
Steve Ebersole ae25b651ca HHH-14885 - New composite user-type
HHH-14951 - Add @EmbeddableRepresentationStrategy

Prep work for `@EmbeddableRepresentationStrategy` - mostly move things from spi package to api, generally all marked `@Incubating`
2021-12-02 14:49:23 -06:00
Christian Beikov 47416b9e24 Fixup review comments 2021-12-02 13:17:53 +01:00
Steve Ebersole 5e0b98dd61 HHH-14928 - Document CDI integration 2021-12-01 22:11:56 -06:00
Steve Ebersole 9137b9e79a HHH-14885 - New composite user-type
`@EmbeddableInstantiatorRegistration`
2021-12-01 20:47:14 -06:00
Steve Ebersole 61d178ef1b HHH-14885 - New composite user-type
`@EmbeddableInstantiatorRegistration`
2021-12-01 18:16:29 -06:00
Steve Ebersole 924c2b29c3 HHH-14885 - New composite user-type
Working support for `@EmbeddableInstantiator` on either the embedded site or on the embeddable class.
2021-12-01 17:35:43 -06:00
Sanne Grinovero 334aeb1349 HHH-14946 Upgrading base requirements to Java 11 2021-12-01 17:34:28 +00:00
Chris Dennis 55db51894f HHH-14837 : Re-enable hibernate-jcache module. 2021-11-29 11:44:16 -05:00
Chris Cranford dbecdc41ac HHH-9062 Allow validity audit strategy to store revision end timestamps on joined subclass audit tables. 2021-11-27 04:41:52 -05:00
Chris Cranford 205f0ce9bf HHH-6210 Added config option to allow revend timestamp fields to be long data types 2021-11-26 02:20:28 -05:00
Andrea Boriero b971d76bf6 Merge remote-tracking branch 'upstream/main' into wip/6.0 2021-11-18 12:45:25 +01:00
Jan Schatteman 69d2c65880
Removal @Deprecated from availablesettings (#4369)
* Remove deprecated *_CLASSLOADER from AvailableSettings

Signed-off-by: Jan Schatteman <jschatte@redhat.com>

* Remove deprecated HBM2DLL_CREATE_NAMESPACES and DEPRECATED_EXTRA_PHYSICAL_TABLE_TYPES from AvailableSettings

Signed-off-by: Jan Schatteman <jschatte@redhat.com>

* Remove deprecated and duplicated HBM2DDL_DB_NAME, HBM2DDL_DB_VERSION, HBM2DDL_DB_MAJOR_VERSION, HBM2DDL_DB_MINOR_VERSION from AvailableSettings

Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2021-11-17 14:52:52 +01:00
nathan.xu c3631970a5 HHH-14927 fix other obvious defects in user guide 2021-11-17 10:52:56 +01:00
nathan.xu f54f6bdf4e HHH-14927 bump current hibernate version from 5.5 to 5.6 in user guide 2021-11-17 10:52:56 +01:00
Andrea Boriero 2e74d026f2 Merge branch 'wip/6.0_merge_main' into wip/6.0 2021-11-16 09:28:40 +01:00
Andrea Boriero 0c0fab9cef Merge remote-tracking branch 'upstream/main' into wip/6.0_merge_main 2021-11-16 09:27:42 +01:00
Maciej Walkowiak 3845d2f97f Refer correct entity in "Composite identifiers with associations" section
Code sample uses `Book` entity instead of `PersonAddress`.
2021-11-16 08:47:03 +01:00
Björn Kautler fa3a364b79 Fix dead link in documentation 2021-11-16 08:46:07 +01:00
Jan Schatteman 37703e2e4c
Remove deprecated properties from AvailableSettings (#4362)
* Remove deprecated ACQUIRE_CONNECTIONS and RELEASE_CONNECTIONS from AvailableSettings

Signed-off-by: Jan Schatteman <jschatte@redhat.com>

* Remove deprecated PROXOOL_PREFIX and PREFER_POOLED_VALUES_LO from AvailableSettings

Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2021-11-15 23:03:16 +01:00
Karel Maesen 8a96c4e7c7 HHH-4925 Minor fixes 2021-11-15 16:17:11 +01:00
Karel Maesen 64331aada6 Fix documentation issues 2021-11-15 16:17:11 +01:00
Karel Maesen 0300e54fef HHH-14925 Remove deprecated BasicType implementations 2021-11-15 16:17:11 +01:00
Karel Maesen e48da8d52c HHH-14925 Switch for Postgis to javatype/jdbctype
Also some documentation improvements and dead code removal.
2021-11-15 16:17:11 +01:00
Karel Maesen 022d2c0a13 HHH-14906 Fix naming inconsistencies
Also fixes some minor checkstyle violations and
removes dead code
2021-11-15 16:17:11 +01:00