Commit Graph

3050 Commits

Author SHA1 Message Date
Andrea Boriero 9c51d269db HHH-11101 - Add test for issue
(cherry picked from commit a3eac62761)
2016-09-16 01:15:32 -07:00
Gail Badner 4a2993211b HHH-11067 : Fix to work with JDK6 souce
(cherry picked from commit df2432d684)
2016-09-15 14:46:13 -07:00
Steve Ebersole 4c04d35b4c HHH-11067 - Proxy-wrapped Sessions (ThreadLocalSessionContext.TransactionProtectionWrapper) handle equals incorrectly
(cherry picked from commit aaa32ebed5)
(cherry picked from commit a53e3ed126)
2016-09-15 14:45:58 -07:00
Gail Badner b809eb09b9 HHH-11073 : Casting to boolean in HQL query fails on MySQL
(cherry picked from commit 839bf0b6f9)
2016-08-31 00:27:15 -07:00
Alex Belyaev aa47860936 HHH-9512: Avoid creation of invalid managed -> managed entity mapping in MergeContext when traversing cascade loop
(cherry picked from commit 816c97613d)
2016-08-29 16:59:26 -07:00
Andrea Boriero eeb57f39db HHH-11037 - Same named subtype embeddable properties ignored
(cherry picked from commit 62bfbf8bd9)

Conflicts:
	hibernate-core/src/main/java/org/hibernate/cfg/annotations/EntityBinder.java

(cherry picked from commit f446b0a35e)
2016-08-18 16:15:46 -07:00
Gail Badner 9ad8e1ae88 HHH-11037 : Fix tests to be jdk6-compliant
(cherry picked from commit 840258a00e)
2016-08-18 16:15:29 -07:00
Gail Badner 2335716be8 HHH-11037 : Correct jira issue in @TestForIssue
(cherry picked from commit 5096982532)
2016-08-18 16:15:14 -07:00
Andrea Boriero c8e68b6ee9 HHH-11037 - Add test for issue
(cherry picked from commit 3028f5d787)
2016-08-18 16:14:58 -07:00
johara 97318b71f0 HHH-11051 : Cache EventListenerRegistry and StatisticsImplementor 2016-08-17 13:22:11 +01:00
Gail Badner 0f67404b79 HHH-11041 : Correct references to Hibernate version in javadoc annotations in backported code 2016-08-11 22:21:47 -07:00
Yanming Zhou ed2c353717 HHH-10964 : Fix missing currentTenantIdentifierResolver
1. Add missing sessionFactoryBuilder.applyCurrentTenantIdentifierResolver() .
2. Use getter instead of field for consistency .

(cherry picked from commit 5ea8997ca7)
2016-08-11 00:36:37 -07:00
Gail Badner 906341349b HHH-10876 : corrections due to backporting
(cherry picked from commit ee2db37052)
2016-08-10 23:26:31 -07:00
Vlad Mihalcea a505028533 HHH-10876 - DefaultIdentifierGeneratorFactory does not consider the hibernate.id.new_generator_mappings setting
(cherry picked from commit eec01edcca)

Conflicts:
	hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java

(cherry picked from commit d4b81560bf)

Conflicts:
	hibernate-core/src/main/java/org/hibernate/dialect/PostgreSQL81Dialect.java
2016-08-10 23:25:15 -07:00
Gail Badner e6fe44f973 HHH-10978 : changes required to backport to 5.0 2016-08-10 16:30:51 -07:00
Chris Cranford 5abcfbf5d5 HHH-10978 - Added test case.
(cherry picked from commit 5b7d00ef1e)
2016-08-10 16:07:02 -07:00
Chris Cranford d4a820fc9f HHH-10978 - Fix building join table metadata with default catalogs or schema values.
(cherry picked from commit 9c37511811)

Conflicts:
	hibernate-core/src/main/java/org/hibernate/cfg/BinderHelper.java
	hibernate-core/src/main/java/org/hibernate/cfg/annotations/TableBinder.java
2016-08-10 16:05:54 -07:00
Gail Badner 76142a6e65 HHH-8488 : Move tests to hibernate-entityManager
(cherry picked from commit abf80cae81)
2016-08-10 15:16:24 -07:00
Andrea Boriero 9a9da98aaa HHH-8488 - Add tests for issue
(cherry picked from commit 9d20d3ab03)
(cherry picked from commit 18fb5d9168)
2016-08-10 15:15:56 -07:00
Gail Badner 71d799ae11 HHH-10795 : Corrections due to backporting 2016-07-29 17:20:40 -07:00
Gail Badner b22f0113a8 HHH-10795 : added assertions to test case
(cherry picked from commit afbc9e2dcd)
2016-07-29 17:20:40 -07:00
Gail Badner 6bd487cae6 HHH-10795 : StatefulPersistenceContext.entityEntryContext does not work properly for ManagedEntity associated with a different StatefulPersistenceContext
(cherry picked from commit 001ea33603)

