Commit Graph

2066 Commits

Author SHA1 Message Date
Gavin 941fd14874 Blob, Clob 2023-05-13 21:08:47 +02:00
Gavin cc43b1fd1f add rant 2023-05-13 21:08:47 +02:00
Gavin c2fe18796f short section on named queries 2023-05-13 21:08:47 +02:00
Gavin 032fc0753f short section on named queries 2023-05-13 21:08:47 +02:00
Gavin f424a4b2f2 improve discussion of FlushModes and CacheModes 2023-05-13 21:08:47 +02:00
Gavin 99ba5cba1e improve section on not null 2023-05-13 21:08:47 +02:00
Gavin 12a380c6ea use Validator for @NotNull 2023-05-13 21:08:47 +02:00
Gavin a4392fdf2f calling jdbc 2023-05-13 21:08:47 +02:00
Gavin 5fd441df70 improve discussion of foreign key mappings 2023-05-13 21:08:47 +02:00
Gavin bb0acd2956 minor fixes 2023-05-13 21:08:47 +02:00
Gavin 53fb19e170 hello JPA world 2023-05-13 21:08:47 +02:00
Gavin b2509bbab6 hello world 2023-05-13 21:08:47 +02:00
Gavin fa25afad0f add a couple of links 2023-05-13 21:08:47 +02:00
Gavin f602b65b4f limits, pagination, and flush modes 2023-05-13 21:08:47 +02:00
Gavin d182331cc4 more presentation cleanups 2023-05-13 21:08:47 +02:00
Gavin 95b4829e08 more presentation cleanups 2023-05-13 21:08:47 +02:00
Gavin ccca560a91 get rid of useless titles on admonitions
failed experiment
2023-05-13 21:08:47 +02:00
Gavin 6369f29f1a get rid of useless titles on admonitions
failed experiment
2023-05-13 21:08:47 +02:00
Gavin 843cc499d1 clean up more admonitions 2023-05-13 21:08:47 +02:00
Gavin 259d86a4a2 discover sidebars 2023-05-13 21:08:47 +02:00
Gavin 48e5cfbf28 segues 2023-05-13 21:08:47 +02:00
Gavin 24334d1dff finish off the section on session operations 2023-05-13 21:08:47 +02:00
Gavin c2c7d4166b more explanation cribbed from my jdoc 2023-05-13 21:08:47 +02:00
Gavin b7a8f4940e pool configuration 2023-05-13 21:08:47 +02:00
Gavin 7b0e473358 more about natural ids 2023-05-13 21:08:47 +02:00
Gavin d14f3f011a native SQL queries and placeholders 2023-05-13 21:08:47 +02:00
Gavin 18e88b7358 executing queries 2023-05-13 21:08:47 +02:00
Gavin 5881da56c8 add diagram 2023-05-13 21:08:47 +02:00
Gavin 71d8002c1b add rant about repositories 2023-05-13 21:08:47 +02:00
Gavin 5c24af1ed6 reuse the query language chapter by reference 2023-05-13 21:08:47 +02:00
Gavin c6b63693c6 start on queries 2023-05-13 21:08:47 +02:00
Gavin 02c179d07f flushing, flush modes, and cache modes 2023-05-13 21:08:47 +02:00
Gavin 05f4ac6483 shill for HR 2023-05-13 21:08:47 +02:00
Gavin 85a156fd99 cannibalize some information from javadoc 2023-05-13 21:08:47 +02:00
Gavin f8fd02d5f9 sq 2023-05-13 21:08:47 +02:00
Gavin db4c0d02ec discuss pesistence contexts 2023-05-13 21:08:47 +02:00
Gavin bc85a250ef compile introduction to PDF 2023-05-13 21:08:47 +02:00
Gavin 2841388335 fix build 2023-05-13 21:08:47 +02:00
Gavin 5747725e02 cannibalize good content from HR docs 2023-05-13 21:08:47 +02:00
Gavin 7fd70a0284 mention constraints which Hibernate doesn't actually create due to bug 2023-05-13 21:08:47 +02:00
Gavin 1d3f4f47f1 diagram of associations 2023-05-13 21:08:47 +02:00
Gavin 3e187ad82a association table mappings 2023-05-13 21:08:47 +02:00
Gavin 6edefe6f4d column lengths and LOBs 2023-05-13 21:08:47 +02:00
Gavin e1160fec91 more about table mappings 2023-05-13 21:08:47 +02:00
Gavin 189951db10 join column mappings 2023-05-13 21:08:47 +02:00
Gavin f9e9c9db86 mapping tables and columns 2023-05-13 21:08:47 +02:00
Gavin 77a48de89c more impressive converter example 2023-05-13 21:08:47 +02:00
Gavin 16a1322974 more on inheritance 2023-05-13 21:08:47 +02:00
Gavin 25d341f297 start on inheritance mapping 2023-05-13 21:08:47 +02:00
Gavin eaa12db032 missed one 2023-05-13 21:08:47 +02:00
Gavin 349ecee462 mapped superclass, version, and summary 2023-05-13 21:08:47 +02:00
Gavin 7b5f66c292 @ElementCollection mappings, etc 2023-05-13 21:08:47 +02:00
Gavin fad5d6ee5b enum and array mappings 2023-05-13 21:08:47 +02:00
Gavin 7619313d2f many to many 2023-05-13 21:08:47 +02:00
Gavin 33a3af7abc one to one 2023-05-13 21:08:47 +02:00
Gavin f012afe95f many to one 2023-05-13 21:08:47 +02:00
Gavin d9fae9454c improve converters discussion 2023-05-13 21:08:47 +02:00
Gavin cf8aa0b02a add section on embeddables + and define "persistent identity" 2023-05-13 21:08:47 +02:00
Gavin 5a036069fb much more about basic types 2023-05-13 21:08:47 +02:00
Gavin 1f5a8c0f1b make start on basic types 2023-05-13 21:08:47 +02:00
Gavin 7a28b3caed finish section on ids 2023-05-13 21:08:47 +02:00
Gavin 50373633d6 make a start on Entities chapter 2023-05-13 21:08:47 +02:00
Gavin 9a726936e7 revise what I have so far 2023-05-13 21:08:47 +02:00
Gavin 01dcf0687d more on XxxxNamingStrategy 2023-05-13 21:08:47 +02:00
Gavin deb19d02d0 copy configuration section from HR intro 2023-05-13 21:08:47 +02:00
Gavin 42819dd6f9 add history of Hibernate 2023-05-13 21:08:47 +02:00
Gavin King 46ac4c07cf initial blurbs for Introduction document 2023-05-13 21:08:47 +02:00
Andrea Boriero cd0504ceda Add to documentation drop-down selector links to 6.0 and 6.1 documentation pages 2023-05-02 09:16:08 +02:00
Karel Maesen 174a9a7005 HHH-15160 - Properly validate the arguments in the distance operators. 2023-04-28 13:50:36 +02:00
Karel Maesen b46bc13813 HHH-15160 - Adds the Postgis distance operators 2023-04-28 13:50:36 +02:00
Marco Belladelli a9080f5f7d HHH-16392 Fix where clause in collection cleanup subqueries 2023-04-28 10:22:26 +02:00
Steve Ebersole c6389efb1b Add a Dialect report
Also added
* H2Dialect#getMinimumSupportedVersion
* DerbyDialect#getMinimumSupportedVersion
2023-04-27 11:28:35 -05:00
Gavin 0674300d87 fix outdated section of user guide relating to Dialects 2023-04-18 18:01:13 +02:00
Jan Schatteman 81d1d95e4c Add @EmbeddableInstantiator, @EmbeddableInstantiatorRegistration and @EmbeddableInstantiatorRegistrations to the annotations chapter of the user guide
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2023-04-13 23:58:13 +02:00
Gavin 511399c152 update the docs to reflect the new @SQL annotations 2023-04-09 19:32:59 +02:00
Steve Ebersole 4b8167c7fd PublishMigrationGuide task 2023-04-01 09:37:40 -05:00
Andrea Boriero 570ccae476 HHH-16097 Move all tests from documentation into hibernate-core 2023-03-24 07:43:13 -05:00
Christian Beikov 41bec6d5f9 HHH-16287 Consider hibernate.timezone.default_storage for OffsetTime typing and storage 2023-03-23 11:59:53 +01:00
Christian Beikov e632981e4b HHH-16333 Get rid of special Character[] and Byte[] handling 2023-03-22 17:27:26 +01:00
Christian Beikov 39f4fdda5e HHH-16316 Move version specific dialects of unsupported versions to hibernate-community-dialects 2023-03-17 10:12:34 +01:00
Steve Ebersole 85f98d21f9 HHH-16132 - Dirty checking for collection-as-basic mappings 2023-03-16 09:09:58 -05:00
Yoann Rodière d09640fe36 HHH-16302 Clarify that the JDBC timezone is supposed to match the database timezone
See https://hibernate.zulipchat.com/#narrow/stream/132094-hibernate-orm-dev/topic/hibernate.2Etimezone.2Edefault_storage/near/341706032
2023-03-15 15:36:47 +01:00
Yoann Rodière fa53e6da98 HHH-16302 Document all TimeZoneStorageType values in reference documentation 2023-03-15 15:36:47 +01:00
Yoann Rodière cc8f1f1020 HHH-16310 Update reference documentation regarding multitenancy
* Remove mentions of 'hibernate.multiTenancy'. This setting no longer exists.
* Fix a few other inconsistencies.
2023-03-15 12:05:51 +01:00
Florian Hof cc01f2da3f update maven dependency of hibernate-spatial
the new Maven group is org.hibernate.orm (and so referenced in Spring Boot 3)
2023-03-14 12:19:21 +01:00
Christian Beikov a32d741bbc HHH-15664 Fix array section in documentation 2023-03-14 12:17:56 +01:00
Christian Beikov b82fa307ea HHH-15802 - Fix some expression comparison type checks 2023-03-03 16:01:53 +01:00
Jan Schatteman 02b7c5afb5 Add a note w/ respect to native queries and inheritance
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2023-03-03 09:46:17 +01:00
Christian Beikov 1bd0180172 HHH-16182 Fix some tests for older databases and adapt assertion for boolean function 2023-03-03 09:38:33 +01:00
Christian Beikov 1ff682438d HHH-16179 Session.find should not apply filters 2023-03-02 20:38:18 +01:00
Christian Beikov f5741e9b7e Revert "HHH-14772: Fix filter direct fetching documentation"
This reverts commit 446908f643.
2023-03-02 20:38:18 +01:00
Steve Ebersole 3dc855aa31 HHH-16182 - Converted boolean values not always properly handled in predicates 2023-03-02 09:19:00 -06:00
Steve Ebersole abc44004ca test cleanup 2023-03-01 17:20:12 -06:00
Steve Ebersole e37db163a0 HHH-16182 - Converted boolean values not always properly handled in predicates 2023-03-01 13:49:53 -06:00
Steve Ebersole 31738d436a HHH-16182 - Converted boolean values not always properly handled in predicates 2023-03-01 13:49:53 -06:00
Steve Ebersole b8d500ec41 HHH-16182 - Converted boolean values not always properly handled in predicates 2023-03-01 13:49:53 -06:00
marko-bekhta 5d61b03b20 HHH-16217 Use only rendered Javadocs for collecting configuration properties 2023-03-01 13:26:49 -06:00
Marco Belladelli b16ad226ba HHH-16185 Custom trunc/truncate implementation that handles both numeric and datetimes 2023-02-27 17:01:45 +01:00
Jan Schatteman 0d729feb6a Fix broken doc link in native.adoc
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2023-02-22 21:10:32 +01:00
Steve Ebersole a82c2169cf HHH-16182 - JPA derived query methods failing when boolean mapping using YesNoConverter 2023-02-15 08:18:12 -06:00
Gavin King f3833e71a9 HHH-16174 support for extract(epoch from ...) in HQL 2023-02-13 15:40:24 +01:00
Steve Ebersole 973434c8f1 HHH-16148 - Introduce Immutability (MutabilityPlan) for use with @Mutability
HHH-16141 - Support @Mutability and @Immutable on UserType
HHH-16147 - Support @Mutability and @Immutable on AttributeConverter
HHH-16146 - Improve User Guide documentation for (im)mutability
2023-02-10 08:38:40 -06:00
Christian Beikov 2de37ed5e3 HHH-16143 Documentation for composite aggregates 2023-02-09 10:54:19 +01:00
Christian Beikov 0b4b52b08a HHH-16152 Documentation for @PartitionKey 2023-02-08 17:49:44 +01:00
Steve Ebersole fd3670bbeb Unify example includes in terms of well-defined asciidoc attributes
preparation step for moving tests out of `documentation` and into the proper projects (core, envers and spatial)
2023-01-27 17:25:22 -06:00
Christian Beikov 16ca1a0595 HHH-15443 Allow JdbcType to wrap read and write expressions 2023-01-27 14:26:42 -06:00
marko-bekhta 8fa8b23d63 Add tasks to process sources and collect config properties 2023-01-26 00:43:38 -06:00
Gavin 6ca9643c72 HHH-16035 document Duration -> NUMERIC mapping 2023-01-13 16:34:46 +01:00
Gavin 7444b26db4 HHH-15948 move org.hibernate.metamodel.model.convert to org.hibernate.type.descriptor.converter 2023-01-11 17:56:54 +01:00
Gavin 3ceb91d280 HHH-16000 Add @SQLSelect annotation as abbreviation for @NamedNativeQuery + @Loader 2023-01-07 15:02:42 +01:00
Gavin bfdd7f648b HHH-10557 fix @Loader applied to a collection
the issue here is we have no @CollectionResult for annotation-based result set mappings
2023-01-07 15:02:42 +01:00
Jan Schatteman 74689f26a5 Get rid of a bunch of deprecated api usages
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2023-01-06 14:02:43 +01:00
Gavin 5fb04fb6f6 give UserType.replace() a sensible default impl that's essentially always correct 2023-01-06 12:47:48 +01:00
Gavin fe9f909dce add an extended example to UserType jdoc 2023-01-06 12:47:48 +01:00
LLEFEVRE 9dad80c258 HHH-15975 documentation tests must rely on SharedDriverManagerConnectionProviderImpl instead of DriverManagerConnectionProviderImpl 2023-01-05 11:05:21 +01:00
Steve Ebersole d7201815d5 HHH-15977 - Deprecate @Persister 2023-01-04 13:36:04 -06:00
Gavin e3f1c2741d HHH-15960 make @Comment annotation repeatable and properly test it
I didn't quite nail this one first time round :-/
2023-01-04 13:40:44 +01:00
Akshit Agarwal 446908f643 HHH-14772: Fix filter direct fetching documentation 2023-01-04 10:00:27 +01:00
Gavin b7b5fb7559 avoid the use of TypeConfiguration.getServiceRegistry() 2023-01-03 21:06:49 +01:00
Christian Beikov 0962144583 Don't show SharedDriverManagerConnectionProviderImpl usage in event documentation 2023-01-03 10:31:05 +01:00
LLEFEVRE ccf4fac124 HHH-15961 Speed-up Oracle CI build 2023-01-03 10:26:46 +01:00
Gavin 7aa92a7c05 allow @Formulas to refer to columns of @SecondaryTables
(this is something that was previously only possible using hbm.xml)

