6001 Commits

Author SHA1 Message Date
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
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
Andrea Boriero
1fea05742c Fix initialization of empty collections 2020-03-09 18:45:31 +00:00
Andrea Boriero
3a9c578a14 Add test 2020-03-09 18:45:31 +00:00
Andrea Boriero
94f23dd2d5 EntityInitializer and DelayedCollectoinAssembler see if we have an existing entry in the PC for the EntityKey 2020-03-09 18:45:31 +00:00
Andrea Boriero
e61f610e32 EntityFetchDelayedInitializer check if the entity instance has been already loaded 2020-03-09 18:45:31 +00:00
Andrea Boriero
587a2b0e35 Fix NPE when a fetched association is null 2020-03-09 18:45:31 +00:00
Andrea Boriero
90cd4e5c8f fix issue with circularity detection 2020-03-09 18:45:31 +00:00
Andrea Boriero
1df4824d5f Move more tests to o.h.orm.test 2020-03-09 18:45:31 +00:00
gavinking
2dd745110d Add SqlSelection.getExpressionType() and remove some typecasts 2020-03-09 13:40:37 -05:00
gavinking
a1a85e2517 Fixes for subqueries in HQL select clause
Allow subqueries to occur in the select list, and allow their aliases to occur
in the order by clause.
2020-03-09 13:40:37 -05:00
gavinking
76000201eb Support HQL 'any'/'some', 'every'/'all', and 'exists' subquery operators
- 'exists' and 'not exists' are predicates
- 'any'/'some' are expression used on RHS of comparison operators, but
  note that they also collide with the HQL aggregate functions of the
  same name
2020-03-09 13:40:37 -05:00
Andrea Boriero
e0ffa498b1 Add one more test 2020-03-09 18:23:44 +00:00
Andrea Boriero
b5080b555f Fix issue initializing an Entity with an array collection 2020-03-09 18:23:44 +00:00
Andrea Boriero
a7ecba4f5b Remove @FailureExpected from ArrayTests 2020-03-09 18:23:44 +00:00
Koen Aers
23f2cc584b Verify array support: add 'EntityOfArrays' case to the GambitDomainModel and the PluralAttributeMappingTests
Signed-off-by: Koen Aers <koen.aers@gmail.com>
2020-03-09 18:23:44 +00:00
Koen Aers
86fa0d5fed Verify array support: Make PluralAttributeBuilder also recognize array types
Signed-off-by: Koen Aers <koen.aers@gmail.com>
2020-03-09 18:23:44 +00:00
Koen Aers
9d9a240917 Verify array support: Add a basic test fixture
Signed-off-by: Koen Aers <koen.aers@gmail.com>
2020-03-09 18:23:44 +00:00
Nathan Xu
38effc6191 fix HashMap constructor with expected size usage error 2020-03-09 12:47:29 -05:00
Steve Ebersole
26ab3c5362 HHH-13619 - Support for JPA's size function as a select expression
- PR revisions
2020-03-05 09:58:35 -06:00
Steve Ebersole
336c3b9e30 HHH-13619 - Support for JPA's size function as a select expression
- code cleanup
2020-03-04 12:37:37 -06:00
Steve Ebersole
692f19c83f HHH-13619 - Support for JPA's size function as a select expression
- initial support
2020-03-04 12:37:37 -06:00
Gail Badner
24cedfa6ec HHH-13619 : test cases 2020-03-04 12:36:24 -06:00
Andrea Boriero
abe1e656f7 Merge remote-tracking branch 'upstream/master' into wip/6.0 2020-03-03 16:59:30 +00:00
Andrea Boriero
5bf772c59d HHH-13322 Fix test 2020-03-02 11:48:54 +00:00
Nathan Xu
188c05cc33 HHH-13322 Fix Oracle dialect's 'getQuerySequencesString()' issue by limiting to current schema 2020-03-02 10:31:18 +00:00
Nathan Xu
c9190e45f8 Remove unused imports 2020-03-02 09:51:44 +00:00
Nathan Xu
d8d8d6e112 Fix some obvious log or exception message issues 2020-02-28 08:12:45 +00:00