Andrea Boriero
70c09dfb54
Fix test failure after merge
2021-09-24 13:17:25 +02:00
Andrea Boriero
0b9a470685
Merge remote-tracking branch 'upstream/main' into wip/6.0
2021-09-24 12:50:56 +02:00
Gail Badner
c6e3bf2ef8
HHH-14835 : More changes to support SchemaMigrator/SchemaValidator using Hibernate Reactive
...
Add jira key to test case
2021-09-24 11:17:17 +01:00
Andrea Boriero
8cecdd3f43
HHH-14835 : Fix Sybase Connection#getSchema() throws an exception
...
(cherry picked from commit aaba4767fe
)
2021-09-24 11:17:17 +01:00
Gail Badner
dec331362c
HHH-14835 : More changes to support SchemaMigrator/SchemaValidator using Hibernate Reactive
...
Changes required for sequences to be created with a default catalog
2021-09-24 11:17:17 +01:00
Christian Beikov
340c1b3f61
HHH-11042 Implement tuple distinct count emulation
2021-09-23 18:04:02 +02:00
Christian Beikov
3ecc602852
Implement tuple count emulation
2021-09-23 18:04:02 +02:00
Christian Beikov
aa7b5529e9
Fix determining table groups for fetches and reuse joins for parsed paths. Fix determining correct table group for SqmFrom usages. Fix indexed access for plural paths
2021-09-23 18:04:02 +02:00
Christian Beikov
07f6d31d2b
Fix missing table reference issues by translating all SqmRoots and SqmJoins to proper path interpretations
2021-09-23 18:04:02 +02:00
Christian Beikov
e8d337828b
Fix bidirectional fetching issues
2021-09-23 18:04:02 +02:00
Christian Beikov
905227d2ed
Get rid of unnecessary sql tokens for joins and improve join counting for tests
2021-09-23 18:04:02 +02:00
Christian Beikov
582e7f84aa
Implement support for detecting bidirectional attribute name for many-to-one
2021-09-23 18:04:02 +02:00
Christian Beikov
3cf0d9f037
fixup! Move jpa.enhancement, jpa.graphs, jpa.ops, jpa.orphan, jpa.secondarytable, jpa.transaction, jpa.userguide, jpa.version and query.criteria packages
2021-09-23 18:04:02 +02:00
Christian Beikov
bc6022459d
Fix JPA Criteria parameter inference for case when expressions
2021-09-23 18:04:02 +02:00
Christian Beikov
e59f2b9761
Fix too eager collection fetching, wrong fetch timing determination and `entityAlias = :param` usages
2021-09-23 18:04:02 +02:00
Christian Beikov
6096bbdfa1
Move jpa.enhancement, jpa.graphs, jpa.ops, jpa.orphan, jpa.secondarytable, jpa.transaction, jpa.userguide, jpa.version and query.criteria packages
2021-09-23 18:04:02 +02:00
Jan Schatteman
5df67d8b43
Move and adapt tests from sql/storedproc
...
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2021-09-23 17:32:41 +02:00
Andrea Boriero
5b24b171da
Resolve collection key selection expressions for delayed collection fetches of dynamic fetch builders with the suffixed column alias of the referenced property name
2021-09-21 12:57:47 +02:00
Karel Maesen
2bdd10389b
HHH-14757 Use geolatte's JTSUtils
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
Karel Maesen
0b9de79a7d
HHH-14800 Use TypeContributor to register spatial types
2021-09-21 11:55:41 +02:00
Andrea Boriero
61d1891f55
Re-enabled additional tests
2021-09-21 09:11:49 +02:00
Andrea Boriero
e466c52002
Merge remote-tracking branch 'upstream/main' into wip/6.0
2021-09-21 08:46:04 +02:00
Yanming Zhou
99f027166d
HHH-4369 Introduce @Comment for comment on column
2021-09-20 22:59:32 +01:00
Andrea Boriero
5ffed50f1f
HHH-14826 Fix failure of o.h.test.onetoone.cache.OneToOneCacheTest#OneToOneCacheByForeignKey()
2021-09-20 22:39:38 +01:00
Andrea Boriero
340b9012d9
HHH-14826 Extract issue specific tests from OneToOneCacheTest
2021-09-20 22:39:38 +01:00
Amit Mendapara
a652822ff5
HHH-14826 Fix regression caused by one-to-one L2 cache support
2021-09-20 22:39:38 +01:00
Amit Mendapara
b15433a49c
HHH-14826 Add test to check regression caused by OneToOne cache support
2021-09-20 22:39:38 +01:00
Yoann Rodière
5e542b16cb
HHH-14828 Remove final modifier from enhanced fields
...
We need to remove the final modifier if we want to address the possibility
of that field being lazy.
2021-09-20 22:34:24 +01:00
Yoann Rodière
d35b592762
HHH-14828 Do not enhance final field write access
2021-09-20 22:34:24 +01:00
Yoann Rodière
0b80bb73c9
HHH-14828 Enable bytecode enhancement logging in core tests
2021-09-20 22:34:24 +01:00
Yoann Rodière
1d3f9183e6
HHH-14828 Fix incorrect logging in FieldAccessEnhancer
2021-09-20 22:34:24 +01:00
Yoann Rodière
e0286ba4b4
HHH-14828 Test bytecode enhancement on entities/embeddables with a final field
2021-09-20 22:34:24 +01:00
Andrea Boriero
9dcca5f213
Fix issues after merge main branch
2021-09-17 15:34:46 +02:00
Andrea Boriero
6519b3bfcd
Merge remote-tracking branch 'upstream/main' into wip/6.0
2021-09-17 15:33:08 +02:00
Andrea Boriero
52c932cc1c
Merge remote-tracking branch 'upstream/main' into wip/6.0
2021-09-17 11:52:20 +02:00
Gail Badner
d17861d928
HHH-14794 : More changes to support SchemaMigrator/SchemaValidator using Hibernate Reactive
...
Changes required by SQL Server
2021-09-17 10:40:30 +01:00
ENTERPRISE-X64\bertiepinnock
24b9605c52
HHH-13661 | Added case to PostgreSQL Dialect to map client operation cancellation to QueryTimeoutException
2021-09-17 10:05:37 +02:00
Nathan Xu
ad6af3af7d
HHH-14413 fix issue that EntityUpdateAction increments version despite veto on update
2021-09-17 09:24:57 +02:00
Andrea Boriero
83e5ba0450
Re-enabled additional test
2021-09-16 16:57:58 +02:00
Andrea Boriero
7b6ee23f19
Merge remote-tracking branch 'upstream/main' into wip/6.0
2021-09-16 16:49:52 +02:00
Yoann Rodière
86ad83f0b5
HHH-14827 Fix @AssociationOverride/@PrimaryKeyJoinColumn at type level being ignored when also using orm.xml
2021-09-16 16:23:00 +02:00
Yoann Rodière
70d7ac6ecd
HHH-14827 Fix @AttributeOverride at type level being ignored when also using orm.xml
2021-09-16 16:23:00 +02:00
Yoann Rodière
170821c135
HHH-14827 Test using @AttributeOverride and also an orm.xml file
2021-09-16 16:23:00 +02:00
Andrea Boriero
793c8096ac
Fix SQLServer test failure
2021-09-15 18:52:40 +02:00
Andrea Boriero
3126e79784
Merge remote-tracking branch 'upstream/main' into wip/6.0
2021-09-15 17:02:55 +02:00
Rafael Lillo
f6a03cf771
HHH-5249 Add more details MappingException
2021-09-15 12:06:59 +01:00
Knut Wannheden
caa84d3ad9
HHH-13999 Support SQL Server 2016
...
SQL Server 2016 (13.x) and later support the `if exists` clause for most `drop` DDL statements. The new `SQLServer2016Dialect` dialect accounts for this and offers the advantage that no error messages get logged when using `hibernate.hbm2ddl.auto=create-drop`.
2021-09-15 10:22:18 +01:00
Jan Schatteman
0cbf0e5bf8
Minor improvement to the previous backport commit
...
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2021-09-14 00:25:50 +02:00
Krzysztof Debski
3eaafaf2f3
HHH-11755 Drop "Serializable" from the Event Listener interfaces
2021-09-13 16:43:10 +01:00
Christian Beikov
0af8755949
Backport of changes from 6314395edf
on
...
wip/6.0 (Fix connection leaks by properly closing service registries)
2021-09-13 17:32:18 +02:00
boris-unckel
f24b91da2a
HHH-14763 Avoid suppress exceptions in try/finally
2021-09-09 17:41:43 +02:00
Christian Beikov
6314395edf
Fix connection leaks by properly closing service registries
2021-09-09 16:39:31 +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
Yoann Rodière
a216a23ae4
HHH-14814 Test delete HQL queries with function calls
2021-09-09 09:32:44 +02:00
Andrea Boriero
304af1c3a6
Fix Oracle test failure
2021-09-08 17:05:34 +02:00
Andrea Boriero
e2a1ae27d7
Fix Oracle identifier is too long test failure
2021-09-08 11:39:07 +02:00
Andrea Boriero
7275f160a7
Re-enabled additional tests
2021-09-08 11:27:24 +02:00
Andrea Boriero
0c96fd75af
Re-enabled additional tests
2021-09-08 11:27:24 +02:00
Andrea Boriero
b2b8197388
Migrate test to JUnit 5
2021-09-07 19:03:01 +02:00
Gavin King
8ce2098deb
test for filtering @OneToMany associations by discriminator
...
see https://github.com/eclipse-ee4j/jpa-api/issues/39#issuecomment-830112571
2021-09-07 19:03:01 +02:00
Andrea Boriero
3bc890dc48
Merge branch 'main' into wip/6.0_merge_main
2021-09-07 17:34:40 +02:00
Andrea Boriero
236e901cd1
Merge remote-tracking branch 'upstream/main' into wip/6.0
2021-09-07 17:22:42 +02:00
Arkadiusz Biczewski
e0d262cc3f
HHH-14813 Update DB2 dialect with bind parameters limit
...
Provide allowed parameters limit for DB2 queries based on official documentation: https://www.ibm.com/docs/en/db2/11.5?topic=sql-xml-limits
2021-09-07 15:23:58 +01:00
Andrea Boriero
e07e6d4105
Re-enabled additional tests
2021-09-07 15:54:47 +02:00
Andrea Boriero
8dbac8d44c
Re-enabled additional tests
2021-09-07 15:54:47 +02:00
Andrea Boriero
05ea5d2c79
Re-enabled additional tests
2021-09-07 15:54:47 +02:00
Andrea Boriero
ccb590caf4
Re-enabled additional tests
2021-09-07 15:54:47 +02:00
Andrea Boriero
6f32391ed7
Re-enabled additional tests
2021-09-07 15:54:47 +02:00
Andrea Boriero
8d6ada3357
Re-enabled additional tests
2021-09-07 15:54:47 +02:00
Andrea Boriero
94c4bcf66f
Re-enabled additional tests
2021-09-07 15:54:47 +02:00
Andrea Boriero
4563c73abb
Fix final attributes getter and setter methods log Could not create proxy factory instead of failing SF creation
2021-09-07 15:54:47 +02:00
Andrea Boriero
7d4df4a01b
Re-enabled additional tests
2021-09-07 15:54:47 +02:00
rmartinc
a666ac0dac
HHH-14796 Cannot replace an existing JPQL NamedQuery with a native NamedQuery
2021-09-07 12:28:28 +01:00
Gavin King
971a47d15d
expose two operations on EntityType for use by Hibernate Reactive
...
see https://github.com/hibernate/hibernate-reactive/pull/954
2021-09-07 12:17:57 +01:00
Yoann Rodière
3810727f5d
HHH-14811 Throw LazyInitializationException on lazy-loading an association on a deleted entity with bytecode enhancement
2021-09-07 11:41:04 +01:00
Yoann Rodière
30a5acf741
HHH-14811 Test loading a lazy association on a deleted entity with bytecode enhancement
2021-09-07 11:41:04 +01:00
Gavin King
e929ac94ce
removed unused code path from generateInsertString()
...
as suggested in the TODO
2021-09-07 09:28:09 +02:00
Gavin King
d1806c5e92
insert with @DynamicInsert should use generateIdentityInsertString()
...
see the comment in generateInsertString()
2021-09-07 09:28:09 +02:00
Steve Ebersole
60e97bcfca
Allow for PU jar-file entries as relative file paths (intended for testing)
2021-09-02 14:02:46 -05: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
9e4e9ce0d5
Determine ansinull setting for Sybase ASE and implement proper comparison handling when it is off
2021-09-02 16:54:46 +02:00
Christian Beikov
ea099e7e85
Fix some query caching issue related to pagination parameters and a small case sensitivity issue
2021-09-02 16:54:46 +02:00
Christian Beikov
59fbdb9039
Treat BIT if reported by ResultSetMetaData like BOOLEAN
2021-09-02 16:54:46 +02:00
Christian Beikov
65016aaf42
Implement envers order fragment support by introducing an internal sqm function and re-enable all envers tests
2021-09-02 16:54:46 +02:00
Christian Beikov
86000e9f22
Capture whether a foreign key is constrained and allow skipping the foreign key access optimization explicitly
2021-09-02 16:54:46 +02:00
Christian Beikov
f23ecfc58e
Implement type name preserving for envers and properly escape string values when transforming to literals
2021-09-02 16:54:46 +02:00
Christian Beikov
acc5d0d977
Re-implement nested property access in getPropertyValue
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
76bfbccbe6
Fix issues with parameterized user type by restoring what Hibernate 5 did
2021-09-02 16:54:46 +02:00
Christian Beikov
f2598d70b9
Fix secondary table join component ordering issue
2021-09-02 16:54:46 +02:00
Andrea Boriero
20d09fafe4
Throw Mapping exception when multiple component for the same java class has different property mapping
2021-09-01 10:34:55 +02:00
Jan Schatteman
bf57f31a8f
Move some tests from test.annotations to orm.test.annotations
...
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2021-08-31 17:25:49 +02:00
Andrea Boriero
c223ea16cb
Fix Sybase issue storing negative values for Byte attributes
2021-08-31 14:54:40 +02:00
Andrea Boriero
f3ff509095
Fix resolveMappingExpressable for SqmFieldLiteral
2021-08-31 14:54:40 +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
Andrea Boriero
bf79ff6cfd
Fix Sybase failure
2021-08-31 09:17:15 +02:00
Andrea Boriero
bb7b524e40
Re-enabled additional tests
2021-08-31 09:17:15 +02:00
Steve Ebersole
6f60cd8918
improve discriminator handling
...
- use fetch/result as the distinction for whether to select Class / entity-name or the "underlying type" value for discriminator. The only time we'd have a DomainResult for the discriminator is for Query where the type is selected; all other times want the underlying type
2021-08-30 13:32:52 -05:00
Andrea Boriero
aaba4767fe
Fix Sybase Connection#getSchema() throws an exception
2021-08-30 18:34:42 +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
75d2ada4d8
Fix component and foreign- as well as primary-key properties/columns ordering
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
Gail Badner
a70b994526
HHH-14744 : Refactor contextual information for SchemaManagementTool to be more easily extended by Hibernate Reactive
...
1. Add CockroachDB192Dialect#getNameQualifierSupport and #buildIdentifierHelper.
2. Change semantics for AbstractInformationExtractorImpl#processIndexInfoResultSet
to be more friendly to subclasses.
2021-08-25 15:31:45 +01:00
Gail Badner
f4f4d49da0
HHH-14744 : Refactor contextual information for SchemaManagementTool to be more easily extended by Hibernate Reactive
...
Add MySQLDialect#getNameQualifierSupport
2021-08-25 15:31:45 +01:00
Gail Badner
b17a46cbd5
HHH-14744 : Refactor contextual information for SchemaManagementTool to be more easily extended by Hibernate Reactive
...
Remove SequenceInformationExtractorPostgresSQLDatabaseImpl and PostgreSQL10Dialect#getSequenceInformationExtractor
2021-08-25 15:31:45 +01:00
Gail Badner
352eb2fae1
HHH-14744 : HHH-14744 : Refactor contextual information for SchemaManagementTool to be more easily extended by Hibernate Reactive
...
Move methods from PostgreSQL10Dialect into PostgreSQL81Dialect; remove @GeneratedValue from SchemaUpdateTest
2021-08-25 15:31:45 +01:00
Gail Badner
3720e5fac4
HHH-14744 : HHH-14744 : Refactor contextual information for SchemaManagementTool to be more easily extended by Hibernate Reactive
...
Remove PostgreSQL10Dialect#buildIdentifierHelper since it is no longer needed.
2021-08-25 15:31:45 +01:00
Gail Badner
42b8be7852
HHH-14744 : Refactor contextual information for SchemaManagementTool to be more easily extended by Hibernate Reactive
...
Correct specifications for row order of some ResultSets.
2021-08-25 15:31:45 +01:00
Gail Badner
95ef2ae41d
HHH-14744 : Refactor contextual information for SchemaManagementTool to be more easily extended by Hibernate Reactive
...
Add Javadoc and other minor changes to make it easier to review
2021-08-25 15:31:45 +01:00
Gail Badner
8aae155c50
HHH-14744 : Refactor contextual information for SchemaManagementTool to be more easily extended by Hibernate Reactive
...
Move new methods out of SchemaManagementTool and into ExtractionTool
2021-08-25 15:31:45 +01:00
Gail Badner
800436ee88
HHH-14744 : Checkstyle fixes
2021-08-25 15:31:45 +01:00
Gail Badner
4bb3de09a1
HHH-14744 : Refactor contextual information for SchemaManagementTool to be more easily extended by Hibernate Reactive
...
HHH-14744 : Restore databases/pgsql/resources/hibernate.properties and gradle/databases.gradle
2021-08-25 15:31:45 +01:00
Andrea Boriero
39ee0236be
Fix problem with DB2, PostgerSQL with CTE table names for quoted tables
2021-08-24 16:16:25 +02:00
Andrea Boriero
3f87ed17ee
Re-enabled additional tests
2021-08-24 16:16:25 +02:00
Andrea Boriero
a8201bacdb
Fix Sybase failing test
2021-08-24 10:18:01 +02:00
Andrea Boriero
718d1e4380
Fix compilation errors
2021-08-24 10:18:01 +02:00
Steve Ebersole
dbed6112c8
test enablement - org.hibernate.query package
2021-08-23 19:22:14 -05:00
Steve Ebersole
b7bbbcc19c
Query hints - native query synchronized spaces
...
+ cleaned up unused contracts in `org.hibernate.query.sql`
2021-08-23 17:51:32 -05:00
Steve Ebersole
bc4b0c9d08
Query hints - native query synchronized spaces
...
+ cleaned up unused contracts in `org.hibernate.query.sql`
2021-08-23 17:42:27 -05:00
Steve Ebersole
0c674deda5
Query hints
...
+ dropped `AbstractProducedQuery` (no subclasses)
2021-08-23 13:41:41 -05:00
Andrea Boriero
6011421fb7
Merge remote-tracking branch 'upstream/main' into wip/6.0
2021-08-23 15:05:28 +02:00
boris-unckel
db3346962a
HHH-14764 Testsuite: AssertionErrors must not be caught
...
Fixes https://hibernate.atlassian.net/browse/HHH-14764
2021-08-23 12:06:59 +02:00
Steve Ebersole
82856070ec
discriminator work
...
- Handle discriminator as Fetch for entity ResultGraphNodes. This allows us to make the distinction about whether to handle the discriminator as `Class` or as its "underlying" type when selecting it. Fetches return the underlying type. DomainResults return `Class`, or String for entity-named entity mappings
2021-08-20 18:48:14 -05:00
Steve Ebersole
6803c09645
fixes for Antlr tasks
2021-08-20 18:27:46 -05:00
Steve Ebersole
524b2982cf
discriminator work
...
- Handle discriminator as Fetch for entity ResultGraphNodes. This allows us to make the distinction about whether to handle the discriminator as `Class` or as its "underlying" type when selecting it. Fetches return the underlying type. DomainResults return `Class`, or String for entity-named entity mappings
2021-08-20 14:26:40 -05:00
Steve Ebersole
fb651ef07d
discriminator work
...
- Handle discriminator as Fetch for entity ResultGraphNodes. This allows us to make the distinction about whether to handle the discriminator as `Class` or as its "underlying" type when selecting it. Fetches return the underlying type. DomainResults return `Class`, or String for entity-named entity mappings
2021-08-20 14:02:26 -05:00
Steve Ebersole
78bd816a85
discriminator work
...
- Handle discriminator as Fetch for entity ResultGraphNodes. This allows us to make the distinction about whether to handle the discriminator as `Class` or as its "underlying" type when selecting it. Fetches return the underlying type. DomainResults return `Class`, or String for entity-named entity mappings
2021-08-20 13:41:55 -05:00
Steve Ebersole
c0de4c7854
discriminator work
...
- Handle discriminator as Fetch for entity ResultGraphNodes. This allows us to make the distinction about whether to handle the discriminator as `Class` or as its "underlying" type when selecting it. Fetches return the underlying type. DomainResults return `Class`, or String for entity-named entity mappings
2021-08-20 13:41:55 -05:00
Steve Ebersole
83ac9d5d3d
xjc task config
2021-08-20 13:41:55 -05:00
Steve Ebersole
a532445e35
test migration
2021-08-20 13:41:54 -05:00
Andrea Boriero
bbc9e6af20
Re-enabled additional tests
2021-08-18 11:37:49 +02:00
Andrea Boriero
75ff2500c7
Re-enabled additional tests
2021-08-18 11:37:49 +02:00
Andrea Boriero
d46db44082
Re-enabled additional tests
2021-08-18 11:37:49 +02:00
Andrea Boriero
746aeb5c95
Re-enabled additional tests
2021-08-18 11:37:49 +02:00
Andrea Boriero
9710bfcf39
Fix load toOne association not referencing a PK with FetchMode.SELECT
2021-08-18 11:37:49 +02:00
Andrea Boriero
5160c8ac6a
Fix throw EntityNotFoundException when an association not mapped with @NotFound(IGNORE) is null
2021-08-18 11:37:49 +02:00
Christian Beikov
1ba3595292
HHH-14777 Enabled skip locked rendering for MariaDB 10.6+
2021-08-17 10:38:27 +02:00
Christian Beikov
dffe592cde
HHH-14777 Enabled skip locked rendering for MariaDB 10.6+
2021-08-17 10:38:18 +02:00
The Geeky Asian
971d0f1fc5
HHH-13848 - Fix for potential NullPointerException
...
The callers of the convert() method in ResourceRegistryStandardImpl expect an exception which is then thrown. This me produce NullPointerException, which has been fixed in this commit.
2021-08-16 22:47:43 +02:00
Christian Beikov
e0c77e82ad
Properly calculate binary digit numbers for float based on decimal digit numbers
2021-08-16 17:36:50 +02:00
Christian Beikov
e415d1bde6
Move annotations.manytoone tests and fix table reference resolving issues
2021-08-16 17:36:50 +02:00
Christian Beikov
76f424fcff
Move annotation.manytomany tests and fix filter rendering as well as collection owner initialization and fetching of non-PK to-one attributes
2021-08-16 17:36:50 +02:00
Christian Beikov
b326b303d3
Add a millisecond sleep to ensure generated timestamp annotation tests work
2021-08-16 17:36:50 +02:00
Christian Beikov
58078aee66
Move annotations.lob tests
2021-08-16 17:36:50 +02:00
Christian Beikov
1544493edc
Wire up custom collection types
2021-08-16 17:36:50 +02:00
Andrea Boriero
ffff90757a
Merge remote-tracking branch 'upstream/main' into wip/6.0
2021-08-16 16:21:26 +02:00
Andrea Boriero
8174f8ab9d
Re-enabled additional tests
2021-08-16 16:03:30 +02:00
Andrea Boriero
7e4275c46e
Loading circula bidirectional fetch associations not referring to PK
2021-08-16 16:03:30 +02:00
Andrea Boriero
053153847b
Initialize collection with key not referring to PK
2021-08-16 16:03:30 +02:00
Yoann Rodière
544dbbf762
HHH-14770 Revert "HHH-14770 Optimise access to EntityPersister in Metamodel via Class type"
...
This reverts commit 9a335c1c04
.
2021-08-12 11:57:00 +02:00
Andrea Boriero
ad61c8f1d4
Fix errors after upstream/main merge
2021-08-11 09:23:43 +02:00
Andrea Boriero
52b83829f1
Merge remote-tracking branch 'upstream/main' into wip/6.0
2021-08-11 09:22:57 +02:00
boris-unckel
e1b82b005c
HHH-14762 Testsuite: Assert.notNull must not be used on primitive types
...
Fix https://hibernate.atlassian.net/browse/HHH-14762
2021-08-10 14:08:34 +02:00
Sanne Grinovero
fb0279e3a7
HHH-14625 Avoid performing a ServiceRegistryLookup in JtaTransactionCoordinatorImpl constructor
2021-08-09 17:28:37 +01:00
Andrea Boriero
fb62f9611a
Fix issue with query alias case sensitive and JPAQL strict compliance
2021-08-09 17:55:16 +02:00
Sanne Grinovero
135361a6b8
HHH-14776 Optimise Loader operations by using the Persister directly
2021-08-09 15:55:46 +01:00
Sanne Grinovero
edcce3e1c2
HHH-14776 Promote method instantiate(EntityPersister, Serializable) from SessionImplementor to SharedSessionContractImplementor
2021-08-09 15:55:46 +01:00
Sanne Grinovero
9a335c1c04
HHH-14770 Optimise access to EntityPersister in Metamodel via Class type
2021-08-09 12:55:05 +01:00
Andrea Boriero
d4c296b732
Merge remote-tracking branch 'upstream/main' into wip/6.0
2021-08-09 12:48:00 +02:00
Sanne Grinovero
2390416318
HHH-14773 JdbcCoordinatorImpl micro improvement: unguarded tracev parameters should be constant
2021-08-09 10:58:18 +01:00
boris-unckel
c9b8776d3a
HHH-14760 Close resource - potential resource leak
...
Fixes https://hibernate.atlassian.net/browse/HHH-14760
2021-08-09 10:40:27 +01:00
boris-unckel
3be25aa899
HHH-14760 Close resource - potential resource leak
...
Fixes https://hibernate.atlassian.net/browse/HHH-14760
2021-08-09 10:28:06 +01: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
Christian Beikov
dd650705d0
Add some delay between save an update of update-timestamp tests
2021-08-06 23:15:50 +02:00
Christian Beikov
62514e9e53
Fix resolving parameter type if other side is a subquery returning a collection part
2021-08-06 23:15:50 +02:00
Christian Beikov
b30c9aea8e
Move annotations.loader tests and implement support for collection returns
2021-08-06 23:15:50 +02:00
Christian Beikov
15f2dca36d
Move annotations.inheritance tests and implement qualifier omission for formulas in DML statements
2021-08-06 23:15:50 +02:00
Christian Beikov
f84585c5ed
Move annotations.immutable tests and implement immutable update warning/error
2021-08-06 23:15:50 +02:00
Christian Beikov
eaba3acc20
Move annotations.idmanytoone tests and fix property lookup of identifierMapper
2021-08-06 23:15:50 +02:00
Christian Beikov
7b58e700db
Make sure the SerializableJavaTypeDescriptor is never used for entities. Fix a wrong JDBC mapping causing problems converted attributes. Force IMMEDIATE fetch timing for many-to-one associations with NotFound.IGNORE
2021-08-06 23:15:50 +02:00
Christian Beikov
5da81c2263
Move annotations.formula package
2021-08-06 23:15:50 +02:00
Christian Beikov
adf8da6bed
Move annotations.fetch package
2021-08-06 23:15:50 +02:00
Christian Beikov
7216823afd
Move annotations.enumerated tests and fix some type parameterization and enum related issues
2021-08-06 23:15:50 +02:00
Christian Beikov
38e1704f43
Fix creation of proper navigable path for identifier mapper
2021-08-06 23:15:50 +02:00
Christian Beikov
75f4e635f2
Fix HBM return-join handling
2021-08-06 23:15:50 +02:00
Christian Beikov
95a34e2895
Move test.type.contributor and implement support for constructor injection of TypeBootstrapContext
2021-08-06 23:15:50 +02:00
Christian Beikov
d3810b8f7a
Implement support for non-primary-key foreign keys
2021-08-06 14:46:35 +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
Jan Schatteman
0c1c469352
HHH-14739 - Implement ILike support
...
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2021-08-05 23:35:17 +02:00
Christian Beikov
be485796b1
Cleanup the grammar and generify same-structured function rules
2021-08-05 17:37:00 +02:00
Christian Beikov
e0076f8e20
Fix generated value issues with Oracle
2021-08-05 09:50:28 +02:00
Christian Beikov
1fb839b841
Skip some tests for databases that don't support a current_timestamp function with microsecond precision
2021-08-05 09:50:28 +02: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
3b78f30309
Few Gradle file related tasks
...
- dropped explicit apt output handling - Gradle has that built in
- Switched other uses to write to the standard `${buildDir}/generated/sources` dir
2021-08-02 16:35:16 -05:00
Steve Ebersole
230c787b3c
Fixes for Yoann's search + 6.0 tracking
...
- Support for generated values
- See `@ProposedGenerated` for proposed change to `@Generated`; without that change, `@Generated` will not work with update-generation; nor does it work on 5.x
2021-08-02 15:43:19 -05:00
Christian Beikov
b8afa46d8f
Fix row value comparison emulation rendering issue that occurred on SAP HANA
2021-08-02 14:56:02 +02:00
Christian Beikov
4ee71faecf
Improve SemanticQueryBuilder performance and fix a few generics related issues
2021-08-02 14:56:02 +02:00
Andrea Boriero
e93f43a43f
Merge remote-tracking branch 'upstream/main' into wip/6.0
2021-08-02 14:02:30 +02:00
Steve Ebersole
df9df2a738
Fixes for Yoann's search + 6.0 tracking
...
- test for Criteria handling. Unable to reproduce unfortunately
2021-07-29 13:31:21 -05:00
Steve Ebersole
8362ce72ba
Fixes for Yoann's search + 6.0 tracking
...
query-options - null cache-mode
2021-07-29 13:31:21 -05:00
Gail Badner
b1975ba05d
HHH-11926 : Add FailureExpected test
2021-07-29 12:06:02 +01:00
Sanne Grinovero
83975eaddf
HHH-14755 Allow configuring the DefaultIdentifierGeneratorFactory to ignore BeanContainer(s)
2021-07-29 12:04:37 +01:00
Sanne Grinovero
d4ed42149b
HHH-14755 Remove some dead code from DefaultIdentifierGeneratorFactory
2021-07-29 12:04:37 +01:00
boris-unckel
78e620d9fe
HHH-14761 Exception message String.format too many variables
...
Fix https://hibernate.atlassian.net/browse/HHH-14761
2021-07-29 12:02:00 +01:00
Christian Beikov
e82a45d616
Fix issues with Oracle 12.1c
2021-07-28 16:26:09 +02:00
Christian Beikov
ad49a41cd9
Fix issues with HANA to allow running the testsuite
2021-07-28 16:26:09 +02:00
Christian Beikov
87604549ef
Support usage of boolean expression in predicate context
2021-07-28 16:26:09 +02:00
Christian Beikov
87258af3f9
HHH-14495 Use table name, rather than entity name, as base for per-entity implicit sequence naming
2021-07-28 16:26:09 +02:00
Gavin King
8dd0ed7c2d
clean imports and remove useless override
2021-07-28 15:22:41 +02:00
Gavin King
7aeb03beea
remove older getJdbcType() method
2021-07-28 15:22:41 +02:00
Gavin King
526b3659c8
more correct test code
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
d16073f7ce
remove dependency on hibernate-core tests from hibernate-envers
2021-07-27 19:38:44 -05:00
Steve Ebersole
1c100f5af0
Tests for binding composite-valued query parameters
2021-07-27 09:17:15 -05:00
Alvaro Esteban Pedraza
aa5d40852c
HHH-10661 Reduce code duplication in serialize method of StatefulPersistenceContext
2021-07-27 14:51:01 +01:00
Sanne Grinovero
ff9f6efc0d
HHH-11413 Fixing code style
2021-07-27 14:13:23 +01:00
Dariush Moshiri
787f0a44ea
HHH-11413: Native named query creation fails unintuitively when no resultClass is specified
2021-07-27 14:13:08 +01:00
Steve Ebersole
6d9bcd09c1
Tests for binding composite-valued query parameters
2021-07-26 16:37:18 -05:00
Steve Ebersole
c1732f867c
Query domain-results
2021-07-26 15:16:37 -05:00
Steve Ebersole
9f2ae95397
Gradle task cache
...
Gradle 7 prep
2021-07-26 13:51:38 -05:00
Andrea Boriero
967553add4
Fix multiparameter binding issue
2021-07-26 17:29:49 +02:00
Andrea Boriero
e4571cbf30
Fix issue with Sybase,the hbm mapping was causing errors with case sensitive dbs
2021-07-26 16:43:26 +02:00
Andrea Boriero
77d870f08c
Re-enabled additional tests
2021-07-26 16:43:26 +02:00
Andrea Boriero
3aa875b037
Fix ScrollableResultsImpl not initializing non lazy collections
2021-07-26 16:43:26 +02:00
Andrea Boriero
ba5d90d116
Fix StatelessSession#uniqueResult() not clearing the temporary PersistenceContext
2021-07-26 16:43:26 +02:00
Andrea Boriero
4eb27e61b1
Fix StateleSession call to PostLoadEvent causing NPE
2021-07-26 16:43:26 +02:00
Andrea Boriero
78b8b4aed8
Fix close connection when a transaction is not active and connection handling mode is not equal to AFTER_STATEMENT
2021-07-26 16:43:26 +02:00
Andrea Boriero
a648e637cc
Re-enabled additional tests
2021-07-26 16:43:26 +02:00
Andrea Boriero
3022371d3e
Re-enabled additional tests
2021-07-26 16:43:26 +02:00
Andrea Boriero
96be013089
Re-enabled additional tests
2021-07-26 16:43:26 +02:00
Andrea Boriero
96f8273673
Fix create a new instance while a corresponding one is loading
2021-07-26 16:43:26 +02:00
Andrea Boriero
8dcd63dcee
Fix Sybase error when use jdbc metadata defaults is set to false
2021-07-26 16:43:26 +02:00
Andrea Boriero
6c98d3400f
Change default MysqlDialect constructor to use version 5 instead of 4
2021-07-26 16:43:26 +02:00
Andrea Boriero
c06788dd88
Re-enabled additional tests
2021-07-26 16:43:26 +02:00
Andrea Boriero
821d85b9a3
Implemented EmbeddableMappingType and EmbeddedIdentifierMappingImpl applySqlSelections methods
2021-07-26 16:43:26 +02:00
Andrea Boriero
ab8cfe0d83
Fix multi value parameters expansion for SelfRenderingSqmFunction
2021-07-26 16:43:26 +02:00
Andrea Boriero
3f7044eebe
Re-enabled additional tests
2021-07-26 16:43:26 +02:00
Karel Maesen
6b4f4755f3
HHH-14745 Fix formatting
2021-07-26 16:26:11 +02:00
Karel Maesen
649b2187e1
HHH-14745 Directly contribute functions to the SqmFunctionRegistry
2021-07-26 16:26:11 +02:00
Karel Maesen
c0a18ee99e
HHH-14745 Add ordinal() to avoid non-determinism
2021-07-26 16:26:11 +02:00
Karel Maesen
9aba4532cd
HHH-147 Fix method name in contract
2021-07-26 16:26:11 +02:00
Karel Maesen
21dd7a35f1
HHH-14745 Add FunctionContributor contract
2021-07-26 16:26:11 +02:00
Andrea Boriero
76df5a5f4b
Merge remote-tracking branch 'upstream/main' into wip/6.0
2021-07-26 15:15:29 +02:00
Sanne Grinovero
0325cd632a
HHH-14740 Still need the nullcheck removed in HHH-14727
2021-07-20 14:10:06 +01:00
Steve Ebersole
e2e93e51b7
improvements to JAXB XJC handling
2021-07-19 16:45:50 -05:00
Andrea Boriero
c0041ba073
HHH-14772 InformationExtractorJdbcDatabaseMetaDataImpl#getCurrentSchema() method returns currentCatalog if schema == null
2021-07-18 21:05:57 +01:00
Sanne Grinovero
f60d8bcd12
HHH-14734 No good reason tu use TypeCache(s) with WithInlineExpunction
2021-07-16 16:43:02 +01:00
Sanne Grinovero
e782ddf8f9
HHH-14733 Not useful to clear the bycodeprovider caches on sessionFactoryClosing
2021-07-16 16:43:02 +01:00
Sanne Grinovero
6608d03bfc
HHH-14732 ProxyDefinitionHelpers are immutable and can be declared static
2021-07-16 16:43:02 +01:00
Sanne Grinovero
0768663895
HHH-14731 Simplify SPI ProxyFactoryFactory#buildBasicProxyFactory to accept a single class or interface only
...
And deprecate method org.hibernate.bytecode.spi.ProxyFactoryFactory#buildBasicProxyFactory(java.lang.Class, java.lang.Class[])
2021-07-16 16:43:02 +01:00
Andrea Boriero
6c98441518
HHH-14730 Avoid loading the same entity proxy twice for the same result set
2021-07-16 13:22:37 +02:00
Sanne Grinovero
5616284a12
HHH-14727 Minor code cleanup in StandardSQLExceptionConverter
2021-07-16 11:16:36 +01:00
Andrea Boriero
98e64579fa
Merge branch 'main' into wip/6.0
2021-07-16 11:24:53 +02:00
Yoann Rodière
0a16e341c9
HHH-14730 Avoid loading the same entity proxy twice for the same result set
2021-07-16 10:09:29 +02:00