also attempt a partial fixup of the initialization process where SessionFactoryImpl
constructor leaked out an uninitialized reference to itself (it still leaks, but
not as badly)
2023-01-02 21:45:02 +01:00
Gavin 1657c22aca automatically detect when a @Check refers to a @SecondaryTable
- also support named check constraints (multiple of them)
- also support check constraints on collection tables
2023-01-02 21:45:02 +01:00
Gavin 110a1f6a56 examples in javadoc for @Any and @ManyToAny 2022-12-26 18:22:06 +01:00
Jan Schatteman 974fe9e22d HHH-15914 - Add jira tag to some tests
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-12-23 17:40:38 +01:00
Jan Schatteman c45330023f HHH-15914 - remove deprecated method calls and provide an example of Tuple.class usage
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-12-23 16:05:18 +01:00
Steve Ebersole 51a50bed43 Add a deprecated.txt report to published docs collecting union of `@Deprecated` and `@Remove` 2022-12-22 16:55:02 -06:00
Steve Ebersole 263768d5c5 HHH-15930 - Support scalar resultClass in @NamedNativeQuery 2022-12-22 15:48:37 -06:00
Christian Beikov a094d4c5d5 HHH-15463 Adjust JdbcType based on DDL capacity for varchar/varbinary like types 2022-12-22 17:25:13 +01:00
Steve Ebersole 422b6a3947 HHH-15799 - API/internal split for org.hibernate.cfg package 2022-12-21 08:15:57 -06:00
Gavin 023e73cb46 promote trunc() / truncate() to the list of standard HQL functions
also support the single-argument form of round() for consistency
2022-12-21 14:25:35 +01:00
Christian Beikov 7007bafe55 HHH-15872 Add ColumnOrderingStrategy SPI and handle record structs specially 2022-12-20 20:17:23 +01:00
Gavin 3ad3c5a509 change default event timing for @Generated to event = INSERT
- this makes sense if @Generated con now be used on @Id properties
- but it's also convenient with @ColumnDefault
2022-12-20 01:38:55 +01:00
Marco Belladelli caaaa71ffd HHH-15550 New global and persistent temporary `create_tables` params 2022-12-16 08:25:41 +01:00
Christian Beikov bc36eb3eeb HHH-15327 Support mapping aggregate embeddables as struct/json 2022-12-14 19:02:43 +01:00
Gavin a7a455c39a HHH-15834 add @TypeRegistration annotation 2022-12-07 13:36:15 +01:00
Gavin ef4ed9936e move timezone tests where they belong 2022-12-07 00:00:05 +01:00
Gavin 4fba6ac60d add tests for [Zoned|Offset]DateTime handling with AvailableSettings.TIMEZONE_DEFAULT_STORAGE set 2022-12-07 00:00:05 +01:00
Mark Rotteveel 9290f8b754 HHH-15812 Firebird dialect improvements 2022-12-06 11:38:51 +01:00
Gavin cb35e0e734 HHH-15797 better error messages
1. include the SQL in some SQLGrammarExceptions where it was missing
2. append the SQL to the error message in JDBCException
3. don't wrap HibernateException in PersistenceException b/c it is one already
2022-12-05 22:40:13 +01:00
Gavin 95aa852e15 HHH-15800 reverse previous work to standardizing on GenerationTiming
...and go in exact opposite direction to migrate to GenerationTime
2022-12-05 22:21:52 +01:00
Gavin a4debae33a HHH-15816 make @Immutable work at property level 2022-12-05 18:11:23 +01:00
Gavin 7f72696fff HHH-15788 deprecate GenerationTime since it is a dupe of GenerationTiming
...and it was not even being consistently used in its own package!

