Commit Graph

4372 Commits

Author SHA1 Message Date
Guillaume Smet 8dfdf8d22b HHH-12615 Make a few AbstractEntityPersister methods protected final
This is useful for OGM. I made them final so that we don't have to
account for child classes overriding them in the future.
2018-05-24 10:41:01 +02:00
Chris Cranford 3b05e92f40 HHH-12581 - Added test case. 2018-05-23 13:57:35 -04:00
Chris Cranford 367cc4c33d HHH-12586 - Fix CI failure with column names on postgres. 2018-05-23 11:32:13 -04:00
Chris Cranford 5919000dc8 HHH-12617 - Fix checkstyle issues with prior commit. 2018-05-23 10:40:14 -04:00
Chris Cranford ae890b4623 HHH-12617 - Improved cache warning on non-root entity configurations. 2018-05-23 09:34:59 -04:00
Sanne Grinovero 97c88a7f11 HHH-12591 Reverting the changes to the logging messages 2018-05-23 12:14:13 +01:00
Chris Cranford 33e9031791 HHH-12586 - Added test case. 2018-05-22 22:38:25 -04:00
Philippe Marschall 37467554e7 HHH-12586 Strange date type confusion in JdbcDateTypeDescriptor
https://hibernate.atlassian.net/browse/HHH-12586
2018-05-22 22:38:25 -04:00
Chris Cranford 21bd9a6a9f HHH-12587 - Fix NullPointerException when flushing entity with CacheConcurrencyStrategy.NONE. 2018-05-22 17:45:03 -04:00
Chris Cranford 3aac27d369 HHH-12587 - Added test case. 2018-05-22 17:44:19 -04:00
Chris Cranford a37960a23d HHH-12577 - Remove unnecessary warning for AttributeConverter implementations. 2018-05-22 11:09:48 -04:00
Vlad Mihalcea 5cfb0a508c HHH-12559 - Add support for MySQL 8 SKIP LOCKED and NOWAIT 2018-05-22 12:30:59 +03:00
Sanne Grinovero 2d55060ff6 HHH-12610 Upgrade to Byte Buddy 1.8.11 to improve JDK compatibility 2018-05-21 18:38:24 +01:00
Sanne Grinovero 89305c994e Cleanup duplicate license header 2018-05-21 18:38:24 +01:00
Vlad Mihalcea 4a8951a6b4 HHH-12589 - Add support for registering custom SQL functions when bootstrapping via JPA 2018-05-21 17:49:56 +03:00
Chris Cranford de44e4180d HHH-12569 - Fix ordered inserts constraint violation when using a OneToOne with a JoinColumn. 2018-05-17 15:58:06 -04:00
Chris Cranford 3c3dc88283 HHH-12569 - Added test case. 2018-05-17 15:56:11 -04:00
Vlad Mihalcea ae8930e19f HHH-12594 - Using property "hibernate.default_batch_fetch_size" crashes bootstrapping
Fix test failing in spite of @FailureExpected
2018-05-17 17:41:14 +03:00
Vlad Mihalcea e1cdad36d0 HHH-12594 - Using property "hibernate.default_batch_fetch_size" crashes bootstrapping 2018-05-17 16:05:51 +03:00
Andrea Boriero 99d630bcc2 HHH-12591 - Remove second call to Scope#setSessionFactory(SessionFactoryImplementor) from TypeConfiguration#scope(SessionFactoryImplementor,BootstrapContext) 2018-05-16 22:03:46 +01:00
Andrea Boriero 9b00aaf9a5 HHH-12585 - Improve DefaultFlushEntityEventListener#invokeInterceptor method execution 2018-05-15 20:51:46 +01:00
Andrea Boriero ec75e9a26f HHH-12583 - Deprecate hibernate.proc.param_null_passing setting 2018-05-15 18:16:14 +01:00
Steve Ebersole 4bae1ca810 HHH-12572 - Exclude LockMode.WRITE from loader creation loop 2018-05-14 17:45:35 -05:00
Steve Ebersole 60f4645036 HHH-12558 - Lazy load EntityLoaders to improve memory usage 2018-05-14 16:01:56 -05:00
Guillaume Smet 98cab7aefb HHH-12558 Lazy load entity loaders for the less common lock modes 2018-05-14 16:01:56 -05:00
Steve Ebersole 26bf33abdc HHH-12529 - Some StatisticsImpl methods throw an exception instead of returning null 2018-05-14 13:19:27 -05:00
Steve Ebersole e2ac4eb22f HHH-12565 - checkstyle 2018-05-14 12:25:27 -05:00
Christian Beikov f62cecc62b HHH-12565 Fix that returns the discriminator constant instead of column reference for leaf subtypes 2018-05-14 12:25:27 -05:00
Christian Beikov f972dd4d29 HHH-12565 Test showing TYPE for a TPC hierarchy leaf subtype fails 2018-05-14 12:25:27 -05:00
Andrea Boriero ecd6f503f8 HHH-12540 - Reusing same EntityTransaction with JTA enabled 2018-05-14 12:14:22 -05:00
Andrea Boriero ca86633370 HHH-12540 - Add test for issue 2018-05-14 12:14:22 -05:00
Steve Ebersole 9f4ff8ae90 HHH-8786 - find, refresh, lock should throw LockTimeoutException or PessimisticLockException when lock problems occur
HHH-12570 - MariaDB 10.3 adds support for lock timeouts via WAIT plus NOWAIT
2018-05-14 12:08:06 -05:00
Steve Ebersole 1570c71833 HHH-12472 - WildFly (IronJacamar) - EntityManager#find with roll-back-only leads to exception rather than return null 2018-05-14 07:52:40 -05:00
Steve Ebersole 0695b3ff6e HHH-12519 - Use Forbidden APIs library (Gradle plugin) to check our use of APIs
- initial support; implicit usage of default Locale is a major problem
2018-05-12 20:29:50 -05:00
Steve Ebersole 4208ca0a2f HHH-12463 - Delegate CustomType#equals/hashCode to wrapped UserType 2018-05-12 17:58:40 -05:00
Steve Ebersole 1a4577d1f0 HHH-12560 - Make sure only one Service registration (initiator/provided) exists per role
- additional test - this one needed a minor change.. all tests implicitly use values defined in `hibernate.properties`, which hibernate-core has.  This lead to `#getFallback` being called, which was the intended solution.  The fix for that was simply the next point.
- added the ability to clear the settings contained on StandardServiceRegistryBuilder.  This is used in the test to make sure that no explicit RegionFactory is set.
2018-05-11 15:38:47 -05:00
Steve Ebersole 87c7915a5c HHH-12560 - Make sure only one Service registration (initiator/provided) exists per role
- added test (passed without changes)
- added "graceful shutdown" of services already bound during construction of a registry
2018-05-11 15:00:27 -05:00
Gail Badner 9b98e61e7f HHH-12562 : Remove DefaultSchemaNameResolver#delegate since the value should not be cached 2018-05-10 16:05:56 -07:00
Andrea Boriero c283349f3f HHH-12539 - Fix PostgreSql test failure 2018-05-10 12:08:47 +01:00
Andrea Boriero fdb31045b9 HHH-12539 - NPE in AbstractPropertyMapping.getCommonPersistentClass when creating UnionSubclassEntityPersister for dynamic-map 2018-05-10 10:56:40 +01:00
Andrea Boriero 118e7dc1f2 HHH-12539 - Add test for issue 2018-05-10 10:56:40 +01:00
Guillaume Smet 3834c4d149 HHH-12556 Share data structures between similar LoadPlan based EntityLoaders 2018-05-09 15:30:03 +02:00
Vlad Mihalcea 1c1cd47c08 HHH-12470 - Batching statements fails for delete 2018-05-08 22:03:25 +03:00
David M. Lloyd d3ee9c6ca1 HHH-10435 Create class loaders in a privileged block 2018-05-08 17:19:36 +01:00
Sanne Grinovero 207a8f03af HHH-12554 Make EnhancerImpl more closely match the semantics described in Enhancer javadoc 2018-05-08 17:14:36 +01:00
Sanne Grinovero 2fa5d3ccb8 HHH-12545 ByteBuddy based enhancer not accepting special character in description names 2018-05-08 17:14:36 +01:00
Steve Ebersole 350d330159 HHH-12544 - Add jipijapa hook to plug in specialized caching and transaction services 2018-05-08 10:40:15 -05:00
Rodrigo Turini 14a9c0a56d HHH-12090 - PropertyAccessBuildingException: Could not locate setter for property named XXX for Java 8 default methods 2018-05-07 17:54:53 +03:00
Jonathan Bregler db259df457 HHH-12546: locate function doesn't work on SAP HANA 2018-05-07 17:20:33 +03:00
Jonathan Bregler a01c282288 HHH-12541: Test for SAP HANA calculation views 2018-05-07 16:01:46 +03:00
Jonathan Bregler 8816c5afb2 HHH-12537: Query hint test for SAP HANA
- add org.hibernate.test.queryhint.QueryHintHANATest
2018-05-07 12:44:54 +03:00
Jonathan Bregler f17513f8c5 HHH-12362 - Allow both SQL query hints and comments
- org.hibernate.test.queryhint.QueryHintTest uses
  assertNotNull(String#contains(String)) which always evaluates to true
2018-05-07 11:46:18 +03:00
Jonathan Bregler da14797ba8 HHH-12534: SAP HANA dialects use unqualified dummy table in queries 2018-05-07 09:16:46 +03:00
Jonathan Bregler 2b18e0efa5 HHH-12535: SAP HANA dialect doesn't support circular cascade delete constraints 2018-05-07 08:34:12 +03:00
Vlad Mihalcea 8b190dbbd0 HHH-12470 - Batching statements fails for delete
Add replicating test case
2018-05-03 08:24:02 +03:00
Steve Ebersole 82f2aa0d5d HHH-12474 - Make sure the JPA version is defined by a single property across build files
added HibernateVersion following pattern of JpaVersion
2018-04-30 10:38:34 -05:00
Chris Cranford 7938918518 HHH-12530 - Fix checkstyle concerns. 2018-04-30 09:36:00 -04:00
Chris Cranford f4e83e3a10 HHH-12530 - Fix checkstyle concerns. 2018-04-30 09:34:37 -04:00
Sergey Chernolyas db1d2d177b HHH-12530 add processing of unknown hints 2018-04-30 09:34:37 -04:00
Petteri Pitkänen 15791a84fb HHH-12505 - Add tests 2018-04-30 09:11:30 -04:00
Petteri Pitkänen cb68d60ce3 HHH-12505 - Add possibility to disable metadata scanning 2018-04-30 09:11:30 -04:00
Klauswk 83b2780482 Fix Typo in PersistEvent
Just fixing a typo i found while using Hibernate, feel free to accept or just fix in master.

Cheers.
2018-04-30 08:49:17 -04:00
asutosh936 bb91924a9e HHH-12517 - Updated Javadocs with correct parameter methods 2018-04-28 17:49:46 -05:00
Chris Cranford 1d94549394 HHH-12199 - Ignore static fields when resolving property types via reflection. 2018-04-27 16:08:36 -04:00
Chris Cranford b44001c644 HHH-12199 - Added test case. 2018-04-27 16:07:45 -04:00
Steve Ebersole c6dc398fc5 HHH-8786 - find, refresh, lock should throw LockTimeoutException or PessimisticLockException when lock problems occur 2018-04-27 09:42:09 -05:00
Vlad Mihalcea 43d15578dc HHH-12469 - Add support for IN clause parameter padding to better reuse cached statements 2018-04-27 16:44:22 +03:00
Steve Ebersole 676aebdf51 HHH-8786 - find, refresh, lock should throw LockTimeoutException or PessimisticLockException when lock problems occur 2018-04-27 08:32:47 -05:00
Steve Ebersole 12b79a5938 HHH-12257 - Refreshing an entity clears the lock mode returned from EntityManager.getLockMode 2018-04-26 11:46:43 -07:00
Gail Badner a286232da3 HHH-12257 : Refreshing an entity clears the lock mode 2018-04-26 11:46:43 -07:00
Sanne Grinovero 90b058507e HHH-12521 Take advantage of Java 8 improvements to optimise Statistics 2018-04-26 10:43:20 +01:00
Radim Vansa fb7c1a4598 HHH-12523 - Invoke CacheTransactionSynchronization.transactionCompleting 2018-04-26 11:28:42 +03:00
Gail Badner 9f0c1a751a HHH-12508 : SessionFactoryOptions#isSecondLevelCacheEnabled returns true by default with NoCachingRegionFactory 2018-04-25 11:12:35 -07:00
Gail Badner 66d7196168 HHH-12508 : test cases 2018-04-25 11:12:35 -07:00
Sanne Grinovero 5367a1c8a6 HHH-12515 LocalXsdResolver should attempt local resource loading before attempting it via URL 2018-04-23 14:55:43 +01:00
Sanne Grinovero 2d1bec72c9 HHH-12514 Micro style polishing of XsdDescriptor 2018-04-23 13:59:42 +01:00
Sanne Grinovero 1c14f1a1db HHH-12514 Avoid repeated creations of costly Xsd definitions and definition lookups 2018-04-23 11:55:33 +01:00
Gail Badner 01ba7d9565 HHH-11766 : Accessing lazy basic property on entity loaded from 2nd level cache throws exception 2018-04-20 15:24:06 -07:00
Gail Badner 1c151f956d HHH-11766 : test case
HHH-11766 : Renamed and updated test to be more comprehensive; added another test with a lazy basic value
2018-04-20 15:24:06 -07:00
Sanne Grinovero 0546eaac3b HHH-12511 Make ASTPrinter threadsafe and have code reuse their instances 2018-04-20 12:07:54 +01:00
Sanne Grinovero 782f023a5a HHH-12509 Reduce memory usage of PreparedStatementSpyConnectionProvider 2018-04-20 11:16:53 +01:00
Gail Badner c7ea49a0b3 HHH-12507 : InsertOrderingWithCompositeTypeAssociation test fails on Oracle due to reserved word 2018-04-19 14:14:41 -07:00
Steve Ebersole 385cf9a23c HHH-12504 - SessionBuilder / SharedSessionBuilder (binary compatibility) 2018-04-19 12:32:27 -05:00
Andrea Boriero 291d4a3eea HHH-12487 - Calling getTransaction() on a closed EntityManager 2018-04-19 15:46:50 +01:00
Andrea Boriero 19f78bbd3d HHH-12487 - Add test for issue 2018-04-18 18:38:46 +01:00
Sanne Grinovero 432d3a29fa HHH-12384 Introduce new hibernate.bytecode.enforce_legacy_proxy_classnames configuration property 2018-04-18 13:05:34 +01:00
Sanne Grinovero 1f7457133c HHH-12501 Fallback implementation for BytecodeProvider should match the default 2018-04-18 13:05:34 +01:00
Steve Ebersole d3218581e8 HHH-12495 - Cache statistics (binary compatibility) 2018-04-17 18:59:00 -05:00
Steve Ebersole a63c4fe1d2 HHH-12495 - Cache statistics (binary compatibility) 2018-04-17 18:57:12 -05:00
Steve Ebersole e508d6bee8 HHH-12499 - SQLQuery (binary compatibility) 2018-04-17 18:44:35 -05:00
Steve Ebersole d9cdd58068 ProcedureCallMemento (binary compatibility) 2018-04-17 14:56:58 -05:00
Steve Ebersole 57543a447e HHH-12494 - BasicQueryContract (binary compatability) 2018-04-17 14:10:53 -05:00
Chris Cranford 231dd064a4 HHH-12448 - Fix potential memory leak with Envers and JTA when after-completion callbacks did not fire. 2018-04-17 14:02:41 -04:00
Sanne Grinovero 83cd43d26b HHH-12493 Missing final keyword in Bytebuddy EnhancerImpl 2018-04-17 18:24:16 +01:00
Steve Ebersole f89e82a020 HHH-8944 - ColumnTransformer handling is too aggressive in qualifying "column names"
Limited to H2 because getting a good expression to use for `Staff#kooky` that works on all databases is challenging and really what happens on the "database side" here is not relevant - the issue being tested is how Hibernate applies the table aliases to column references in the expression.
2018-04-17 06:43:45 -05:00
Sanne Grinovero cf2c6235fd Amend an out of date javadoc comment referring to CGLIB 2018-04-17 11:55:32 +01:00
Sanne Grinovero 2461301467 HHH-12493 Further reduce allocations of ByteBuddy engines 2018-04-17 11:53:40 +01:00
Vlad Mihalcea 6d54383ca9 HHH-12407 - order_inserts: StackOverflowError when flushing a session
Add test that proves the issue does not replicate anymore
2018-04-17 10:03:34 +03:00
Steve Ebersole 683d1e492a HHH-8944 - ColumnTransformer handling is too aggressive in qualifying "column names" 2018-04-16 11:07:24 -05:00
Christian Beikov 2bf323f01f HHH-12485 - Avoid unnecessary exceptions during import class name lookup of metamodel 2018-04-16 10:16:09 -05:00