Conflicts:
	hibernate-core/src/main/java/org/hibernate/internal/CoreMessageLogger.java
2016-07-29 17:20:40 -07:00
Chris Cranford d41daa3b46 HHH-10994 - Relax requirement of 'as' in the alias phrase for the MSSQL LimitHandler implementation.
(cherry picked from commit 714ba62)
2016-07-28 12:48:34 -05:00
Gail Badner f8243a6007 HHH-10993 : NPE when Lazy loading collection without transaction for bytecode enhanced entitie
(cherry picked from commit 2c553f3290)
2016-07-26 16:37:29 -07:00
johara 43134abdd0 HHH-10993 - Added testcase for Lazy Loaded collections outside transaction in bytecode enhanced entities
Conflicts:
	hibernate-core/src/test/java/org/hibernate/test/bytecode/enhancement/EnhancerTest.java
2016-07-26 16:36:07 -07:00
barreiro d66c213b61 HHH-10973 - Fix 'class is frozen' when enhancing bidirectional relationships
(cherry picked from commit a9318ce656)
2016-07-21 22:54:06 -07:00
barreiro 5192eb71f5 HHH-10977 - Entity not enhanced after MappedSuperclass
(cherry picked from commit 987487e106)
2016-07-21 22:53:52 -07:00
barreiro 0f881d7cf2 HHH-10977 - Fix enhanced classloader so that the testsuite behaves as the enhancement plugins do
(cherry picked from commit b3aaa12b64)

Conflicts:
	hibernate-core/src/test/java/org/hibernate/test/bytecode/enhancement/EnhancerTestUtils.java
2016-07-21 22:52:54 -07:00
barreiro 0f8fa7a12b HHH-10922 - Call on bytecode enhanced method trigger load of proxy
(cherry picked from commit 92c1e63577)
2016-07-19 16:20:57 -07:00
Gail Badner e66ec8f77e HHH-10922 - Correcions due to backporting
(cherry picked from commit 58b3f69555)
2016-07-19 16:19:29 -07:00
barreiro d972fecbf2 HHH-10922 - Test case
(cherry picked from commit 45adb05f5a)

Conflicts:
	hibernate-core/src/test/java/org/hibernate/test/bytecode/enhancement/EnhancerTest.java
2016-07-19 16:18:11 -07:00
barreiro 40ac9ce4b0 HHH-10922 - Add support for custom enhancement context on bytecode enhacer tests
(cherry picked from commit 68a2896c2b)

Conflicts:
	hibernate-core/src/test/java/org/hibernate/test/bytecode/enhancement/EnhancerTestUtils.java
2016-07-19 16:15:40 -07:00
Gail Badner cc94c57097 HHH-5393 : MappingException when @MapKeyColumn refers to a column mapped in embeddable map value
(cherry picked from commit c893577efc)

Conflicts:
	hibernate-core/src/main/java/org/hibernate/mapping/SimpleValue.java
2016-07-14 16:28:54 -07:00
Gail Badner c1f3b54194 HHH-10551 : test case 2016-07-11 18:35:57 -07:00
barreiro e8cab909c0 HHH-10801 - Bytecode enhancement of @MappedSuperclass
(cherry picked from commit cdc69a475b)

Conflicts:
	hibernate-core/src/test/java/org/hibernate/test/bytecode/enhancement/mapped/MappedSuperclassTestTask.java
2016-07-01 14:04:39 -07:00
Gail Badner 70bb620644 HHH-10646 : Correct to backport 2016-07-01 13:58:55 -07:00
barreiro 2aa76b3ef9 HHH-10646 - [enhancer] Add support for @MappedSuperclass
(cherry picked from commit e615d76a26)

Conflicts:
	hibernate-core/src/test/java/org/hibernate/test/bytecode/enhancement/EnhancerTest.java