(@CurrentTimestamp was already using GenerationTiming.)

What a mess.
2022-12-01 00:02:18 +01:00
Christian Beikov 2b8b33e694 Fix Oracle rowid and sybase value generation issues 2022-11-29 12:13:27 +01:00
Gavin 366a89ae71 reimplement @Source in an elegant way using the ValueGeneration machinery
... and finally delete two of my least-favorite classes!
2022-11-28 22:49:57 +01:00
Gavin 993aae6095 HHH-15774 @CurrentTimestamp takes over from @Source
... and make value generation work better with version properties.
2022-11-28 22:49:57 +01:00
Steve Ebersole a9ac98b364 HHH-15393 - Improve write-paths to use mapping model
HHH-15723 - Fix foreign-key modeling
2022-11-28 14:25:40 -06:00
Jan Schatteman 4cce83a779 Disable the SpatialTest for now (fails on edb)
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-11-28 20:55:17 +01:00
Jan Schatteman 07274cd2ce HHH-15715 - Fix broken links in docs
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-11-28 18:03:26 +01:00
Gavin c9caf292e6 HHH-15770 javadoc and cleanup for @OnDelete, OnDeleteAction 2022-11-27 14:16:43 +01:00
Gavin 3ba90c004c HHH-15762 nicer DDL for unique constraints
- prefer 'unique' in 'create table' except in migrations
- also ignore unique=true for PK column
- introduce AlterTableUniqueDelegate and CreateTableUniqueDelegate
- fix the tests / delete test that makes no sense now
- improve javadoc of UniqueDelegate
2022-11-26 13:40:40 +01:00
Marco Belladelli f38dd28043 HHH-15760 mass replace self-closing tags in javadoc 2022-11-26 09:49:56 +01:00
Christian Beikov 276b7a6f95 HHH-15748 Use JSON DDL type on Oracle 21+ and BLOB on 12+ 2022-11-25 10:11:12 +01:00
Gavin 5b5721f64b HHH-15739 deprecate @LazyToOne and @LazyCollection
and add some docs and cleanups
2022-11-25 02:42:58 +01:00
Gavin c51604c6b7 improve javadoc for annotations related to filters + discriminators
Also:

