2866 Commits

Author SHA1 Message Date
Andrea Boriero
1dbda278f9 Add test 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
3a9c578a14 Add test 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
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
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
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
d8d8d6e112 Fix some obvious log or exception message issues 2020-02-28 08:12:45 +00:00
Nathan Xu
06a26fe5c6 enrich existing tesing case by SQL inspect 2020-02-26 09:21:39 +00:00
Nathan Xu
5e5bef71e6 verify bidirectional collection circular reference detection 2020-02-26 09:21:39 +00:00
Gail Badner
b060b21851 HHH-13875 : Added test cases 2020-02-24 12:28:22 -08:00
Vlad Mihalcea
d9a335c429 HHH-13872 - Make the Java Stream close the underlying ScrollableResultsIterator upon calling a terminal operation 2020-02-21 06:03:42 -06:00
The Geeky Asian
e808041477 HHH-13856 - Long-awaited TODOs done as an improvement
1. TODO: Remove duplicate method from ConstraintConstaint.java currently has two duplicate methods. 1. getColumnIterator()2. columnIterator()

Both the methods return the same value i.e. column.iterator().

One of them needs to be removed in order to reduce and clean the duplication. 

2. TODO: Change method name for getXmlFiles in BaseCoreFunctionalTestCaseCurrently, in BaseCoreFunctionalTestCase a method named getXmlFiles()has a TODO placed that suggests the method name to be changed to getOrmXmlFiles().

Since the method has a protected scope, there is a possibility it is being used by other clients. Hence, changing the method name in minor versions might break the code for clients.
2020-02-20 10:54:50 -06:00
Steve Ebersole
ab6d1953d6 initial work on @Version support
- by side effect fixed batch collection loading
2020-02-19 12:10:16 -06:00
Nathan Xu
60ead26c4b Disallow FQN as entity name in Jpa compliance mode 2020-02-19 08:54:36 -06:00
Fabio Massimo Ercoli
ccc3c58367 HH-13720 Test mapping model support for plural attributes - sorted map 2020-02-19 06:52:38 -06:00
Vlad Mihalcea
c346171b23 HHH-13103 - Allow Hibernate Types to get access to the current configuration properties 2020-02-18 15:22:05 -06:00
Vlad Mihalcea
9084ce497e HHH-13853 - Pass the merged Integration settings and Persistence Unit properties to buildBootstrapServiceRegistry 2020-02-18 11:42:51 -06:00
Andrea Boriero
c355ecee08 Fix issue with FromClauseIndex#findFetchedJoinByPath for hql 'from entity1 e1 join fetch e1.entity2 e2 join fetch e2.entity3' not resolving entity3 fetch join during EntityResultImpl creation 2020-02-17 18:07:00 +00:00
Andrea Boriero
d77adbfc13 Add FailureExpcted to EmbeddedTest for @Parent annotation 2020-02-17 18:07:00 +00:00
Andrea Boriero
6cfbed73ba Fix issue with hql and where clause with Embeddable is null 2020-02-17 18:07:00 +00:00
Andrea Boriero
efb07506f2 Fix test 2020-02-17 18:07:00 +00:00
Andrea Boriero
7d13abf528 Add test 2020-02-17 18:07:00 +00:00
Andrea Boriero
484589c5b4 Fix BiDirectionalFetchImpl CircularFetchAssembler#assemble for collection initialization 2020-02-17 18:07:00 +00:00
Andrea Boriero
7de3be2492 Fix NPE in SingularAssociationAttributeMapping#resolveCircularFetch(...) method 2020-02-17 18:07:00 +00:00
Andrea Boriero
a4330599c2 Fix SingularAssociationAttributeMapping identifyingColumnsTableExpression and inverseIdentifyingColumnsTableExpression values 2020-02-17 18:07:00 +00:00
Steve Ebersole
3222b52ab2 continued work on circular fetch detection. still need to work through the cases involving embeddables "in between" 2020-02-17 18:07:00 +00:00
Steve Ebersole
00b5a700eb continued work on circular fetch detection. still need to work through the cases involving embeddables "in between" 2020-02-17 18:07:00 +00:00
Steve Ebersole
4f750cdc55 initial work on circular fetch detection across embeddables 2020-02-17 18:07:00 +00:00
Andrea Boriero
8c806a5a16 Fix issue with TableReference resolution 2020-02-17 18:07:00 +00:00
Andrea Boriero
c4887356ca Move more tests to o.h.orm.test 2020-02-17 18:07:00 +00:00
Andrea Boriero
67f77efa91 AttributeOverride add more tests 2020-02-17 18:07:00 +00:00
Andrea Boriero
08b08c0d81 Re-enabled few more tests 2020-02-17 11:24:01 -06:00
Andrea Boriero
2660007df9 Merge remote-tracking branch 'upstream/master' into wip/6.0_merge_24 2020-02-14 11:36:06 +00:00
Andrea Boriero
2f2d30e4e5 HHH-13861 Expose the doWork() and doReturningWork() APIs on StatelessSession as well 2020-02-13 09:33:00 +00:00
Andrea Boriero
5defe54d31 HHH-13856 Fix Oracle failing tests 2020-02-10 14:52:32 +00:00
gavinking
cb3560de96 Allow binary literals to be specified in a Java byte-array-like format
Allow you to write x'DEADBEEF' as {0xDE, 0xAD, 0xBE, 0xEF}.

For now I'm being quite restrictive here:

- byte literals must be written in hexadecimal not in decimal
- they must be exactly two digits in length

(I would like to allow decimal format but I think that would start to
collide with other rules with braces in the grammar.)
2020-02-05 16:33:08 +01:00
gavinking
ddaff28838 Add hexadecimal binary literals with standard SQL syntax
And fix up the parsing and formatting in VarbinaryTypeDescriptor which
was inconsistent with how the JDBC drivers handle the conversion to
signed bytes.
2020-02-05 16:33:08 +01:00
Frank Doherty
4b037cdf8f HHH-13792 evict entity cache after transaction has committed for read-write cache access strategy
- changed EntityReadWriteAccess to remove the no-op unlockRegion method (now uses the method inherited from
  AbstractCachedDomainDataAccess, which calls evictAll)

- changed AbstractReadWriteAccess to add a no-op removeAll method (as this is called by the constructor in
  BulkOperationCleanupAction.EntityCleanup, during the transaction)

- added new file ReadWriteCacheTest with some test scenarios:
  - testDeleteHQL/testDeleteNativeQuery/testUpdateHQL/testUpdateNativeQuery which confirm that the fix corrects the
    scenario where stale entities could be loaded into the cache and remain there (because the eviction was
    happening before the transaction had committed)
  - testDelete/testUpdate show that entity updates/deletions were not affected by this issue (only HQL/native queries)
2020-02-05 15:47:13 +01:00
Andrea Boriero
eb43734658 Fix compilation errors after merge 2020-02-05 12:16:41 +00:00
Andrea Boriero
f77fb75639 Merge remote-tracking branch 'upstream/master' into wip/6.0_merge_23 2020-02-05 11:37:36 +00:00
gavinking
398dcfffeb Fill in implementation of HQL hexadecimal literals
And add tests for hex and BigDecimal/BigInteger literals
2020-02-02 09:58:14 +01:00
gavinking
558e757a33 Improve test for function parameter binding 2020-02-01 12:26:06 +01:00