Commit Graph

323 Commits

Author SHA1 Message Date
Steve Ebersole 57fba402b4 HHH-12858 - Persistence.createEntityManagerFactory(Map) should allow overwriting jta-data-source of persistence.xml 2019-09-25 15:12:25 -05:00
Steve Ebersole 5631a702a7 initial working dynamic instantiation support;
cleanup
2019-09-19 15:13:50 -05:00
Steve Ebersole 648dd3d2ed More work on EntityResult handling;
Changes to how SqmParameters are handled to account for criteria parameters
2019-09-16 08:51:16 +01:00
Steve Ebersole 76b42a94c3 Initial working support for selecting a "query root" - i.e. `select e from TheEntity e` 2019-09-12 10:42:33 +01:00
Andrea Boriero f85fe137b2 Initial working support for building and executing JdbcSelect operation from simple HQL 2019-09-12 10:42:33 +01:00
Steve Ebersole dbd108e0b7 Initial working support for building and executing JdbcSelect operation from simple HQL 2019-09-12 10:42:33 +01:00
Steve Ebersole 0acd11fae3 6 - SQM based on JPA type system
Completed rebase on master (from the point just after HHH-11147 work) - fixed compilation failures
2019-09-12 10:42:33 +01:00
Steve Ebersole 5aea8bcf6a 6 - SQM based on JPA type system
Completed rebase on master (from the point just after HHH-11147 work) - fixed compilation failures
2019-09-12 10:42:33 +01:00
Steve Ebersole b101ffbf79 6 - SQM based on JPA type system
- moving SQM-specific tests from wip/6.0
2019-09-12 10:42:32 +01:00
Andrea Boriero 588f11684d 6 - SQM based on JPA type system 2019-09-12 10:42:31 +01:00
Andrea Boriero 911c0220fe 6 - SQM based on JPA type system 2019-09-12 10:42:31 +01:00
Steve Ebersole 8d0ff71dfc 6 - SQM based on JPA type system
- further work on `org.hibernate.query` (especially `NamedQueryRepository` and friends)
- initial work on `org.hibernate.sql.exec`
- initial work on `org.hibernate.sql.results`
- SemanticPathPart handling
- NamedQueryMemento
- work on ProcedureCall
- continued work on `org.hibernate.sql.exec`
- continued work on `org.hibernate.sql.results`
- ported `hibernate-testing` JUnit 5 support
2019-09-12 10:42:29 +01:00
Sanne Grinovero 4661efa468 HHH-13591 Fixing formatting of previous patch 2019-08-20 08:44:51 +01:00
Carsten Hammer 19ac013eeb HHH-13591 Replaces simple uses of array iteration with a corresponding for-each loop 2019-08-20 08:44:39 +01:00
Andrea Boriero 210aff098c HHH-13577 LockTest.testContendedPessimisticLock and StatementIsClosedAfterALockExceptionTest.testStatementIsClosed tests fail on Sybase
HHH-13577 : Re-enable LockTest for SybaseASE15Dialect
2019-08-14 18:43:09 -07:00
Steve Ebersole cc01f2561d HHH-11147 - Allow enhanced entities to be returned in a completely uninitialized state
HHH-11161 - do not force initialize collection at all
2019-06-13 12:52:38 -05:00
Chris Cranford 27ddc8e834 HHH-13206 - Fix custom runner properly determine dialect feature checks. 2019-01-15 18:18:31 -05:00
Vlad Mihalcea 29e135c015 HHH-13104 - Oracle 12c / SAP Hana insert fails when entity contains only an identity-based column.
Exclude tests failing for SAP HANA and add the supportNoColumnInsert method in Dialect to be used by the Insert class
2019-01-10 15:09:50 -05:00
Guillaume Smet 2a8582be7f HHH-13138 Set the TCCL in BytecodeEnhancerRunner
We are not consistently using the ClassLoaderService and we sometimes
use the TCCL so better set it correctly.
2019-01-03 21:34:46 +01:00
Guillaume Smet 855f34c771 HHH-12555 Add a DialectCheck for NClob support 2018-12-17 13:53:54 +01:00
Vlad Mihalcea d986ae92d0 HHH-13144 - Move the doInAutoCommit utility to TranscationUtil 2018-12-06 09:22:29 +02:00
Sanne Grinovero aae9cd14a5 HHH-13047 Deprecate Environment#verifyProperties 2018-10-18 11:48:48 +01:00
Vlad Mihalcea cf3622f64c HHH-12771 - Caused by: java.lang.UnsupportedOperationException: Cache provider [org.hibernate.cache.ehcache.internal.EhcacheRegionFactory@3271ec2a] does not support `transactional` access 2018-07-13 09:40:48 +03:00
Vlad Mihalcea 414a0dd75d HHH-12787 - SessionJdbcBatchTest hangs with DB2 2018-07-12 13:39:10 +03:00
Vlad Mihalcea 387bbc51c1 HHH-12749 - Avoid setting the isolation level to the same value in C3P0ConnectionProvider
Fix checkstyle issues
2018-07-02 14:15:50 +03:00
Vlad Mihalcea 6f336b850c HHH-12749 - Avoid setting the isolation level to the same value in C3P0ConnectionProvider 2018-07-02 13:36:23 +03:00
Vlad Mihalcea bcb71fcdd6 HHH-12688 - Duplicated Error Information Displayed in the Log 2018-06-26 11:12:29 +03:00
Vlad Mihalcea 8bbd22967e HHH-12710 - BaseCoreFunctionalTestCase opens an InputStream for mapping files but never closes it 2018-06-20 17:47:47 +03:00
Vlad Mihalcea 5cfb0a508c HHH-12559 - Add support for MySQL 8 SKIP LOCKED and NOWAIT 2018-05-22 12:30:59 +03:00
Steve Ebersole 9f293b113b HHH-12519 - Use Forbidden APIs library (Gradle plugin) to check our use of APIs
- fixing failures in non-core projects
2018-05-12 21:22:42 -05:00
Andrea Boriero 6cefa865b0 HHH-12454 - Offer flag to consider id generator with local scope (legacy non JPA behavior) 2018-04-16 09:47:09 -05:00
Bruno P. Kinoshita ed575e44a9 HHH-12346: Replace StringHelper#join by Java's String#join 2018-03-28 21:14:09 -05:00
Andrea Boriero 0d82dc7c83 HHH-12444 - Introduce BootstrapContext
HHH-12443 - Introduce TypeConfiguration
2018-03-28 17:43:48 -05:00
Andrea Boriero 11462e7860 HHH-12444 - Introduce BootstrapContext
HHH-12443 - Introduce TypeConfiguration
2018-03-28 17:43:48 -05:00
Andrea Boriero 9229514ed4 HHH-12444 - Introduce BootstrapContext
HHH-12443 - Introduce TypeConfiguration
2018-03-28 17:43:48 -05:00
Andrea Boriero 8f889e95d7 HHH-12444 - Introduce BootstrapContext
HHH-12443 - Introduce TypeConfiguration
2018-03-28 17:43:48 -05:00
Steve Ebersole b8674563d2 HHH-11356 - Adjust the 2nd-Cache SPIs to better reflect supported uses
- Fix-ups from Radim's review
- Better Javadoc
2018-03-27 15:38:24 -05:00
Vlad Mihalcea 94e8ba7ba5 HHH-11806 - Add support for MariaDB 10.3
HHH-11769 - New MariaDB Dialect for MariaDB >= v10.1