- deprecate a layer-breaking method of org.hibernate.Filter
  (consistent with what we already did on SessionFactory)
- fix the incorrect @Target of @SqlFragmentAlias
- add some missing @since annotations
- add cross-links to DialectOverride
2022-11-18 14:12:22 +01:00
Christian Beikov 4914d14a43 HHH-15626 Move old databases to nightly pipeline and add some SQL Server 2022 features 2022-11-18 11:06:39 +01:00
Sanne Grinovero d648adfd59 HHH-15692 Remove references to hibernate.query.factory_class config property 2022-11-17 13:39:56 +00:00
Christian Beikov 7a14e5c07f HHH-15631 Enable reflection optimizer by default Christian Beikov 2022-11-10 16:42:17 +01:00
Gavin King f1a5314e70 remove a big scary warning from docs because situation has been fixed in 6 2022-11-10 14:03:51 +01:00
Christian Beikov 90a752a0ee HHH-15328 Add support for CTE WITH clause 2022-11-10 13:25:21 +01:00
Gavin King 90e6a8b698 fix whitespace in userguide test 2022-11-09 11:44:44 +01:00
Jan Schatteman 85836fbcf8 Correction to the native sql queries section
Correction of broken link in Schema.adoc

Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-11-08 17:21:57 +01:00
Christian Beikov 0b733d4ba2 HHH-15641 Enable inlineDirtyChecking and lazyLoading for enhancement by default and deprecate the setting 2022-11-07 09:19:26 +01:00
Gavin King aef9ab2425 HHH-15570 allow @SqlInsert, @SqlUpdate, @SqlDelete for secondary tables 2022-11-04 17:51:00 +01:00
Gavin King f253d8f216 remove useless @JoinColumns annotation for mosts tests and examples 2022-10-29 02:09:00 +02:00
Andrea Boriero 20183269ad HHH-14544 Document Ehcache Performance degradation when the default cache is used 2022-10-27 17:08:57 +02:00
Gavin King 78c8a04486 add example of subquery join with 'on' to docs 2022-10-21 23:43:15 +02:00
Christian Beikov 940f15b63e HHH-15528 Add Cockroach to Jenkins nightly test matrix and fix issues 2022-10-21 09:51:16 +02:00
Gavin King 8f23e16a35 explain wtf 'join lateral' means
and that it's the same thing as 'cross apply'
2022-10-19 13:59:04 +02:00
Gavin King 4453af984b minor improvement to table in doc 2022-10-09 11:45:04 +02:00
Gavin King f324204514 HHH-15589 document var_xxx() and stddev_xxx() 2022-10-08 22:20:03 +02:00
Gavin King f5a5990d03 try to make var_xxx() and sdtev_xxx() more portable 2022-10-08 21:27:43 +02:00
Gavin King 477f1e7af6 HHH-15588 promote sinh(), cosh(), and tanh() 2022-10-08 18:58:42 +02:00
Gavin King 6ea6359638 add a couple of crosslinks to HQL chapter of doc 2022-10-08 14:09:10 +02:00
Gavin King 4451611311 HHH-15518 bless degrees() and radians() as standard
- add a test
- emulate them on HANA and Oracle
2022-10-06 23:20:02 +02:00
Gavin King 6de92c4f90 document window functions in HQL
thanks to @beikov who collected + wrote up most of the information here
2022-10-06 18:03:58 +02:00
Gavin King be4934d17d reorg the documentation of HQL functions 2022-10-06 14:37:46 +02:00
Gavin King f70d09175a update the HQL chapter to acknowledge changes in JPA 3.1 2022-10-05 17:12:52 +02:00
Gavin King a7bb19a2ea clarify semantics of query with no 'select' in documentation 2022-10-05 14:05:53 +02:00
Gavin King 6e94b35ee1 HHH-15549 remove mapping of NUMBER(1,0) to BOOLEAN on Oracle
This just seems wrong to me. We have no way to say that a NUMBER(1,0)
column isn't a single-digit number.