2016-07-01 13:52:58 -07:00
Gail Badner 4f3391a592 HHH-10851 : Change to check for @Access on field and getter before checking the class containing the attribute
(cherry picked from commit 570577b653)
2016-06-30 22:29:18 -07:00
barreiro ac47825db2 HHH-10851 - PropertyAccessMixed not aware of Access annotation
(cherry picked from commit 5ef1da74c2)

Conflicts:
	hibernate-core/src/main/java/org/hibernate/property/access/internal/PropertyAccessEnhancedImpl.java
2016-06-30 22:27:24 -07:00
Gail Badner afe747e7a8 HHH-10865 : Fixes required for backporting 2016-06-29 19:39:10 -07:00
Gail Badner 4c900da689 HHH-10865 - ManyToMany relation dropped from database when lazy loading is active
(cherry picked from commit 8e8be9aeb4)

Conflicts:
	hibernate-core/src/main/java/org/hibernate/tuple/entity/AbstractEntityTuplizer.java
	hibernate-core/src/main/java/org/hibernate/tuple/entity/BytecodeEnhancementMetadataPojoImpl.java
2016-06-29 19:37:19 -07:00
Gail Badner 11f2d5d5f7 HHH-10413 : fixes required to backport
(cherry picked from commit 995e76e5fb)
2016-06-28 23:16:26 -07:00
Gail Badner 62c8bb914b HHH-10413 : byte[] as the version attribute broken
(cherry picked from commit 1d20ea4f60)

Conflicts:
	hibernate-core/src/main/java/org/hibernate/type/BinaryType.java

(cherry picked from commit 0561093de6)
2016-06-28 23:16:14 -07:00
Andrea Boriero dc1073e212 HHH-10861 - Fix nullLiteral in select expression
(cherry picked from commit 597183a3b9)

Conflicts:
	hibernate-entitymanager/src/main/java/org/hibernate/jpa/criteria/expression/NullLiteralExpression.java

(cherry picked from commit 4f46968600)
2016-06-28 18:25:28 -07:00
Gail Badner 57f12918d6 HHH-10729 HHH-9021 HHH-10230 : Move tests to hibernate-entitymanager
(cherry picked from commit 57a9345959)
2016-06-28 18:25:07 -07:00
Gail Badner 2139fd8c0d HHH-10729 HHH-9021 HHH-10230 : Add more checks to test cases
(cherry picked from commit 13db8b95e3)
2016-06-28 18:24:45 -07:00
Andrea Boriero 7a17840c16 HHH-10729 HHH-9021 HHH-10230 - Fix Issue with literals in select expression
(cherry picked from commit e71af130f0)
2016-06-28 18:24:31 -07:00
Andrea Boriero 903a3befb3 HHH-10729 HHH-9021 HHH-10230 - Add test for issue
(cherry picked from commit e0963d56b9)
2016-06-28 18:24:17 -07:00
Andrea Boriero 99aa8dd34a HHH-10341 - Fix failing test
(cherry picked from commit 83eb8b0f76)
2016-06-28 13:36:59 -07:00
Andrea Boriero 80e591f064 HHH-10341 - Fix Specification violation in Implementation of TupleElement
(cherry picked from commit 04f1fcc762)
2016-06-28 13:36:39 -07:00
Gail Badner 7764358c7f HHH-10341 - Move test to hibernate-entitymanager
(cherry picked from commit f32476e6c9)
2016-06-28 13:36:28 -07:00
Andrea Boriero 3d421f1595 HHH-10341 - Add test for issue
(cherry picked from commit 57b954d476)
2016-06-28 13:36:18 -07:00
Gail Badner ec8aa4ecc3 HHH-10843 - Move test to hibernate-entitymanager
(cherry picked from commit 61d73f6214)
2016-06-28 13:10:01 -07:00
Andrea Boriero 3ddd32d82d HHH-10843 - Add test for issue
(cherry picked from commit a3ed7010b6)
2016-06-28 13:09:48 -07:00
Gail Badner f6a6f35dd9 HHH-10648 : Backport corrections
(cherry picked from commit d407e73775)
2016-06-23 00:36:11 -07:00
Gail Badner 90c372aa95 HHH-10648 : No MultipleBagFetchException is thrown when fetching two bags eagerly
(cherry picked from commit 59c0d48f8d)
2016-06-23 00:35:51 -07:00
barreiro 879674cdf7 HHH-10708 - Fix test case 2016-06-22 12:39:53 -07:00
Gail Badner 9c840739db HHH-10708 : Fix bug due to backporting (SPI does not exist in 5.0) 2016-06-22 12:39:23 -07:00
Steve Ebersole 33e16f2788 HHH-10708 - Accessing a lazy collection in an enhanced class deletes it afterwards
(cherry picked from commit 0e1b79d2b5)