Add support for IF EXISTS in constraint clauses
2018-03-27 18:14:43 +03:00
Steve Ebersole 1ae38f27a7 HHH-11356 - Adjust the 2nd-Cache SPIs to better reflect supported uses
HHH-12323 - Update Statistics API and SPI based on changes to 2nd level caching changes
HHH-12416 - set up relocation for hibernate-ehcache
HHH-12417 - default strategy based on registrations with StrategySelector

test failure
2018-03-22 23:25:08 -05:00
Steve Ebersole 7f12e2a161 HHH-11356 - Adjust the 2nd-Cache SPIs to better reflect supported uses
HHH-12323 - Update Statistics API and SPI based on changes to 2nd level caching changes
HHH-12416 - set up relocation for hibernate-ehcache
HHH-12417 - default strategy based on registrations with StrategySelector

Basically reverted HHH-12416 and added basic support for Ehcache 2 again
2018-03-22 22:51:07 -05:00
Steve Ebersole 1174cdad65 HHH-12417 - default strategy based on registrations with StrategySelector
ConnectionProviderInitiator and tests
2018-03-22 13:25:12 -05:00
Steve Ebersole eea22fad17 HHH-11356 - Adjust the 2nd-Cache SPIs to better reflect supported uses
HHH-12323 - Update Statistics API and SPI based on changes to 2nd level caching changes

- initial work on migrating hibernate-jcache to new SPIs including a more template-style approach to writing a RegionFactory (o.h.cache.spi.support)
2018-03-22 13:25:12 -05:00
Steve Ebersole 638ebf01df HHH-11356 - Adjust the 2nd-Cache SPIs to better reflect supported uses
HHH-12323 - Update Statistics API and SPI based on changes to 2nd level caching changes