Simplify the other mappings for NUMBER(n,0).
2022-10-02 12:12:33 +02:00
Jan Schatteman bb5aa62927 HHH-15487 - Remove support for PostgreSQL versions older than 10
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-09-21 19:57:32 +02:00
Jan Schatteman 89a98f2dc7 HHH-15489 - Remove support for Oracle versions older than 11.2
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-09-21 17:52:03 +02:00
Gavin King 3ddfa3f47c HHH-15516 add two-arg form of log() to HQL 2022-09-16 13:21:44 +02:00
Gavin King 1b5935e66d HHH-15515 make pi a portable HQL function 2022-09-16 13:21:44 +02:00
Christian Beikov 60bd1c657b HHH-15504 Add UUID support for SQL Server 2022-09-14 11:11:10 +02:00
Jan Schatteman 3dec1ca4dc HHH-15447 - Remove references to deprecated dialects
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-09-12 16:05:00 +02:00
Christian Beikov eb1f56d542 HHH-15458 Interpret String with JSON/XML type code as plain JSON/XML 2022-08-29 10:57:49 +02:00
Andrea Boriero 6507ac4f88 HHH-15455 User Guide Contains a reference to hibernate-ehcache, no longer supported 2022-08-22 15:28:43 +02:00
Yoann Rodière 8c33056d93 Fix dead link in documentation section "Java API for HQL and JPQL"
See the link "next chapter" at the beginning of this section:

