Commit Graph

10718 Commits

Author SHA1 Message Date
Nathan Xu 5e5bef71e6 verify bidirectional collection circular reference detection 2020-02-26 09:21:39 +00:00
Nathan Xu bb8ceaea1d Fix an obvious bug in AbstractLimitHandler 2020-02-26 09:19:22 +00:00
Vlad Mihalcea c76675f11a Changes according to PR review. Requires rebase! 2020-02-25 11:46:13 -06:00
Vlad Mihalcea c7aaf31cbe HHH-13879 - Slow query log should use System#nanoTime not System#currentTimeMillis 2020-02-25 11:46:13 -06:00
The Geeky Asian 5501a40dd2 HHH-13855 - Remove unnecessary delared variable JtaManager in HibernatePersistenceProviderAdaptor
In the HibernatePersistenceProviderAdaptor, there is an unnecessary declaration of JtaManager. The sole purpose of having this variable is only to use in the overridden method named InjectJtaManager.

This was be improved by removing the JtaManager as there is no use of the variable, as of now at least.
2020-02-24 21:13:06 +00:00
Gail Badner a7261ad053 HHH-13875 : Optional one-to-one does not always join the associated entity table when querying 2020-02-24 12:28:22 -08:00
Gail Badner b060b21851 HHH-13875 : Added test cases 2020-02-24 12:28:22 -08:00
Daniel Shuy cab651e194
HHH-13799 : Criteria API support for Hibernate Spatial (#3159)
* HHH-13799 : Criteria API support for Hibernate Spatial

Co-authored-by: Karel Maesen <karel@geovise.com>
2020-02-24 14:42:48 +01:00
gavinking 3545de74ea fix logic for interpreting HQL literal enum values
Note that this feature still doesn't work because we still
can't get a MappingModelExpressable from an SqmEnumLiteral.
2020-02-22 15:19:31 +01:00
The Geeky Asian b914b02dca HHH-13874 - Removing the @author added.
The newly added @author in the previous commit or deprecation messages has been removed in this commit.
2020-02-21 06:11:37 -06:00
The Geeky Asian e98e89d806 HHH-13874 - Messages added for the deprecated methods. 2020-02-21 06:11:37 -06:00
The Geeky Asian c4bd5937e3 HHH-13874 - Deprecating methods that will be removed soon
Two methods that are dropped in v6.0 are now marked as deprecated in this commit.

As discussed in the removal PR https://github.com/hibernate/hibernate-orm/pull/3229
2020-02-21 06:11:37 -06:00
Nathan Xu e9df1cb626 HHH-13853 fix minor issue 2020-02-21 12:04:12 +00: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
Arend v. Reinersdorff 3c67d521e1 Fix typo "fare more" -> "far more" 2020-02-20 16:03:52 +00:00
w1ida 28b8cebf9d HHH-13873 IdTableHelper can skip opening a connection when there's no statements to execute 2020-02-20 15:15:59 +00:00
Nathan Xu 86a8106696 correct an obvious coding bug 2020-02-20 07:06:43 -06:00
gavinking b1d7bad4ef Move a couple of log messages to ConnectionPoolingLogger
For consistency.
2020-02-20 12:08:07 +01:00
gavinking 78423a8d55 Move Dialect logging to DialectFactoryImpl
As suggested by @Sanne.
2020-02-20 12:06:45 +01:00
Steve Ebersole 285b7d8696 @Version support
- improved design where EntityVersionMapping simply has a (delayed) reference to the version attribute and provides easier access to often used information
2020-02-19 13:56:26 -06:00
Steve Ebersole 874fe8a42a https://github.com/asciidoctor/asciidoclet/pull/91
- re-disable as the Travis CI JDK 11 build did not like it
2020-02-19 13:35:07 -06:00
Steve Ebersole aa87f15708 https://github.com/asciidoctor/asciidoclet/pull/91
- re-disable as the Travis CI JDK 11 build did not like it
2020-02-19 13:35:07 -06:00
Christoph Dreis 1364929fe0 HHH-13870 - Add explaining comment 2020-02-19 12:20:42 -06:00
Christoph Dreis 5ea5bd12b0 HHH-13870 - Extract task action in Gradle plugin to fix up-to-date checks
Lambdas are not allowed and cause the compile task to be always out of date
2020-02-19 12:20:42 -06:00
Christian Beikov 28b5f493b9 Determine type of self rendering function lazily during type access 2020-02-19 12:13:19 -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
gavinking 1503f09a41 Log usage of deprecated Dialect classes using DeprecationLogger
We want people to stop using the ones annotated @Deprecated.
2020-02-19 08:57:04 -06:00
Nathan Xu 60ead26c4b Disallow FQN as entity name in Jpa compliance mode 2020-02-19 08:54:36 -06:00
gavinking c97fb45a02 Remove FrontBaseDialect
I can't find evidence that anyone uses this on StackOverflow, and the Dialect
is not of high quality.
2020-02-19 08:48:40 -06:00
gavinking 7267b418c5 Rename SAPDBDialect to MaxDBDialect
(Leaving a stub SAPDBDialect class for backward compatibility.)
2020-02-19 08:35:34 -06:00
Steve Ebersole e43c5a3166 https://github.com/asciidoctor/asciidoclet/pull/91
- work in progress as the PR did not fix the problems
2020-02-19 08:30:57 -06:00
gavinking 5d830ceebf Attempt to reconstruct the fallbackSqmMutationStrategies
This method threw lots of NotImplementedFor6Exceptions, so I've tried
to figure out what the right implementations are, going by what was
there in the other branches. However, I'm not at all sure that I got
everything here right.
2020-02-19 07:07:00 -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
Steve Ebersole 1042f23bee HHH-13103 - Allow Hibernate Types to get access to the current configuration properties using constructor injection 2020-02-18 15:22:05 -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 8defa9619e Remove NavigablePath#hashCode field 2020-02-18 16:33:03 +00: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 9d7c4f98e3 Fix compilation error after rebase 2020-02-17 18:07:00 +00:00
Andrea Boriero 529726f59a Remove unused import 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 9633345dbb Fix issue determining fetchablePath and fetchParent for PluralAttributes in LoaderSelectBuilder#createFetchableConsumer() method 2020-02-17 18:07:00 +00:00
Andrea Boriero d34353e2a3 Revert "EntityCollectionPart#generateFetch() add TableGroupJoin to EntityCollectionPartTableGroup"
This reverts commit f5351addb8155bd85fbd38f5b989ef0a260bcf3f.
2020-02-17 18:07:00 +00:00
Andrea Boriero 8c377e9208 Fix issue with @ElementColletion of Embeddables 2020-02-17 18:07:00 +00:00