- initial work on migrating hibernate-jcache to new SPIs including a more template-style approach to writing a RegionFactory (o.h.cache.spi.support)
2018-03-22 13:25:12 -05:00
Steve Ebersole f432ecea68 HHH-11356 - Adjust the 2nd-Cache SPIs to better reflect supported uses
HHH-12323 - Update Statistics API and SPI based on changes to 2nd level caching changes
2018-03-22 13:25:12 -05:00
Andrea Boriero 7a47be8d9b Revert "HHH-12391 - attempt to create test reproducing error; no luck"
This reverts commit 6e82e4fd53.
2018-03-16 15:57:07 +00:00
Steve Ebersole 6e82e4fd53 HHH-12391 - attempt to create test reproducing error; no luck 2018-03-15 14:09:56 -05:00
Chris Cranford 676784d281 HHH-8382 - Fix ordering of lob columns when using HBM mappings. 2018-03-06 13:22:15 -05:00
Chris Cranford a0b94f057a HHH-8382 - Added test case. 2018-03-06 13:22:15 -05:00
Sanne Grinovero 0e597a03b5 HHH-11253 Revert dependency change on Javassist: still needed 2018-03-02 16:46:41 +00:00
Sanne Grinovero 0f5c3a0abc HHH-11253 Make Byte Buddy BytecodeProvider impl the default 2018-03-02 12:19:18 +00:00
Sanne Grinovero 4e484af398 HHH-12336 Avoid unnecessary invocations of fillInStackTrace() in the tests 2018-03-01 17:58:30 +00:00
Andrea Boriero 84c50855ef HHH-12271 - Add test for issue 2018-02-05 17:34:39 +00:00
Steve Ebersole d806eff912 HHH-12190 - General tidying of Gradle scripts 2018-01-16 14:34:43 -06:00
Steve Ebersole 300fa80016 HHH-12189 - Only call setAccessible() when member is not accessible 2017-12-27 09:53:07 -06:00
Andrea Boriero 00a07caf5b HHH-12098 - Fix licence checkstyle error 2017-12-13 17:42:43 +00:00
Steve Ebersole 59c3baae32 HHH-12146 - Support enabling caching at any level within a mapped hierarchy 2017-12-13 06:19:32 -06:00
Steve Ebersole 7fc5d3e856 HHH-12098 - prep 5.3 2017-12-13 06:19:32 -06:00
Steve Ebersole 4b3a18a5b4 HHH-12098 - prep 5.3 2017-12-13 06:19:31 -06:00
Steve Ebersole ad0aa213bc Allow Hibernate's Transaction act like JPA's EntityTransaction 2017-12-13 06:19:31 -06:00
Steve Ebersole 58781056a9 HHH-12129 - Fix expected exceptions on various Query methods 2017-12-13 06:19:31 -06:00
Steve Ebersole 4688d4412f HHH-12098 - prep 5.3 2017-12-13 06:19:30 -06:00
Edward.Wilson 7011347b9a HHH-12140 - Allow session scoped interceptors to be managed by DI providers (e.g Spring) 2017-11-30 13:31:53 +02:00
Steve Ebersole e9263758fe HHH-12085 - @NaturalId not working on inherited field 2017-11-10 17:20:49 -06:00
Vlad Mihalcea 164178330a HHH-12073 - Change BaseUnitTestCase Logger to protected 2017-11-01 19:04:07 +02:00
Jonathan Bregler 3aad752b04 Improved Hibernate support for SAP HANA
- Identity column support
- Spatial support
- Various minor improvements in HANA dialects
2017-09-21 12:05:19 -05:00
Andrea Boriero 7a897d5285 HHH-11651 - Fix checkstyle errors 2017-09-21 16:24:42 +01:00
Andrea Boriero 6379a42a58 HHH-11651 - unwrapping error in AbstractMultiTenantConnectionProvider 2017-09-21 14:58:47 +03:00
barreiro cfb910fb37 HHH-11882 - Use CustomRunner as the runner for tests with BytecodeEnhancerRunner 2017-08-10 14:39:00 +02:00
barreiro a2803d7703 HHH-11882 - Remove old bytecode enhancer testing infrastructure 2017-08-07 09:41:33 -05:00
barreiro 168a47bdae HHH-11882 - Bytecode enhancer JUnit runner 2017-08-07 09:41:33 -05:00
Vlad Mihalcea c42df6a11b HHH-11290 - Migrate all documentation snippets that derive the source code from extras instead of actual Unit Tests
Fixed in the Embeddable chapter
2017-06-29 16:56:08 +03:00
Vlad Mihalcea e50809e631 Fix failing test on MariaDB 2017-06-16 11:59:10 +03:00
Vlad Mihalcea c0b0da4282 HHH-11186 - Add examples for all Hibernate annotations
Document @UniqueConstraint annotation
2017-06-01 14:01:40 +03:00
Vlad Mihalcea 733f55f362 HHH-11740 - Default MultiTableBulkIdStrategy for DB2 does not work with connection pools
- Made test run on H2, Oracle, SQL server, MySQL and PostgreSQL
2017-05-15 18:50:31 +03:00
Richard Bradley 3a813dcbb4 HHH-11646 revert errant after -> afterQuery search and replace 2017-05-03 11:54:37 +03:00
Vlad Mihalcea ca103dcb28 HHH-11542 - Allow the auto-commit resolution to be configurable for RESOURCE_LOCAL transactions 2017-04-14 10:51:57 +02:00
Andrea Boriero 23aad981a8 HHH-11593 - Remove mockito dependencies from hibernate-testing 2017-04-14 08:44:47 +02:00
Andrea Boriero eef8a48ce4 HHH-11617 - Statement leak in case of 'SQLGrammarException: could not extract ResultSet' 2017-04-11 17:03:30 +03:00
Vlad Mihalcea c15fa77f0f HHH-11616 - Refactor org.hibernate.jpa.test.lock.LockTest
HHH-8001 - Apply query timeouts to Oracle follow-on locking
2017-04-06 16:02:29 +03:00
Andrea Boriero cbace699a0 HHH-10654 - Fix checkstyle error 2017-04-05 09:59:06 +01:00
Andrea Boriero 5fd186a010 HHH-10654 - Fix mariadb and pgsql failing tests 2017-04-04 19:32:32 +03:00
Vlad Mihalcea 2a9c0fe0dd HHH-10654 - LockOptions.SKIP_LOCKED semantics implementation on MSSQL 2017-04-03 08:17:50 +03:00
Andrea Boriero 6bfe281589 HHH-11593 - Fix checkstyle errors 2017-03-30 10:49:58 +01:00
Andrea Boriero 245dc27e48 HHH-11593 - Fix checkstyle errors 2017-03-30 10:48:17 +01:00
Vlad Mihalcea ae23ecd937 HHH-11593 - Fix test issues in SQL Server 2017-03-29 17:13:30 +03:00
Andrei Solntsev ba9d1c779f HHH-11529 - Getting NullPointerException from ScanningCoordinator debug log
Actually URL.toString() calls toExternalForm(), so it has exactly the same effect, but without NPE.
2017-03-09 16:20:21 +02:00
Sanne Grinovero 7c90905d73 HHH-11518 Log4DelegatingLogger slows down testsuite execution by formatting messages too eagerly 2017-02-23 18:11:09 +00:00
Vlad Mihalcea 7c06d003dc HHH-11457 - Add MariaDB specific Dialects 2017-02-15 12:08:34 +02:00
Evandro Pires da Silva d48f393420 HHH-11262 - Bulk Operations attempt to create temporary tables, but user does not have permission to create table 2017-02-01 13:14:31 +02:00
Jan Martiska e62d71b76b HHH-11434 - prevent failures in some tests from freezing the whole test suite 2017-02-01 08:56:44 +00:00
Andrea Boriero f007dc7c90 HHH-11428 - When multiple @RequiresDialect annotation is applied the test is ignored 2017-01-31 17:57:18 +00:00
Andrea Boriero e547ee0793 HHH-11428 - When multiple @RequiresDialect annotation is applied the test is ignored 2017-01-31 15:17:15 +02:00
Christian Beikov 4d076111a3 Test case for HHH-11258 2016-11-23 06:32:08 -06:00
Rafael Winterhalter ba3359fe62 HHH-11152: Added BytecodeProvider based on Byte Buddy 2016-11-16 13:18:46 -06:00
Christian Beikov 556aa265c0 Add property for disabling subquery join rewrites and handle mysql quoted identifiers 2016-10-21 13:44:08 -05:00
Steve Ebersole 9aa164ed27 HHH-10818 - Allow AttributeConverter on attributes marked as Lob (REALLY this time) 2016-09-29 11:27:27 -05:00
ChristophDreis d2d947068d HHH-11136 - Reduce memory consumption caused by Method.getParameterTypes() 2016-09-27 09:08:41 +02:00
Vlad Mihalcea cc21eeb1af Skip test failing on Java 1.9 using Gradle 2016-09-20 20:01:13 +03:00
Vlad Mihalcea bd8c3c226d Disable bytecode enhancement for documentation module as well as the test that makes use of this feature if the JDK version is 1.9 2016-09-20 18:23:45 +03:00
Vlad Mihalcea 553942d2f9 HHH-10399 - Add support for specifying TimeZone for ZonedDateTime type 2016-09-12 10:50:54 +03:00