Commit Graph

3362 Commits

Author SHA1 Message Date
Gail Badner 696abff61c HHH-11209 : Change logging for detaching a PersistentCollection with queued operation to DEBUG 2018-12-17 12:24:34 -08:00
lrcuhuh dab6c4d0bf HHH-9933 - Uninitialized PersistentSet with lazy="extra" doesn't respect added elements
(cherry picked from commit 63e4702629)

HHH-9933 : Fix test case to work in 5.1 branch
2018-12-17 12:24:34 -08:00
Gail Badner 45eee165f2 HHH-11209 : Test cases
HHH-11209 : NullPointerException in EntityType.replace() with a PersistentBag

HHH-11209 : Add test for merging a detached collection with queued operations

HHH-11209 : Throw UnsupportedOperationException if a detached collection with queued operations is merged

HHH-11209 : Ignore queued operations when merging a detached collection with queued operations; add warnings

HHH-11209 : Fix typo in comment
(cherry picked from commit 6f5b1e5543)

HHH-11209 : Fix test case to work in 5.1 branch

HHH-11209 : Added test case for testing debug logging when collection is detached during rollback

(cherry picked from commit 22ad668b88)

HHH-11209 : Change message to INFO logging when collection is detached with queued operations; remove checks for rollback
2018-12-17 12:24:34 -08:00
Gail Badner 3da655ccfd HHH-13011 Fix the tests: use int column in where clause
(cherry picked from commit a09e6156f9)
2018-11-27 22:10:50 -08:00
Guillaume Smet d41c657e43 HHH-13011 Fix the tests: use a boolean query
(cherry picked from commit 18f4ecfdfe)
2018-11-27 21:42:09 -08:00
Gail Badner c4e9be53af HHH-13011 : Update tests to work in 5.1 branch; make changes due to default for hibernate.use_entity_where_clause_for_collections changed to false in 5.1 2018-11-27 20:06:15 -08:00
Gail Badner 2b871da951 HHH-13011 : test cases
(cherry picked from commit d1a40af1b7)
2018-11-27 18:39:21 -08:00
Gail Badner 9baba41bf5 HHH-13011 : Set hibernate.use_entity_where_clause_for_collections=true that assume that setting 2018-11-27 18:34:27 -08:00
Gail Badner d6f72a7d11 HHH-13011 : Restore ParentChildTest assumptions appropriate for hibernate.use_entity_where_clause_for_collections=false (the default in 5.1) 2018-11-27 18:08:08 -08:00
Gail Badner 47528f6672 Revert "HHH-12875 : Remove "where" clause for Top used by MultiTableTest;" because hibernate.use_entity_where_clause_for_collections=false by default
This reverts commit 42459dec08.
2018-11-27 17:51:58 -08:00
Gail Badner 101b22f343 HHH-13011 : Add option enabling/disabling use of an entity's mapped where-clause when loading collections of that entity; change to disable by default
(cherry picked from commit 4735c2d5aa)
2018-11-27 17:46:17 -08:00
Guillaume Smet b8b7f16d14 HHH-12937 Only run the tests with H2Dialect
(cherry picked from commit 23c6565f72)
2018-11-27 17:37:11 -08:00
Jonathan Bregler 6695f4c57b HHH-12937 Fix tests on SAP HANA
The following tests fail because of a DROP TABLE statement without CASCADE
- org.hibernate.test.where.annotations.LazyElementCollectionBasicNonUniqueIdWhereTest
- org.hibernate.test.where.annotations.LazyElementCollectionWithLazyManyToOneNonUniqueIdWhereTest
- org.hibernate.test.where.hbm.LazyElementCollectionBasicNonUniqueIdWhereTest
- org.hibernate.test.where.hbm.LazyElementCollectionWithLazyManyToOneNonUniqueIdWhereTest

(cherry picked from commit d4ad0df883)
2018-11-27 17:36:36 -08:00
Gail Badner bbd220d48c HHH-12937 : Remove duplicated line 2018-11-27 17:16:04 -08:00
Gail Badner 3950cf1236 HHH-12937 : Where clause for collections of basic, embeddable and "any" elements is ignored when mapped using hbm.xml 2018-11-27 17:16:04 -08:00
Gail Badner 520bd4c622 HHH-12937 : test cases 2018-11-27 17:16:04 -08:00
Gail Badner e8ec325361 HHH-12875 HHH-12882 : Drop tables in proper order in test setup methods
(cherry picked from commit 770ae50e8b)
2018-11-27 17:16:04 -08:00
Gail Badner 42459dec08 HHH-12875 : Remove "where" clause for Top used by MultiTableTest;
After HHH-12875 is fixed, the "where" clause causes
            MultiTableTest to fail due to HHH-12016

