Gavin King
539e270d5c
misc code style cleanups
2024-11-22 16:00:17 -06:00
Gavin King
f5062fca66
HHH-14020 add getServiceRegistry() to TypeBootstrapContext
2024-11-22 16:00:17 -06:00
Steve Ebersole
ec5bbe4546
HHH-18534 - Remove the org.hibernate.boot.models.categorize package
2024-11-22 15:30:22 -06:00
Jan Schatteman
b9274f5b75
HHH-18765 - additional fix needed for the generic array_to_string function
...
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2024-11-22 16:04:19 +01:00
Jan Schatteman
7e1a740605
HHH-18765 - fix error in the booleanarray_to_string auxiliary function for Oracle
...
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2024-11-22 16:04:19 +01:00
Jan Schatteman
62b6ed5cae
HHH-18765 - Add test for issue
...
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2024-11-22 16:04:19 +01:00
Gavin King
96cba56591
refactorings of FetchBuilders
...
attempt to migrate to "short functions" style (only partially successfully)
2024-11-22 12:16:25 +01:00
Gavin King
9f9eeb795b
make private
2024-11-22 12:16:25 +01:00
Christian Beikov
57142a86dd
HHH-18800 Add XML aggregate support for PostgreSQL
2024-11-22 11:18:22 +01:00
Christian Beikov
eeba7edf32
HHH-18799 Add XML aggregate support for Oracle
2024-11-22 11:18:22 +01:00
Christian Beikov
6d1b9c475a
HHH-18802 Add XML aggregate support for SQL Server
2024-11-22 11:18:22 +01:00
Christian Beikov
1077b6f0a9
HHH-18803 Add XML aggregate support for DB2
2024-11-22 11:18:22 +01:00
Christian Beikov
d39aa6d162
HHH-18801 Add XML aggregate support for Sybase ASE
2024-11-22 11:18:22 +01:00
Christian Beikov
6b1ea3e232
HHH-18804 Add XML aggregate support for HANA
2024-11-22 11:18:22 +01:00
Christian Beikov
c02eae1d89
HHH-16160 Fix some XML related issues that came up
2024-11-22 11:18:22 +01:00
Christian Beikov
c5f5e10df4
HHH-18629 Fix inconsistent column alias generated while result class is used for placeholder
2024-11-22 11:16:16 +01:00
Gavin King
800a3f0738
light refactoring to GeneratorBinder
2024-11-22 08:07:04 +01:00
Yanming Zhou
2f7052c0ce
HHH-18737 Introduce util methods for get bean from BeanContainer ( #9100 )
2024-11-22 01:30:35 +01:00
Nathan Xu
e4cba2c8d8
improve some Javadocs in sql package ( #9228 )
...
* improve some Javadocs in sql package
---------
Co-authored-by: nathan.xu <nathan.xu@procor.com>
Co-authored-by: Gavin King <gavin@hibernate.org>
2024-11-22 00:44:46 +01:00
Yanming Zhou
ff99ddbf14
HHH-18839 Validate property type of `@IdClass` at bind time
2024-11-22 00:41:48 +01:00
Karel Maesen
894fa8475b
HHH-18866 - Fix CockroachDB test failures
2024-11-21 15:44:58 +01:00
Steve Ebersole
21095565bc
HHH-7913 - Schema replacement in <subselect> / @Subselect
2024-11-21 06:53:51 -06:00
Christian Beikov
c8a66789d1
Fix some JSON function rendering issues on TiDB
2024-11-21 12:55:53 +01:00
Christian Beikov
bcd70a82c4
Fix some JSON function rendering issues on HANA
2024-11-21 12:55:53 +01:00
Selaron
b8dc72ccb2
HHH-18771: If positive, substract listIndexBase from index
2024-11-21 10:03:21 +01:00
Selaron
b5302f31e5
HHH-18771: Create test reproducing the problem
2024-11-21 10:03:21 +01:00
nathan.xu
6521ca94f7
remove unused close(Statement) and close(ResultSet) from JdbcCoordinatorImpl
2024-11-21 09:04:14 +01:00
Christian Beikov
f12c6c3aed
Don't render distinct from predicate on SQL Server versions that don't support it
2024-11-21 08:54:34 +01:00
Christian Beikov
c0804d366c
Fix rendering of xmltable and boolean handling for older versions of DB2
2024-11-21 08:54:34 +01:00
Christian Beikov
29b00d6754
Fix issue with unnest rendering for old PostgreSQL and EDB versions
2024-11-21 08:54:34 +01:00
Christian Beikov
ed5f1d82d1
Fix Sybase ASE nightly failure of NationalizedTest
2024-11-21 08:54:34 +01:00
Gavin King
453f0ff074
improve exception messages and logging related to tx management
...
along with some minor aesthetic code cleanups
2024-11-20 12:06:49 +01:00
Christian Beikov
47f1a1207a
HHH-18851 Fix parameter type inference issue when IN predicate is uses array_contains()
2024-11-20 10:17:57 +01:00
Steve Ebersole
26ed1e29ff
HHH-12996 - Property paths for associations that are part of the entity ID (i.e. IdClass) are not initialized
2024-11-19 16:31:35 -06:00
Steve Ebersole
6707dee0a6
HHH-18847 - Organize the org.hibernate.query.results package
2024-11-19 15:46:38 -06:00
Steve Ebersole
2c5e0ff113
HHH-12676 - SecondaryTables do not work with TABLE_PER_CLASS inheritance
2024-11-19 15:25:16 -06:00
Steve Ebersole
1b9f636114
HHH-12969 - Metadata for composite-id attributes inaccurate when an id-class is specified
2024-11-19 14:56:40 -06:00
Steve Ebersole
d29b842294
HHH-18864 - Creating NativeQuery with result-class leads to problems with addEntity and addRoot
2024-11-19 13:57:48 -06:00
Marco Belladelli
817355f8a4
HHH-18862 Small cleanups to SqmUtil
2024-11-19 16:18:29 +01:00
Marco Belladelli
39f78c89fd
HHH-18862 Add test for issue
2024-11-19 16:18:29 +01:00
Gavin King
dd80b3e2a5
HHH-18859 add a test for string slice operator
2024-11-18 22:00:54 +01:00
Gavin King
cfc4b0a644
HHH-18859 fix error message for slice operator applied to non-string non-array
2024-11-18 22:00:54 +01:00
Gavin King
0878fbbddf
fix generic typing of Consumers to make them contravariant
2024-11-18 17:28:27 +01:00
Gavin King
b15368b93e
document a default value
2024-11-18 17:28:27 +01:00
Gavin King
4a8d726d27
yet another time zone test
2024-11-18 16:12:59 +01:00
Gavin King
65312cc0f8
modernize code in SemanticQueryBuilder
2024-11-17 14:01:06 +01:00
Gavin King
2c08833c6d
clean up CollectionType
2024-11-17 12:19:38 +01:00
Gavin King
223855a104
"Oracle" is a proper noun
2024-11-16 21:21:52 +01:00
Gavin King
06961d7dbe
add missing @Override annotations and more @see in jdoc
2024-11-16 19:05:43 +01:00
Gavin King
a5536a0afe
add an @apiNote to SessionFactoryOptions
2024-11-16 19:05:43 +01:00
Gavin King
bbc343945f
remove unused import
2024-11-16 19:05:43 +01:00
Gavin King
439c90f501
add links between chapters
2024-11-16 19:05:43 +01:00
Gavin King
b0b258de11
slight cleanup to old code
2024-11-16 19:05:43 +01:00
Gavin King
e1f62098e2
fix generic typing and remove warning suppression
2024-11-16 19:05:43 +01:00
Gavin King
80a1b36477
cleanup and javadoc for SessionFactoryOptions
2024-11-16 19:05:43 +01:00
Andrea Boriero
6880f73ae0
HHH-18842 CollectionType.replace() breaks if target is PersistentCollection, but not instance of Collection
2024-11-16 09:53:39 -06:00
Andrea Boriero
2ba2695264
HHH-18842 Add test for issue
2024-11-16 09:53:39 -06:00
Gavin King
d784d6a808
clean up the MappingMetamodel interface
...
- deprecate some operations
- remove some already-deprecated operations
2024-11-15 20:00:24 +01:00
Gavin King
9a219c2c30
HHH-18850 fix count queries with 'distinct' and 'order by'
2024-11-15 16:13:28 +01:00
marko-bekhta
7cdab319fb
HHH-18841 Create `_identifierMapper` as a synthetic attribute
2024-11-15 10:37:00 +01:00
Gavin King
abcdd60b76
move ClassmateContext to SPI package, since it occurs in BootstrapContext
...
it was previously in an internal package, and leaked onto the SPI
2024-11-14 14:18:48 +01:00
Gavin King
df974fd1fb
move TypeBeanInstanceProducer as per the todo
2024-11-14 14:18:48 +01:00
Gavin King
b0ff5b1bec
remove dupe method declarations
2024-11-14 12:59:08 +01:00
Gavin King
d20de1f5d7
cleanups to InformationExtractorJdbcDatabaseMetaDataImpl
...
and more to AbstractInformationExtractorImpl
2024-11-14 12:59:08 +01:00
Gavin King
5d5ce3feda
clean up unused instance variables
2024-11-14 12:59:08 +01:00
Gavin King
12e17ed870
some cleanups to AbstractInformationExtractorImpl
2024-11-14 12:59:08 +01:00
Gavin King
26cd62ff6d
get rid of TruthValue and use Boolean
...
clean it up a bit
2024-11-14 12:59:08 +01:00
Gavin King
424460af3f
move Caching to spi package as planned
...
clean it up a bit
2024-11-14 12:59:08 +01:00
Gavin King
e2f3adc96f
remove deprecated methods made obsolete by Map.of()
2024-11-14 09:20:16 +01:00
Gavin King
dd858e3dbf
miscellaneous code cleanups
2024-11-14 09:20:16 +01:00
Gavin King
9d30d210ed
fix signature of Query.setOrder()
2024-11-14 09:20:16 +01:00
Steve Ebersole
538cad670f
fix hibernate-scan-jandex definitions
2024-11-13 17:41:38 -06:00
Steve Ebersole
3e1f6b52c6
fix hibernate-scan-jandex definitions
2024-11-13 14:13:08 -06:00
Yoann Rodière
74c5c844c0
HHH-18832 Don't skip bytecode enhancement just because an entity has a `@Transient` getter
2024-11-13 17:37:11 +01:00
Christian Beikov
0ca27a4e32
HHH-17246 Handle UUID specially within JSON
2024-11-13 17:21:09 +01:00
Jan Schatteman
532d5460d4
HHH-17246 - Guard against Sybase being configured for truncating trailing zeros
...
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2024-11-13 17:21:09 +01:00
Gavin King
ab9eb9a496
add examples to MutationQuery, SelectionQuery javadoc
2024-11-13 17:02:07 +01:00
Hibernate-CI
a1dab8060e
Post-steps for release : `7.0.0.Beta2`
2024-11-13 13:50:25 +00:00
Yoann Rodière
b5221e2ec6
HHH-18833 Introduce EnhancementContext#getUnsupportedEnhancementStrategy
...
This method allows custom contexts to pick the behavior they want when
a class contains getters/setters that do not have a matching field,
making enhancement impossible.
Three behaviors are available:
* SKIP (the default), which will skip enhancement of such classes.
* FAIL, which will throw an exception upon encountering such classes.
* LEGACY, which will restore the pre-HHH-16572 behavior.
I do not think LEGACY is useful at the moment, but I wanted to have
that option in case it turns out HHH-16572 does more harm than good in
Quarkus 3.15.
2024-11-13 11:47:34 +01:00
Gavin King
eb6cb31fdf
add some javadoc to KeyedResultList, Order, Page
2024-11-13 11:45:51 +01:00
Gavin King
65b9b43756
add Order.reversedIf() and ignoringCaseIf() to simplify generated code
2024-11-13 09:29:27 +01:00
Gavin King
83f7af31f3
cleanups to SqmUtil
2024-11-13 09:29:27 +01:00
Marco Belladelli
8a0dab9071
HHH-18647 Fix insert values check for table group joins
2024-11-12 16:22:59 +01:00
Marco Belladelli
91b18622d5
HHH-18647 Add test for issue
2024-11-12 16:22:59 +01:00
Marco Belladelli
0f8087209d
HHH-18816 FK rendering: check parent query specs for group by / order by
2024-11-12 16:22:33 +01:00
Marco Belladelli
3bac078b66
HHH-18816 Add test for issue
2024-11-12 16:22:33 +01:00
Steve Ebersole
2a9f4c41a8
HHH-18828 - Migrate to hisrc-basicjaxb for xjc plugins
2024-11-12 06:58:53 -06:00
Christian Beikov
839793e543
HHH-16159 Fix some JSON related issues that came up
2024-11-12 12:35:40 +01:00
Christian Beikov
4a07b5ed1d
HHH-18798 Add JSON aggregate support for SQL Server
2024-11-12 12:35:40 +01:00
Christian Beikov
d973dcc060
HHH-18797 Add JSON aggregate support for HANA
2024-11-12 12:35:40 +01:00
Christian Beikov
4d6f9baa93
HHH-18796 Add JSON aggregate support for DB2
2024-11-12 12:35:40 +01:00
Christian Beikov
26a8a693cc
HHH-18795 Add JSON aggregate support for CockroachDB
2024-11-12 12:35:40 +01:00
Christian Beikov
243306d12e
HHH-18794 Add JSON aggregate support for MariaDB
2024-11-12 12:35:40 +01:00
Christian Beikov
1f5f778358
HHH-18793 Add JSON aggregate support for MySQL
2024-11-12 12:35:40 +01:00
Gavin King
9facfbf2e9
HHH-18840 validate collection mapping annotations
2024-11-12 00:25:46 +01:00
Gavin King
192058f2f6
HHH-18840 validate collection mapping annotations
...
and fix tests which had ignored such annotations
2024-11-12 00:25:46 +01:00
Gavin King
ec4310a6de
HHH-18843 remove deprecated @OrderBy
2024-11-11 19:16:48 +01:00
Gavin King
f7a8144e3c
code cleanups to Binders
2024-11-11 18:08:35 +01:00
Gavin King
f1760ce6a2
HHH-18830 fallout from fix
...
improve handling of @MapKey and add tests
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-11 18:08:35 +01:00
Gavin King
4bd5223e6c
use switch expression in ColumnDefinitions
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-11 10:54:36 +01:00
Gavin King
5253875b41
Revert "'number' is a keyword on Oracle"
...
Unnecessary, since it isaregistered from JDBC metadata.
This reverts commit d9a807f237
.
2024-11-10 09:25:33 +01:00
Gavin King
29224ed148
remove wrong keyword list from DB2Dialect
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-10 09:25:33 +01:00
Gavin King
d9a807f237
'number' is a keyword on Oracle
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-10 01:16:58 +01:00
Gavin King
fd0c1ba565
cleanups to OneToManyPersister
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-10 01:16:58 +01:00
Gavin King
cdaee09fba
add a useful operation to ArrayHelper
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-10 01:16:58 +01:00
Gavin King
c86f151b7f
cleanups to AbstractCollectionPersister
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-10 01:16:58 +01:00
Gavin King
afa373f7c3
HHH-18830 fix tests
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-10 01:16:58 +01:00
Gavin King
9e5bd35cbb
HHH-18830 fix extraneous updates for unowned List with @OrderColumn
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-10 01:16:58 +01:00
Gavin King
0aa04eeecf
use @linkplain
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-10 01:16:58 +01:00
Gavin King
38355ccfc8
HHH-18830 test demonstrating bug in @OrderColumn
...
and that it doesn't exist with @OrderBy
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-10 01:16:58 +01:00
Gavin King
5adca84c43
use switch expressions
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-09 15:11:16 +01:00
Gavin King
5827a4fa41
replace log message with error
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-09 15:11:16 +01:00
Gavin King
cb38afc773
move away from magical unsaved-value strings
...
introduce NullValueSemantic
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-09 15:11:16 +01:00
Gavin King
529cb279d0
cleanups in UnsavedValueFactory
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-09 15:11:16 +01:00
Gavin King
30232c2b1a
more info in javadoc of some generator annotations
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-09 09:17:02 +01:00
Nathan Xu
019cbf5ed9
improve some JDBC related Javadocs ( #9195 )
...
improve some JDBC related Javadocs
Co-authored-by: nathan.xu <nathan.xu@procor.com>
2024-11-08 12:27:35 +01:00
Gavin King
b33890b38b
minor code cleanups to StringHelper
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-08 10:12:20 +01:00
Scott Marlow
356ea205ff
HHH-16572 - Skip enhancement for PROPERTY attributes with mismatched field and method names
...
Signed-off-by: Scott Marlow <smarlow@redhat.com>
2024-11-07 09:31:26 -07:00
Gavin King
14e0f12654
deal with more casts
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-07 15:22:46 +01:00
nathan.xu
dd036023cf
correct variable naming defects in SqmTranslatorFactory and StandardSqmTranslatorFactory
2024-11-07 11:13:37 +01:00
Christian Beikov
89554833b0
HHH-18703 Use natural order table numbers for subclass column closure
2024-11-07 10:38:48 +01:00
Vincent Bouthinon
176b6647f7
HHH-18703 : The JoinedSubclassEntityPersister#getTableNameForColumn method does not return the correct table in the JOINED inheritance strategy.
...
Cause: one uses a sorted set of tables, the other does not.
2024-11-07 10:38:48 +01:00
Gavin King
c698b8a056
clarify that @Generated does not always require a separate select statement
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-07 09:27:44 +01:00
nathan.xu
2eeb6153ff
HHH-18754 improve HQLParser's error listener usage in StandardHqlTranslator
2024-11-06 21:36:28 -06:00
Steve Ebersole
2ea226999d
HHH-18728 - Allow mixed discriminator-value mappings for ANY
...
HHH-18729 - Allow custom strategy for implicit discriminator-value determination for ANY
2024-11-06 20:05:36 -07:00
Gavin King
7fda1e0ebd
some minor cleanups
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-07 01:24:09 +01:00
Andrea Boriero
de6aa69fb0
HHH-18633 Split Jandex-based scanning into new module/artifact
2024-11-06 09:26:50 -07:00
Andrea Boriero
5280e15ba0
HHH-18522 Drop hard requirements on Jandex
2024-11-06 09:26:49 -07:00
Gavin King
cf0ab77cf2
HHH-18815 introduce Generator.generatedBeforeExecution()
...
so that GeneratedGeneration does not need to implement BeforeExecutionGenerator
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-06 14:45:23 +01:00
Gavin King
5fca1206b2
HHH-18815 @Generated should not imply @Immutable
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-06 14:45:23 +01:00
Gavin King
51254568df
HHH-18815 add Generator.allowMutation()
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-06 14:45:23 +01:00
Gavin King
731a5dbdd5
HHH-18815 clarify and test semantics of @Generated and @Immutable
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-06 14:45:23 +01:00
Gavin King
00f6115b42
version reset should not be affected by the id being assigned or generated
...
improve javadoc for this stuff
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-06 14:45:23 +01:00
Gavin King
b948fde3b3
HHH-18815 allow update of @Generated fields
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-06 14:45:23 +01:00
Gavin King
b83a7fef80
HHH-18809 improve the test
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-06 14:45:23 +01:00
Marco Belladelli
9886b7acf9
HHH-18564 Handle attribute converters for query literals
...
Allow both domain and relational forms when an attribute converter is present
2024-11-05 16:59:42 +01:00
Marco Belladelli
d1980cba14
HHH-18564 Add test for issue
2024-11-05 16:59:42 +01:00
nathan.xu
3153bce9b5
HHH-18808 remove logging when keyword is used as identifier in HqlParser.g4
2024-11-05 14:25:30 +01:00
Christian Beikov
f7c5ff28f0
HHH-18792 Add JSON aggregate support for H2
2024-11-05 13:23:22 +01:00
Gavin King
7fec477bc2
HHH-18809 update Javadoc with this usage
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-05 00:21:39 +01:00
Gavin King
e4b52c2cf1
HHH-18809 auto-disable use of getGeneratedKeys() when there is a @Formula
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-05 00:21:39 +01:00
Gavin King
fc1d0f5456
minor changes
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-05 00:21:39 +01:00
Gavin King
e60d674bfe
HHH-18809 support @Formula @Generated
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-05 00:21:39 +01:00
Gavin King
18ccd6ed80
HHH-18783 some cleanups, and leave a big TODO
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-04 20:58:38 +01:00
Gavin King
050da72ae9
HHH-18783 test for trailing space handling in cast()
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-04 20:58:38 +01:00
Čedomir Igaly
4fbade6076
HHH-18783 Removed @SkipForDialect from test case
...
Method getSqlType for java.lang.Character without length should return "char(1)", not "char"
2024-11-04 20:58:38 +01:00
Gavin King
c0a14334d1
some misc cleanups to mapping package
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-04 18:15:17 +01:00
Gavin King
4dcfdb57e5
add missing @Override annotations, light refactoring
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-04 16:32:03 +01:00
Gavin King
f9e544e394
improve javadoc
...
experiment with transferTo() to copy Blob/Clob streams instead of getSubString()
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-04 16:32:03 +01:00
Gavin King
35b97a040e
package reorg for some Blob/Clob-related types
...
stop using Proxy to implement Clob/NClob
(this is more consistent with BlobProxy)
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-11-04 16:32:03 +01:00