https://docs.jboss.org/hibernate/orm/current/userguide/html_single/Hibernate_User_Guide.html#hql
2022-08-17 08:56:29 +02:00
Christian Beikov 7b6df34519 HHH-15428 Fix handling of converters by moving them to JdbcMapping 2022-08-03 14:38:46 +02:00
Andrea Boriero e80fb85dae HHH-15420 Getting Started Guide Code does not build 2022-08-02 15:47:14 +02:00
Andrea Boriero 0f599da6c4 HHH-15406 Tests annotated with org.hibernate.testing.RequiresDialect having as value a deprecated dialect are not executed 2022-07-21 22:00:14 +02:00
Jan Schatteman d6f9b0b683 HHH-15401 - Update the topical guide
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-07-18 12:04:45 +01:00
Andrea Boriero e3d524fe5e HHH-15396 Quick Start guide, hibernate-tutorials.zip link is broken 2022-07-13 13:54:28 +02:00
Gavin King 6588d2db46 somewhat improve the documentation of StatelessSession
mention fetch()
2022-07-04 21:05:14 +02:00
Gavin King 7b8bf8b98e minor changes to HQL docs 2022-07-02 20:53:03 +02:00
Gavin King c3e0bc44ba document right/full join syntax 2022-07-02 20:50:13 +02:00
Christian Beikov 9c660f7e0a HHH-15367 Lift embedded/id-class to-one selection limitation for from clause subqueries 2022-07-01 12:05:54 +02:00
Gavin King bb29e3b060 document root joins 2022-06-24 17:14:13 +02:00
Christian Beikov 9cff075a89 HHH-15349 Fix rendering of EntityValuedPathInterpretation when comparing different model parts 2022-06-23 20:20:00 +02:00
Gavin King 1eb75e22ef improve language and formatting in new HQL doc sections 2022-06-18 00:22:17 +02:00
Gavin King 58da5f24f9 "sub query" -> "subquery"
The word "sub" means "submarine", "submissive", or "substitute".
It's never an adjective.
2022-06-18 00:22:17 +02:00
Gavin King c163e1f2ed minor clarifications to HQL chapter 2022-06-17 18:14:30 +02:00
Gavin King c60fbc20ec documentation for hibernate.enable_lazy_load_no_trans 2022-06-10 17:00:29 +02:00
Christian Beikov 341267b133 HHH-3356 Support for normal and lateral subquery in from clause 2022-06-04 19:07:43 +02:00
Steve Ebersole a488e1a269 minor doc fix-up 2022-05-31 06:31:55 -05:00
Christian Beikov 497c09cddb HHH-10999 Remove configuration setting for configuring the JDBC type for arrays 2022-05-30 19:52:39 +02:00
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
Nathan Xu 087b9d83ff HHH-15010 - update Java type list for '@CreationTimestamp' and '@UpdateTimestamp' in user guide 2022-05-23 15:37:18 +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
Nathan Xu 79adc41918 HHH-15224 update the module list in "getting started guide" 2022-05-03 10:20:40 +02:00
Nathan Xu 8af615386f HHH-15154 tweak verbiage in user guide on FetchMode.SUBSELECT 2022-05-03 10:15:06 +02:00
Hirosato Hano ef443b11ad HHH-15238 - Documentation: update JDBC logging configuration for 6.0 2022-05-02 13:10:04 +02:00
Nathan Xu 049a61479b HHH-15239 add 5.6 link in user guide after v6 became the new "current" 2022-05-02 09:13:56 +02:00
Jan Schatteman eab669f04e Some minor corrections to the docs
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2022-04-27 17:39:52 +02: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
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
Steve Ebersole 84cf4524ea HHH-15170 - Dedicated chapter for "Build Tool Support"
HHH-15171 - Add discussion of the Ant Plugin
2022-04-05 16:13:03 -05:00
Steve Ebersole 17bb4aa066 HHH-15170 - Dedicated chapter for "Build Tool Support"
HHH-15171 - Add discussion of the Ant Plugin
2022-04-05 15:25:34 -05:00
Steve Ebersole 9d3726e39d HHH-15170 - Dedicated chapter for "Build Tool Support" 2022-04-04 19:15:15 -05: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
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
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
Christian Beikov 29d457b16a Add documentation for the sql function 2022-03-30 18:21:27 +02: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 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 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 ce298a1566 Make use of type variable for a few CompositeUserType methods 2022-03-24 09:29:45 +01:00
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
Jan Schatteman db12d5a17a Remove deprecated JPA_METAMODEL_GENERATION and JPA_METAMODEL_POPULATION from AvailableSettings
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2021-11-12 14:57:52 +01:00
Christian Beikov 60a3c08563 Downgrade H2 to 1.4.197 for testing and to allow usage of H2GIS 2021-11-12 12:09:49 +01:00
Steve Ebersole 599b0ba39f HHH-14919 - Improve handling for java.sql.Date, Time and Timestamp 2021-11-09 07:18:09 -06:00
Steve Ebersole 0925e48ebf more user-guide basic-type chapter work;
renamed `JavaTypeDescriptorRegistry` to `JavaTypeRegistry`;
renamed `JdbcTypeDescriptorRegistry` to `JdbcTypeRegistry`
2021-10-25 13:55:53 -05:00
Andrea Boriero 5d62eac4b9 Merge remote-tracking branch 'upstream/main' into wip/6.0_merge 2021-10-25 18:05:46 +02:00
Steve Ebersole f043014ec7 more user-guide basic-type chapter work 2021-10-22 06:42:08 -05:00
Steve Ebersole c34ea34f6b Clean up various legacy "read path" contracts
- clean-up unused Type methods
    * Type#nullSafeGet
    * Type#hydrate
    * Type#resolve
    * Type#getSemiResolvedType
    * Type#semiResolve
    * related