(cherry picked from commit a5fa213658)
2018-11-27 17:16:04 -08:00
Gail Badner 96331238ed HHH-12875 : Add comments to clarify how Collection#setWhere and #setManyToManyWhere are used
(cherry picked from commit 3ea9fa999c)
2018-11-27 12:56:48 -08:00
Gail Badner 36c2d6dea4 HHH-12875 HHH-12882 : Class level where="..." clause hbm.xml mappings is not enforced on collections of that class; add parentheses when where clauses get combined in a conjunction (hbm and annotations)
HHH-12882 : correct assertions in ParentChildTest
(cherry picked from commit fa604bdc36)
2018-11-27 12:56:48 -08:00
Gail Badner 0b05fc7e1b HHH-12875 HHH-12882 : Fix test cases to work in 5.1 branch 2018-11-27 12:56:48 -08:00
Gail Badner 26c911515c HHH-12875 HHH-12882 : test cases
(cherry picked from commit d75276bf60)
2018-11-27 12:56:48 -08:00
Gail Badner e69be8a1ab HHH-12875 : Fixe ParentChildTest to work in 5.1 branch 2018-11-27 12:56:48 -08:00
Gail Badner 7512633435 HHH-12875 : Class level where="..." clause in hbm.xml mappings is not enforced on collections of that class
(cherry picked from commit cec9c16117b2f8bf211080f784b19c90be509d10)
2018-11-27 12:56:48 -08:00
Gail Badner e6b6812333 HHH-12875 : Fix test cases to work on 5.1 branch 2018-11-27 12:56:48 -08:00
Gail Badner ca037dc995 HHH-12875 : test cases
(cherry picked from commit 837a9738281c3c15920072513b9319a52e831b1d)
2018-11-27 12:56:48 -08:00
Gail Badner b51533e8f8 HHH-6781 : Correct test case to work in 5.1 2018-11-27 12:56:48 -08:00
Vlad Kuznetsov 8b139aea14 HHH-6781 - Class level @Where annotation is not enforced on collections of that class
(cherry picked from commit bf9b3f524d)
2018-11-27 12:56:47 -08:00
Keshavan Santhanam 6aefccccad HHH-10891 Support @Any in @Embedded
(cherry picked from commit 64179673a3)
2018-11-20 11:01:13 -08:00
Gail Badner 9aad0c3a31 HHH-10891 : Fix test case to work in 5.1 branch 2018-11-20 11:01:13 -08:00
Guillaume Smet c7f7f326b6 HHH-10891 Add a test case
(cherry picked from commit ac03494e70)
2018-11-20 11:01:13 -08:00
Guillaume Smet a15fdfd90b HHH-12935 Make ExportIdentifierTests extend BaseUnitTestCase
(cherry picked from commit bb822aee31)
2018-11-16 17:41:17 -08:00
Guillaume Smet 45a76d855c HHH-12935 Require sequence support in ExportIdentifierTests
(cherry picked from commit 66d9859813)
2018-11-16 17:40:45 -08:00
Gail Badner 5e8646e3bd HHH-12935 : Constraint and AuxiliaryDatabaseObject export identifiers are not qualified by schema or catalog
(cherry picked from commit 4d381457c5)
2018-11-16 17:39:57 -08:00
Gail Badner d166de919b HHH-12935 : test cases
(cherry picked from commit 3806d27f08)
2018-11-16 16:54:50 -08:00
Gail Badner 7046f24e1e HHH-12380 : Fix to work in pre-5.2 versions 2018-10-11 14:33:53 -07:00
Andrea Boriero bf03fe5f89 HHH-12380 - Stackoverflow when order_inserts=true
(cherry picked from commit 07a0e1243a)
2018-10-11 14:18:50 -07:00
Vlad Mihalcea b7ddbdf68d HHH-12374 - Order inserts sorting code gives up too soon
(cherry picked from commit 097112353e)
2018-10-11 14:17:33 -07:00
Gail Badner 43e4175b22 HHH-12958 : NotFoundLogicalOneToOneTest fails on Oracle due to identifiers that are too long (5.1) 2018-09-05 12:56:05 -07:00
Gail Badner 9f2bca370d HHH-12740 : Fix test to work in 5.1 branch 2018-08-25 20:33:56 -07:00
Gail Badner 32fcd483fe HHH-12740 : Subselect fetching doesn't work when multiLoad was used
(cherry picked from commit 579ee65fd3)
2018-08-25 20:33:56 -07:00
Gail Badner b03021b751 HHH-3930 : Update test to work in 5.1 branch 2018-08-25 20:31:48 -07:00
Christian Beikov db126b1bf6 HHH-3930 Test and fix for unnecessary query that is issued when fetching inverse one-to-one
(cherry picked from commit 2a11a1db9b)
2018-08-25 20:31:48 -07:00
Guillaume Smet 1deccc5426 HHH-10603 Avoid doing distinct and comparisons on byte arrays
They are stored as blobs starting with Oracle12cDialect and distinct and
comparisons on blobs are not supported.

Some tests were adapted, some are now skipped with Oracle12cDialect.

(cherry picked from commit 92f194f291)
2018-08-25 20:18:54 -07:00
Gail Badner ddc24e8659 HHH-12687 : fix test case to work in 5.1 2018-06-15 15:31:09 -07:00
Gail Badner b73f0d90e6 HHH-12687 : ManyToOne associations in embeddable collection elements and composite IDs are always eagerly loaded
(cherry picked from commit 607e51617e)
2018-06-15 15:15:47 -07:00
Gail Badner 0de7fd9e9b HHH-12562 : Remove DefaultSchemaNameResolver#delegate since the value should not be cached 2018-05-10 17:13:10 -07:00
Gail Badner 26b5dca21f HHH-12392 : Caching SchemaResolver delegate with multiple data sources 2018-05-10 17:04:12 -07:00
Gail Badner 432420beb2 HHH-12423 : Fix test to work on pre-5.2 2018-05-10 16:49:21 -07:00
Vlad Mihalcea 2366fc89ab HHH-12423 - SecondaryTable is not taking into account the schema while mapping the entity
(cherry picked from commit 511a5a3618)
2018-05-10 16:26:22 -07:00