Conflicts:
	hibernate-core/src/main/java/org/hibernate/engine/internal/Collections.java

HHH-10708 : Corrections due to backporting

(cherry picked from commit 0f918b4d42)

Conflicts:
	hibernate-core/src/main/java/org/hibernate/engine/internal/AbstractEntityEntry.java
2016-06-22 12:39:23 -07:00
barreiro fffd2515a6 HHH-10708 - Test cases
(cherry picked from commit 9768cf21c5)
2016-06-22 12:39:23 -07:00
Gail Badner 5061741e52 HHH-10761 : Propagating NULL for a stored-procedure named parameters will not work for Oracle if there are other named parameters 2016-06-21 16:46:09 -07:00
Gail Badner 2690835f27 HHH-8999 : Changed references to SharedSessionContractImplementor to SessionImplementor
(cherry picked from commit 8bc779ef92)
2016-06-21 12:29:44 -07:00
Gail Badner cde859c57d HHH-8999 : NullPointerException when updating or deleting multiple entities of same type with non-comparable IDs
(cherry picked from commit 6853fdae70)
2016-06-21 12:29:33 -07:00
Gail Badner 52733a2869 HHH-8999 : Added test cases
(cherry picked from commit 280f93add3)
2016-06-21 12:29:23 -07:00
Vlad Mihalcea 0643f909e9 HHH-10826 Auxiliary Database Object no longer documented
HHH-10334 @Formula annotation javadoc contains database dependent sample usage