- start removing usage of Tuplizer
- start removing usage of legacy Tuplizer-based Instantiator
- Drop `EntityMode` completely
2021-10-21 16:26:49 -05:00
bb7133 5bd27eb853 HHH-14576 : Introduce the dialect for TiDB 2021-10-20 16:19:22 +02:00
nathan.xu ead2447524 HHH-14891 update JTS package name in user guide (Hibernate Spatial BasicTypes table in 'Domain Model' chapter) 2021-10-20 10:05:11 +02:00
Andrea Boriero dd36e349b1 Merge branch 'wip/6.0_merge' into wip/6.0 2021-10-19 16:36:48 +02:00
Christian Beikov a4e406a54e * Add SqlTypes as analogy to java.sql.Types containing constants for Hibernate specified types
* Add FormatMapper for a pluggable JSON serialization and deserialization strategy
* Add native UUID type support for H2, Cockroach, PostgreSQL
* Add native INET type support for Cockroach, PostgreSQL
* Add native JSON type support for MySQL, Cockroach, PostgreSQL
* Add native INTERVAL SECOND type support for H2, Cockroach, PostgreSQL
* Add fallback JdbcTypes for new SqlTypes
* Register column types for new SqlTypes
* Add support for BasicTypeReference in TypedParameterValue
* Fix a lot of method signatures with respect to type parameter issues
* Fix CustomType, UserType and EnhancedUserType with respect to type parameters
* Get rid of StringRepresentableType and some other unused deprecated methods
2021-10-19 16:33:36 +02:00
Christian Beikov 541302a511 Get rid of most basic type subclasses 2021-10-19 16:33:36 +02:00
Andrea Boriero d2906c022e Upgrade org.asciidoctor.jvm.convert to 3.3.2 2021-10-19 16:23:42 +02:00
Andrea Boriero 7f46f11f3b Merge remote-tracking branch 'upstream/main' into wip/6.0_merge 2021-10-19 16:23:07 +02:00
nathan.xu 8cf51a601b HHH-14883 Fix an Asciidoc defect and other verbiage issues in 'spatial' chapter in user guide 2021-10-18 09:47:52 +01:00
Steve Ebersole 92e1f593dc Drop doc section on JACC 2021-10-12 10:48:02 -05:00
Steve Ebersole 48068e0311 HHH-14857 Deprecations in preparation for 6 2021-10-11 19:36:23 +01:00
Steve Ebersole 686d8fcbf1 HHH-14870 - Rename {Xyz}TypeDescriptor as {Xyz}Type
* `JavaTypeDescriptor` -> `JavaType`
* `JdbcTypeDescriptor` -> `JdbcType`
2021-10-11 13:13:13 -05:00
Steve Ebersole 3a0065eea4 HHH-14870 - Rename {Xyz}TypeDescriptor as {Xyz}Type
* `JavaTypeDescriptor` -> `JavaType`
* `JdbcTypeDescriptor` -> `JdbcType`
2021-10-11 13:11:32 -05:00
Christian Beikov 548df627e6 Implement global configuration and sketch out annotations for time zone storage configuration. Move type tests and add skips for some tests running into H2 bugs. Also, fix some jdbc type assertion tests 2021-10-11 16:11:46 +02:00
Christian Beikov 597f4bdf6a Get rid of JdbcTypeDescriptor remapping 2021-10-11 16:11:46 +02:00
Steve Ebersole 41603e8d75 Fix User Guide build problems 2021-10-08 09:18:58 -05:00
Steve Ebersole d452b6e3ea HHH-14856 - Introduce @CustomType;
HHH-14865 - Re-work @Any and @ManyToAny support;
HHH-14863 - Compositional definition of basic value mappings;
HHH-14864 - Drop legacy Type-based annotations

* documentation work
2021-10-07 16:53:30 -05:00
Steve Ebersole ede52e9aba HHH-14856 - Introduce @CustomType;
HHH-14865 - Re-work @Any and @ManyToAny support;
HHH-14863 - Compositional definition of basic value mappings;
HHH-14864 - Drop legacy Type-based annotations

* documentation work
* support for using most of the new mapping annotations related to basic and any mappings as meta-annotations
* support for `@Mutability` on AttributeConverter implementations
* additional tests in the User Guide's BitSet mapping Case Study
2021-10-07 16:46:35 -05:00
Steve Ebersole 9ad34c21d4 HHH-14856 - Introduce @CustomType;
HHH-14863 - Compositional definition of basic value mappings;
HHH-14864 - Drop legacy Type-based annotations;
HHH-14865 - Re-work @Any and @ManyToAny support;

