Commit Graph

11054 Commits

Author SHA1 Message Date
Andrea Boriero 3476e82122 Merge remote-tracking branch 'upstream/master' into wip/6.0_merge_26 2020-03-20 08:01:20 +00:00
Nathan Xu 7e2987ac79 HHH-13877 - Make @SortNatural by default 2020-03-19 14:41:05 -05:00
Nathan Xu cf46163958 Fix a subtle double-checked locking issue 2020-03-19 14:02:50 -05:00
Nathan Xu df0aa1eb2e Fix a subtle double-checked locking issue 2020-03-19 14:02:50 -05:00
romainmoreau b5443deab3 Drop constraints using CASCADE
Co-Authored-By: William Cekan <wcekan@oath.com>
2020-03-19 13:58:26 -05:00
Romain Moreau b35ccc8e37 HHH-13711: drop constraints enabled for H2 2020-03-19 13:58:26 -05:00
Nathan Xu 620dcc62c0 HHH-13756 renaming and internal implementation tweaking 2020-03-19 13:27:09 -05:00
Nathan Xu 12c272a9cd make use of JUnit5's ParameterizedTest to avoid some testing code duplication 2020-03-19 13:27:09 -05:00
Nathan Xu a9c2ea3a46 add 'Criteria' testing 2020-03-19 13:27:09 -05:00
Nathan Xu e2ddd800ac finish both 'loader' and 'HQL' testing 2020-03-19 13:27:09 -05:00
Nathan Xu a3dce5f00a HHH-13756 simplify EntityGraphNavigator's navigate() to never return null value 2020-03-19 13:27:09 -05:00
Nathan Xu d4746da853 HHH-13756 fix some bug in EmbeddableFetchImpl 2020-03-19 13:27:09 -05:00
Nathan Xu 979e146f55 HHH-13756 enrich hql testing class 2020-03-19 13:27:09 -05:00
Nathan Xu 3b9c1cd777 HHH-13756 add a hql testing skeleton 2020-03-19 13:27:09 -05:00
Nathan Xu 94b8d8a128 HHH-13756 rename 'NavigateResult' class name to 'Navigation' 2020-03-19 13:27:09 -05:00
Nathan Xu 335c1ecd75 HHH-13756 implement entity graph in v6 2020-03-19 13:27:09 -05:00
Nathan Xu 62e9a674ad fix bug that newly created 'tableGroupJoin' is not added to its 'joinedGroup' 2020-03-19 13:17:02 -05:00
Nathan Xu 70b6de476c implement ResourceRegistryStandardImpl#convert to get rid of 'todo' 2020-03-19 13:12:47 -05:00
Nathan Xu adc87b7908 various cosmetic code improvements 2020-03-19 13:12:12 -05:00
Steve Ebersole b3254a2fa6 SQM 'insert select', 'insert values', and 'update' queries 2020-03-19 13:01:49 -05:00
gavinking 02cd346d3f add additional HQL bulk tests
- failing test for secondary table update
- failing test for embeddable update
- passing test for secondary table delete
2020-03-19 13:01:49 -05:00
gavinking e90207e651 remove unused class 2020-03-19 13:01:49 -05:00
gavinking c787dae475 Minor cleanups to SqlAstTranslators
- rename SqlAstInsertSelectTranslator to SqlAstInsertTranslator
- use simplified for loops
2020-03-19 13:01:49 -05:00
gavinking 0381da76b9 Test for insert values 2020-03-19 13:01:49 -05:00
gavinking 95ff568b3d Add support for HQL 'insert ... values ...' 2020-03-19 13:01:49 -05:00
gavinking 10f333943d tests for HQL insert/update 2020-03-19 13:01:48 -05:00
gavinking 5f2745a503 HQL 'insert ... select' and 'update'
- fill in the implementation of HQL insert ... select
- clean up grammar for HQL insert/delete/update
- fix syntax for 'set' clause of HQL update
- fix translation of set value expression in HQL update
- tentative fix for attribute resolution with repeated entities
2020-03-19 13:01:48 -05:00
gavinking 375076df35 Remove unnecessary parens in grammar 2020-03-19 13:01:48 -05:00
Yoann Rodière 3f95c2eadb HHH-7318 Test auto-discovery of result types in native queries 2020-03-19 08:55:42 -05:00
Yoann Rodière 62a14972bc HHH-7318 Fix native queries incorrectly converting BIGINT results to BigInteger
Also fix existing tests with wrong expectations:

* TupleNativeQueryTest: there is no reason to expect a BigInteger in
results, since the ID of entity Users if of type Long.
* MultiLineImportFileTest: there is no reason to expect "COUNT(*)" to
return a BigInteger, since the SQL type of COUNT(*) is bigint, which
corresponds to Long in Java.
2020-03-19 08:55:42 -05:00
Sanne Grinovero 486addab0c HHH-13897 ResultSetProcessingContextImpl: no need to clear collections before discarding the reference to them 2020-03-19 11:51:59 +00:00
Andrea Boriero 6462218587 Implemented SelectEagerCollectionInitializer 2020-03-18 14:09:54 +00:00
Andrea Boriero 2fa3889e5a Add one more test for empty collections 2020-03-18 14:09:54 +00:00
Andrea Boriero 6eb729003a Fix initialization of empty collections 2020-03-18 14:09:54 +00:00
Nathan Xu db50e046e2 revert back changes in 'org.hibernate.test.cascade' 2020-03-18 08:17:41 -05:00
Nathan Xu 30bfe89246 verify 'column quoting' 2020-03-16 07:52:15 -05:00
Steve Ebersole 6108c7d2fa ORM 6 - re-enable hibernate-orm-modules module
cleanup
2020-03-16 07:47:10 -05:00
Andrea Boriero 5999d80701 Fix wrong tableExpression and columnExpression value assignment for ColumnConsumer#accept method 2020-03-13 14:17:12 +00:00
Gail Badner 8c6f8025e3 HHH-13619 - Support for JPA's `size` function as a select expression
- Fix to work on Oracle by removing "as" between table name and alias
2020-03-12 14:42:11 -07:00
Andrea Boriero d88d4a8d7b Re-enabled hibernate-orm-modules 2020-03-12 14:43:16 +00:00
Nathan Xu 7ee45f68ee wrap up verification for both @SortedSet and @SortedMap 2020-03-09 13:48:46 -05:00
Andrea Boriero cce8f823e7 Fix issue with empty array collection 2020-03-09 18:45:31 +00:00
Andrea Boriero 1dbda278f9 Add test 2020-03-09 18:45:31 +00:00
Andrea Boriero 956da855cd EntityFetchDelayedInitializer check if a Proxy already exists before creating a new one 2020-03-09 18:45:31 +00:00
Andrea Boriero a96096bc28 Move more tests to o.h.orm.test 2020-03-09 18:45:31 +00:00
Andrea Boriero 28f4d62f6a Fix checkstyle errors 2020-03-09 18:45:31 +00:00
Andrea Boriero 37292c5876 Fix issue with circular fetch detection 2020-03-09 18:45:31 +00:00
Andrea Boriero 52b126d4cf Fix issue with SimpleForeignKeyDescriptor DomainResult creation 2020-03-09 18:45:31 +00:00
Andrea Boriero 681c3fa9cf Fix issue with collection initializer for test OneToManyAutoReferenceTest#testSelectParentFetchChildren 2020-03-09 18:45:31 +00:00
Andrea Boriero 2e285f891d Fix issue with SimpleForeignKeyDescriptor#generateJoinPredicate() using wrong columns 2020-03-09 18:45:31 +00:00