Created a new section related to automatic schema generation
2016-06-21 09:26:27 +03:00
Steve Ebersole ea9575294f HHH-10774 - SortedMap defined in .hbm.xml are not sortable
(cherry picked from commit 60aac117e6)
2016-06-19 12:10:52 -05:00
Gail Badner 0ba858b91d HHH-10277 - Correct test to refer to "attributeConverterDefinition" field for 5.0 2016-06-17 13:17:29 -07:00
Steve Ebersole e8e8538228 HHH-10277 - AttributeConverter not applied to attributes of an embeddable used as collection element
(cherry picked from commit b7f17ce898)
2016-06-17 13:16:06 -07:00
Steve Ebersole f4bc38f92f HHH-10277 - AttributeConverter not applied to attributes of an embeddable used as collection element
(cherry picked from commit 65886c045e)
2016-06-17 12:43:03 -07:00
Gail Badner 014d229028 HHH-10562 : ManagedEntity linked list broken when non-associated enhanced entity is evicted
(cherry picked from commit 7ed51f44dd)
2016-06-15 22:17:03 -07:00
Gail Badner 11928f3171 HHH-10375 : Add import required to backport
(cherry picked from commit bfc4289f12)
2016-06-15 17:47:12 -07:00
Gail Badner 1655f4556a HHH-10360 : Natural ID columns are nullable by default
(cherry picked from commit 10a035481d)
(cherry picked from commit 532b63042c)
2016-06-15 17:46:57 -07:00
Gail Badner 4b253dfad7 HHH-10360 : Added test cases
(cherry picked from commit 67c7858dd5)
2016-06-15 17:46:40 -07:00
Andrea Boriero ec7e2d88ef HHH-10375 - Fix adding an entity at index to list with @OrderColumn in detached Entity
(cherry picked from commit da0b46d61c)
2016-06-14 16:35:24 -07:00
Andrea Boriero cb00f86a4d HHH-10375 - Add test for issue
(cherry picked from commit 6e47c2840a)
2016-06-14 16:35:14 -07:00
Gail Badner 967e96631f HHH-10427 - Fix ServiceRegistry creates multiple service instances and returns uninitialized services
(cherry picked from commit b74868d658)
2016-06-13 22:34:32 -07:00
Chris Cranford 0951a62286 HHH-10299 - Fix DOM4J entity-mode deprecation warning for Envers audited entities.
(cherry picked from commit be93105)
2016-06-13 23:35:55 -05:00
Gail Badner 51b24a12e5 HHH-10515 : Moved test to hibernate-entitymanager`
(cherry picked from commit 27ed69c2bc)
2016-06-13 19:58:46 -07:00
Andrea Boriero f2c17b605d HHH-10515 - Add test for issue
HHH-10515 - Fix Stored procedure execution fails to find column

HHH-10515 : Add test case using no JDBC DatabaseMetaData; move original test case to hibernate-core

HHH-10515 - Fix Stored procedure execution fails to find column

(cherry picked from commit 0eaf431ef6)

Conflicts:
	hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java

(cherry picked from commit c892df7aa9)

Conflicts:
	hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java
	hibernate-core/src/main/java/org/hibernate/engine/jdbc/env/internal/JdbcEnvironmentImpl.java
2016-06-13 19:57:41 -07:00
Andrea Boriero e9e7a703e7 HHH-10352 - Fix HBM2DDL does not use described name for foreign key in join inheritance
(cherry picked from commit 2ea122aedd)
2016-06-13 17:17:04 -07:00
Gail Badner dc0f99c4f4 HHH-10352 : Fix unit test to work for 5.0 2016-06-13 17:15:38 -07:00
Andrea Boriero f601ed7662 HHH-10352 - Add test for issue
(cherry picked from commit 4afa8fb57d)
2016-06-13 17:07:57 -07:00
Timo Verhoeven 23c6ea6399 HHH-9676 - TypeSafeActivator.applyDDL doesn't process composing constraints when @NotNull is present
(cherry picked from commit 86e9efe788)

Conflicts:
	.gitignore
2016-06-13 16:48:15 -07:00
Andrea Boriero 358bed04ac HHH-10796 - Fix org.hibernate.query.Query<R> setProperties(Map map); set to null parameters not contained in the map
(cherry picked from commit 35cefeda2f)

Conflicts:
	hibernate-core/src/main/java/org/hibernate/query/internal/AbstractProducedQuery.java

(cherry picked from commit dc32226aab)
2016-06-13 16:39:32 -07:00
Gail Badner 5be28c85a0 HHH-10796 : Correct to use org.hibernate.Query for backport
(cherry picked from commit 61bc59af15)
2016-06-13 16:35:39 -07:00
Andrea Boriero b0a0be1a26 HHH-10796 - Add test for issue
(cherry picked from commit 6027d8319e)
2016-06-13 16:35:21 -07:00
barreiro 87707e218b HHH-10551 - Enable lazy loading for attributes of bytecode enhanced entities 2016-06-10 16:43:02 -07:00
Gail Badner bf4e92fd0a HHH-10511: Restore and deprecate org.hibernate.property.access.spi.EnhancedGetterMethodImpl and EnhancedSetterImpl to maintain backward-compatibility 2016-06-10 15:33:15 -07:00
barreiro 8dd70236cf HHH-10245 - [enhancer] Do not expose ClassPool 2016-06-09 19:37:33 -07:00
barreiro ac9748adeb HHH-10642 - [enhancer] Use INVOKEVIRTUAL instead of INVOKESPECIAL 2016-06-09 19:37:33 -07:00
barreiro 5c567bb4bf HHH-10511 - drop EnhancedGetterMethod: use GetterMethod / GetterField instead 2016-06-09 19:37:33 -07:00
barreiro a24eecf7da HHH-10583 - [enhancer] also consider attribute type when finding the right mappedBy value 2016-06-09 19:37:32 -07:00
barreiro 36090f0a23 HHH-10540 - [enhancer] Add CompositeOwner interface only once 2016-06-09 19:37:32 -07:00
Gail Badner 1ed76e801b HHH-10287 - Cache keys no longer include the entity type 2016-06-07 15:30:27 -07:00
Gail Badner 18df49306e HHH-10679 HHH-10712 : Fix subselect fetching in load plans
(cherry picked from commit 9c29ec22c5)
2016-06-02 13:40:03 -07:00
Gail Badner 5c9c0c22ce HHH-10373 - Correct test to work for 5.0 2016-06-01 19:58:22 -07:00
Andrea Boriero a46a17181e HHH-10373 - Fix Sequence generator for idbag ignores generator parameters
(cherry picked from commit 030f442f3c)
2016-06-01 19:39:15 -07:00
Andrea Boriero a7f079aed3 HHH-10373 - Add test for issue
(cherry picked from commit a9e4eb4895)
2016-06-01 19:38:45 -07:00
Gail Badner 4504aa160c HHH-10757 : select new ..." with CAST( NULL AS ...) fails
(cherry picked from commit 885f76a92f)
2016-05-31 17:39:24 -07:00
Gail Badner 5e5cc14f52 HHH-10476 : Getting an entity with composite ID containing a detached entity fails if PersistenceContext contains a managed copy
(cherry picked from commit f2427fa28a)
2016-05-27 16:09:01 -07:00