* re-use BeanInstanceProducer
* Removed `@CollectionId#type`
* Change `@Any` / `@ManyToAny`
* Removed `@MapKeyType`
* Removed `@TypeDef`
* Removed `@TypeDefs`
* Removed `@Type`
* Removed `@AnyMetaDefs`
* Removed `@AnyMetaDef`
* Removed `@MetaValue`
2021-10-07 10:01:21 -05:00
Christian Beikov 710ebe57b0 Get rid of using specialized BasicType implementations and references to those and instead use a BasicTypeReference that is lazily resolved 2021-10-07 08:15:53 +02:00
Christian Beikov 1cb6ff8916 Cleanup naming of JavaTypeDescriptor and JdbcTypeDescriptor implementations. Get rid of PrimitiveType, IdentifierType, DiscriminatorType and AllowableTemporalParameterType 2021-10-07 08:15:53 +02:00
Christian Beikov 653f62ac60 Move VersionType logic to VersionJavaTypeDescriptor 2021-10-07 08:15:53 +02:00
Christian Beikov 81e66fa970 Get rid of LiteralType 2021-10-07 08:15:53 +02:00
Christian Beikov 9e83129fc3 Change JavaTypeDescriptor#fromString to accept a CharSequence instead of String and introduce CharSequence utilities to avoid creating intermediate strings 2021-10-05 15:18:38 +02:00
Andrea Boriero 8c40de9cff Merge remote-tracking branch 'upstream/main' into wip/6.0_merge_main_7 2021-10-01 11:34:10 +02:00
Christian Beikov 05f643f208 Move some more jpa.test subpackages to orm.test 2021-09-30 13:52:31 +02:00
Steve Ebersole 8a8a92ca5e HHH-14844 - Drop JACC integration 2021-09-29 01:08:07 -05:00
Steve Ebersole 986d65a288 HHH-14837 - Move to Jakarta EE
More settings work
2021-09-28 19:01:28 -05:00
Steve Ebersole 828b96522c HHH-14837 - Move to Jakarta EE
fix references to JPA as Jakarta Persistence
2021-09-27 15:13:33 -05:00
Steve Ebersole 7bc1d55cdd improved aggregated javadoc generation 2021-09-27 08:21:36 -05:00
Steve Ebersole 089a3f86ae HHH-14837 - Move to Jakarta EE
preliminary transformation;
only `javax.persistence.*` settings supported atm
2021-09-27 08:21:27 -05:00
Steve Ebersole bd2f8271bd fix aggregateJavadoc task config 2021-09-23 08:32:46 -05:00
Karel Maesen 3995c644d1 HHH-14800 Implements suggestions from code review
- set version in deprecated Postgis dialects
- fast path for Contributor resolution
- add TODO label for Ignored tests
2021-09-21 11:55:41 +02:00
Karel Maesen 9316c161c7 HHH-14802 Update CockroachDB support for 6 2021-09-21 11:55:41 +02:00
Christian Beikov 77c1370e45 HHH-14642, HHH-13717 Various JPA Criteria related fixes
* Get rid of unnecessary whitespace and optional keywords in generated SQL
* Handle some type inference related issues with some databases requiring to render casted parameters in some situations
* Ensure SQM model is fully serializable
* Ensure JPA Criteria throws expected exceptions
* Make sure JPA Criteria implementations work properly
* Move jpa.test.callback and jpa.test.criteria packages
* Improve the reuse of SqmPath instances
* Get rid of many raw-types related warnings
* Make Predicate extend Expression and handle SQL rendering/emulation
* Support fetching SqmTuple as array
* Implement treat operator support
2021-09-09 16:39:31 +02:00
Christian Beikov dd6efa509b Introduce internal init_sql config and by default enable ansinull for Sybase ASE 2021-09-02 16:54:46 +02:00
Christian Beikov c71171a762 fixup! Ignore some tests that run into HSQLDB bugs 2021-09-02 16:54:46 +02:00
Christian Beikov c16731d14a Cleanup docs, implement appendHqlString for DiscriminatorSqmPath and fix MapMember type 2021-09-02 16:54:46 +02:00
Christian Beikov 118b160b02 Introduce special str function implementation for T-SQL 2021-08-31 14:52:59 +02:00
Christian Beikov b4a82f0854 Introduce TupleType for modelling structural types 2021-08-31 14:52:59 +02:00
Christian Beikov 1a3629a571 Fix some tests and config. Enable all documentation tests. Add profile for PG13 2021-08-31 14:52:59 +02:00
Christian Beikov c01734adca Rely on fetch of version attribute mapping instead of creating domain result for version mapping for entity initializers to allow overriding the selection expression 2021-08-30 17:18:02 +02:00
Christian Beikov 58440ed42d Fix failing EmbeddableOverrideTest on old Oracle versions due to too long identifier 2021-08-30 17:18:02 +02:00
Andrea Boriero cdeb95a4d5 Merge remote-tracking branch 'upstream/main' into wip/6.0 2021-08-30 14:07:19 +02:00
Sanne Grinovero 9267c5e6a6 HHH-14792 Remove support for bytecode enhancement via Javassist 2021-08-26 15:22:30 +01:00
Andrea Boriero 64c331150b Re-enabled additional documentation tests 2021-08-23 18:57:28 +02:00
Christian Beikov 1544493edc Wire up custom collection types 2021-08-16 17:36:50 +02:00
Christian Beikov 2f166c31df Fix some documentation tests and respect filters in Session.find as per HHH-14772, and respect explicit polymorphism 2021-08-09 07:22:57 +02:00
Christian Beikov b6683d2352 Fix some more result set mapping issues and fix HHH-7525 as well as HHH-10504 2021-08-06 23:15:50 +02:00
Jan Schatteman 3ec8b27b2a Added doc notes on the filter clause and the ilike predicate
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2021-08-05 23:35:17 +02:00
Steve Ebersole 07ec4f208d asciidoctor task config 2021-08-05 10:04:54 -05:00
Christian Beikov ca22db14bb Fix some issues with collection-path related HQL functions minindex/maxindex/minelement/maxelement/elements/indices and group by item rendering problems 2021-08-05 09:50:28 +02:00
Steve Ebersole 53fc490181 Document value generation;
Moved `@CurrentTimestamp` from src/test/java to src/main/java
2021-08-03 14:03:32 -05:00
Steve Ebersole be8be18bc0 minor asciidoctor task improvements + update plugin to 3.1 version 2021-08-02 18:04:41 -05:00
Gavin King 7aeb03beea remove older getJdbcType() method 2021-07-28 15:22:41 +02:00
Gavin King 07096e7cc1 introduce JDBCTypeDescriptor.getDefaultSqlTypeCode()
and rename sqlType -> jdbcTypeCode in Type hierarchy for consistency

See https://github.com/hibernate/hibernate-orm/discussions/4088
2021-07-28 15:22:41 +02:00
Steve Ebersole b26b00a358 Bump matrix testing plugin to 3.1.0 (prep for Gradle 7) 2021-07-14 11:44:35 -05:00
Andrea Boriero d6518e0c7a Re-enabled additional tests 2021-07-08 14:09:46 +02:00
Andrea Boriero 8895347867 Fix null dicriminator unable to cast MarkerObject to ... 2021-07-08 11:48:54 +02:00
Christian Beikov 6447ca9b26 HHH-14693, HHH-10668 Move non-supported dialects to the hibernate-community-dialects artifact and add the SQLite dialect originally contributed by Vlad Mihalcea which was adapted for Hibernate 6. Also add HSQLDB, MySQL and Sybase ASE configurations and a CI job config 2021-07-06 10:14:20 +02:00