Commit Graph

3229 Commits

Author SHA1 Message Date
barreiro a9022e5b04 HHH-11506 - Fix update of lazy attributes when there are attributes not loaded
HHH-11506 - Deprecate methods

HHH-11506 : Added original TypeHelper#findModfied and deprecated; changed deprecated methods to call the new methods.

(cherry picked from commit aaebcdf454)
2017-03-13 19:49:38 -07:00
Gail Badner 3b754886f1 HHH-11516 : Level two cache may not be enabled when using @Cacheable without/instead of @Cache
(cherry picked from commit 7c870acc59913f16d35b609b31d7b0286fa2aee3)
2017-03-13 01:00:53 -07:00
Gail Badner 8c78df5d04 HHH-11530 : IdentityGeneratorExtendsTest.testIdentifierGeneratorExtendsIdentityGenerator failing on Oracle DBs
(cherry picked from commit 7ae3e1c3b7)
2017-02-27 18:05:38 -08:00
Steve Ebersole 8ee4519fc5 HHH-11400 - HHH90000016: Found use of deprecated 'collection property' issue for valid JPQL query
(cherry picked from commit 2dca5f2ceb)
2017-02-23 13:53:49 -08:00
Gail Badner 1660c520ba HHH-11434 : Fix tests to work with pre-5.2 2017-02-23 12:32:19 -08:00
Andrea Boriero 4c16fd69c7 HHH-11434 - prevent failures in some tests from freezing the whole test suite
(cherry picked from commit 8f6e4d5675)
2017-02-22 21:27:11 -08:00
Jan Martiska 71034a99fd HHH-11434 - prevent failures in some tests from freezing the whole test suite
(cherry picked from commit e62d71b76b)
2017-02-22 21:26:45 -08:00
Ivan Straka 91e478a460 HHH-11456 - SequenceHiLoGeneratorTest fails due to wrong select string on SQL Server
(cherry picked from commit e46956b0f1)

Conflicts:
	hibernate-core/src/test/java/org/hibernate/id/SequenceHiLoGeneratorTest.java
2017-02-22 21:05:48 -08:00
Jan Martiska 5f68b9a906 HHH-11419 - QueryAndSQLTest failing on MS SQL Server
(cherry picked from commit 95b858bf20)
2017-02-22 17:07:25 -08:00
Gail Badner 4f6b95afd8 HHH-11418 : Fix test case to work on pre-5.2 2017-02-22 16:47:33 -08:00
Andrea Boriero d52e805a38 HHH-11418 - SynonymValidationTest failure
(cherry picked from commit b19d76f2cc)
2017-02-22 16:45:47 -08:00
Gail Badner e44b0ccde3 HHH-10989 - Always resolve CollectionType on load so that unfetched collections have a reference stored in StatefulPersistentContext
HHH-10989 : Shorten test table names

(cherry picked from commit 55f7f71e04)
2017-02-22 15:49:01 -08:00
Gail Badner 6569161571 HHH-10989 : fix test case to work pre-5.2 2017-02-22 15:47:57 -08:00
barreiro b2356cc525 HHH-10989 - Always resolve CollectionType on load so that unfetched collections have a reference stored in StatefulPersistentContext
(cherry picked from commit 077ebbc04f)

Conflicts:
	hibernate-core/src/test/java/org/hibernate/test/bytecode/enhancement/EnhancerTest.java
2017-02-22 15:47:21 -08:00
Chris Cranford 8e944ab0e0 HHH-10537 - Fixed conflict while merging changes from HHH-10557.
(cherry picked from commit 3f1111ee5c)
2017-02-21 15:42:48 -08:00
Gail Badner 6637fb08ec HHH-10537 : Fix test case to work pre-5.2 2017-02-21 15:42:22 -08:00
Christian Beikov caa984327a Fix for HHH-10537
(cherry picked from commit 5d9414257f)
2017-02-21 15:37:55 -08:00
Christian Beikov 140de50a95 Test for HHH-10537
(cherry picked from commit 72382b1e08)
2017-02-21 15:36:29 -08:00
Christian Beikov 2256b3761c Fixed HHH-10577
(cherry picked from commit 18e8be0037)
2017-02-21 15:35:08 -08:00
Chris Cranford a4974a4d2e HHH-10577 - Added additional test cases for VALUE()
(cherry picked from commit fa3171530c)

Conflicts:
	hibernate-core/src/test/java/org/hibernate/test/hql/CollectionMapWithComponentValueTest.java
2017-02-21 15:34:17 -08:00
Gail Badner afee667c21 HHH-10577 : Fix test case to work pre-5.2 2017-02-21 15:29:10 -08:00
Christian Beikov c27e51c3d7 Test for HHH-10577
(cherry picked from commit f9fce8c657)
2017-02-21 15:26:59 -08:00
Vlad Mihalcea 72f238f813 HHH-10996 - The cleanupTestData utility has issues with link tables
Use bulk delete in certain situations like when we have a @Formula annotation that takes an SQL function which is not supported by the currently running DB

(cherry picked from commit bf823d440c)

Conflicts:
	hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
2017-02-21 13:47:15 -08:00
Vlad Mihalcea fc4665707d HHH-10996 - The cleanupTestData utility has issues with link tables
(cherry picked from commit 8f5ba32990)

Conflicts:
	hibernate-core/src/test/java/org/hibernate/test/hql/CollectionMapWithComponentValueTest.java
2017-02-21 13:35:09 -08:00
Gail Badner 70db5e4241 HHH-10919 : Fix test to work with jdk 1.6 2017-02-21 13:03:44 -08:00
Andrea Boriero 6e52712926 HHH-10919 - HQL: Sql syntax exception when joining a Map<Entity,Component>
(cherry picked from commit 65fee06bd6)
2017-02-21 12:44:23 -08:00
Gail Badner f88db39da1 HHH-10981 : Fix due to backport 2017-01-27 15:37:02 +00:00
Gail Badner 2b9cdace85 HHH-11173 : test case 2017-01-27 11:38:12 +00:00
Craig Andrews 77f461f8bf HHH-11293 - Consider enhanced entities with collections as being not unequivocally non-dirty 2017-01-27 11:38:12 +00:00
barreiro 82310d80e4 HHH-11284 - HHH-11404 - Fix enhancement in cases where there is some sort of inheritance 2017-01-27 11:38:12 +00:00
barreiro 15502f8a4a HHH-11050 - [bytecode enhancement] Add support for getters/setters through delegation 2017-01-27 11:38:12 +00:00
barreiro d23deb37cd HHH-10981 - Support private persistent fields in @MappedSuperclass 2017-01-27 11:38:12 +00:00
Gail Badner 9b52b4ed70 HHH-11335 : Fix due to backporting (@SkipForDialect is not repeatable) 2017-01-18 00:28:16 -05:00
Jan Martiska 7abf4398ee HHH-11335 skip ByteArrayIdTest, PrimitiveByteArrayIdTest on Oracle
(cherry picked from commit e10d87085d)
2017-01-18 00:07:57 -05:00
Vlad Mihalcea 3088e1f6bf HHH-10904 - Fix tests failing when switching to MySQL
(cherry picked from commit 0e6230faf0)
2017-01-17 22:39:06 -05:00
Gail Badner be0a781f01 HHH-11202 : IllegalAccessException on Embeddable ID after serializing Getter in cache key
(cherry picked from commit 99a033c21c)
2017-01-12 09:37:44 -08:00
Andrea Boriero d37f7e3bb4 HHH-11177 - Duplicate queries during startup
(cherry picked from commit 3e5025ac10)
2017-01-11 00:50:27 -08:00
Gail Badner 608ab56c6d HHH-11023 : Miscellaneous fixes required to backport 2017-01-11 00:38:30 -08:00
Andrea Boriero f697d26161 HHH-11023 - Startup performance regression : schema update/validate
(cherry picked from commit de3153a8e1)

Conflicts:
	hibernate-core/src/main/java/org/hibernate/cfg/AvailableSettings.java
	hibernate-core/src/main/java/org/hibernate/tool/schema/internal/Helper.java
	hibernate-core/src/test/java/org/hibernate/test/tool/schema/IndividuallySchemaValidatorImplTest.java
2017-01-11 00:37:35 -08:00
Gail Badner a49ee43089 HHH-10332 : Change SchemaValidatorImplTest to use DdlTransactionIsolatorTestingImpl 2017-01-10 23:08:12 -08:00
Dominique Toupin 92b0fd6468 HHH-10332 - Disambiguate missing table name
(cherry picked from commit 15c83ab61b)
2017-01-10 22:35:00 -08:00
Andrea Boriero 824bbca677 HHH-11061 - Attempt to resolve foreign key metadata from JDBC metadata failed to find column mappings for foreign when keywords auto quoting is enabled
(cherry picked from commit dc7a1c96a3)
2017-01-10 22:18:23 -08:00
Steve Ebersole 1cf8639c9e HHH-11220 - Auto-detect SQL Server 2016 when the major version is 13
(cherry picked from commit 36d6563998)
2017-01-10 16:48:17 -08:00
Gail Badner 6d7a14e4a2 HHH-11216 : Fixes required to backport 2017-01-03 13:53:34 -08:00
Andrea Boriero 1c37385d2f HHH-11216 - @ElementCollection for enumerations is failing when enabling insert ordering
(cherry picked from commit aa5f893267)

Conflicts:
	hibernate-core/src/main/java/org/hibernate/engine/spi/ActionQueue.java
2016-12-23 17:54:22 -08:00
Gail Badner e791f77122 HHH-9864 HHH-11357 : Fixes required to backport; improvement to tests 2016-12-23 17:36:47 -08:00
Vlad Mihalcea 9500f92bc6 HHH-9864 - foreign key violation with order_inserts=true and batches with mixed subclass entities
(cherry picked from commit 0c8261b0ae)

Conflicts:
	hibernate-core/src/main/java/org/hibernate/engine/spi/ActionQueue.java
2016-12-21 21:30:31 -08:00
Gail Badner ff373c32df HHH-11340 : Minor correction to test case due to backporting 2016-12-21 13:38:20 -08:00
Christian Beikov aa3b6fbd9f Fix for HHH-11340
(cherry picked from commit a2781e6654)
2016-12-21 13:25:00 -08:00
Christian Beikov bd1c5140da Testcase for HHH-11340
(cherry picked from commit 7dc7fbe27f)
2016-12-21 13:24:50 -08:00
stasal d6ecc37c0f HHH-11337 - Incorrect SQL generated when use both left join with unrelated entity and implicit join to another entity in select-clause
(cherry picked from commit b2df137ed6)
2016-12-21 13:24:25 -08:00
Jan Martiska 951cc68a3e HHH-11295 - Some improvements to EntityJoinTest
(cherry picked from commit cff4ea1ce6)
2016-12-21 13:23:23 -08:00
Gail Badner 7b8a113fed HHH-11289 : Lazy-initializing a static Method and making accessible not thread-safe
(cherry picked from commit 3a1cbf3280)
2016-12-19 20:50:36 -08:00
Gail Badner d989d6e4f2 HHH-11241 : checkstyle fixes
(cherry picked from commit 3805752731)
2016-12-19 20:24:39 -08:00
Gail Badner 285c5eb43e HHH-11241 : Fix issue due to backporting
(cherry picked from commit 7dc1729483)
2016-12-19 19:32:40 -08:00
Gail Badner e5b8eb5f23 HHH-11241 : Missing column when executing HQL and criteria query with secondary table
(cherry picked from commit b8f9deacc713a6b67f3df1e2473b689f6dfc8247)
(cherry picked from commit f490451b6d)
2016-12-19 19:32:21 -08:00
Gail Badner 46cb1ea07d HHH-11241 : Missing column when executing HQL and criteria query with secondary table
(cherry picked from commit b4b77f85d70765f420ab17c9128f9472175d6619)
2016-12-19 19:32:03 -08:00
Gail Badner 400afbb8c3 HHH-11241 : test case (failing tests marked with FailureExpected)
(cherry picked from commit 3e52340a92)
2016-12-19 19:31:38 -08:00
Gail Badner fbbabe157f HHH-11328 : change references to SharedSessionContractImplementor to SessionImplementor 2016-12-15 12:08:24 -08:00
Gail Badner 911d1a661d HHH-11328 : Persist of transient entity in derived ID that is already in merge process throws javax.persistence.EntityExistsException
(cherry picked from commit 54f3409b41)
2016-12-15 12:00:26 -08:00
Gail Badner 4abaa5cf68 HHH-11332 skip some tests from QueryAndSQLTest and QueryTest on Sybase 2016-12-12 22:47:28 -08:00
Jan Martiska ac71650f44 HHH-11331 fix SQLLoaderTest on DB2
(cherry picked from commit c393853308)
2016-12-12 20:56:15 -08:00
Gail Badner 9aaf0cd7c4 HHH-11330 : Skip IdentifierGeneratorWithNaturalIdCacheTest on dialects that do not support identity columns
(cherry picked from commit 87fe30b83b)
2016-12-12 20:49:58 -08:00
Martin Simka bffc4b1708 HHH-11329 - fix tests on Oracle
fixes ORA-00972: identifier is too long on Oracle databases

(cherry picked from commit 4bf4e3b81a)
2016-12-12 18:24:59 -08:00
Gail Badner cd92cc6f5b HHH-11329 fix tests using too long identifiers
(cherry picked from commit b4a9be0adc)

Conflicts:
	hibernate-core/src/test/java/org/hibernate/test/inheritancediscriminator/embeddable/TablePerClassWithEmbeddableTest.java
2016-12-12 16:54:20 -08:00
Jan Martiska 857298618c HHH-11329 fix tests using too long identifiers
(cherry picked from commit a4cf282070)

Conflicts:
	hibernate-core/src/test/java/org/hibernate/test/inheritancediscriminator/embeddable/JoinedSubclassWithEmbeddableTest.java
	hibernate-core/src/test/java/org/hibernate/test/inheritancediscriminator/embeddable/SingleTableWithEmbeddableTest.java
2016-12-12 16:34:57 -08:00
Jan Martiska 71c3a49572 HHH-11314 - BasicHibernateAnnotationsTest.testInheritFiltersFromMappedSuperclass fails on MS SQL Server
(cherry picked from commit eaf5b10cf1)
2016-12-09 16:17:00 -08:00
Martin Simka e27acf731a [HHH-11203] fix some minor test issues
(cherry picked from commit 957ec3fa79)
2016-12-09 16:03:44 -08:00
Gail Badner 4ab2f4872e HHH-11315 - EnhancerTest fails on Oracle databases 2016-12-09 14:35:44 -08:00
Jan Martiska 331c79ea88 HHH-11315 - EnhancerTest fails on Oracle databases
(cherry picked from commit a369120504)
2016-12-09 13:48:10 -08:00
Gail Badner 7d7aef7ecc HHH-10689 - Fix tests failing when switching to Oracle 2016-12-09 13:37:48 -08:00
Radim Vansa 789724f4e4 Document `hibernate.cache.keys_factory` 2016-11-22 23:32:44 -08:00
Radim Vansa 7daab773ce HHH-11083 Un-deprecate OldCacheKeyImplementation and OldNaturalCacheKey 2016-11-22 23:32:44 -08:00
Radim Vansa f744f89bd3 HHH-11083 WrongClassException using Infinispan and sharing cache regions
* DefaultCacheKeysFactory implements CacheKeysFactory, therefore it can be used in hibernate.cache.keys_factory
* Use DefaultCacheKeysFactory by default
* Add "default" and "simple" as short names for those factories
2016-11-22 23:32:44 -08:00
Gail Badner da80a6a548 HHH-11155 - Lazy properties are not updated if not all lazy properties (e.g. collections) are initialized; fixed some jdk8-specific changes to work with jdk6
(cherry picked from commit 0a2bb3c811)
2016-11-21 16:45:03 -08:00
Steve Ebersole eed5f13b09 HHH-11155 - Lazy properties are not updated if not all lazy properties (e.g. collections) are initialized
(cherry picked from commit f2ba4b9cee)
2016-11-21 13:56:13 -08:00
Gail Badner 8390c50936 HHH-11155 : test case
(cherry picked from commit e17d2f01dc)

Conflicts:
	hibernate-core/src/test/java/org/hibernate/test/bytecode/enhancement/EnhancerTest.java
2016-11-21 13:55:43 -08:00
Gail Badner 4247332d79 HHH-11159 : remove test from hibernate-core 2016-10-21 00:01:01 -07:00
Andrea Boriero 51f558122a HHH-11159 - Add test for issue
(cherry picked from commit 1c1fe2a9af)
2016-10-20 23:31:42 -07:00
Gail Badner 25fff43cc1 HHH-11182 : minor correction to test required to backport 2016-10-20 14:16:01 -07:00
Andrea Boriero 5c89fb1dad HHH-11182 - HQL subquery with constraint property in superclass does not join superclass table
(cherry picked from commit b3151de647)
2016-10-20 13:22:07 -07:00
Gail Badner b7d0501fcb HHH-11182 - Add test for issue
(cherry picked from commit 38379a537a)
2016-10-20 13:21:52 -07:00
Gail Badner ad769e54b5 HHH-10998 : NullPointerException when using join with subselect in hbm mapping
(cherry picked from commit f34508e3f3)
2016-09-28 17:55:08 -07:00
Gail Badner 45ea61bc7e HHH-10659 : fix test case to work with jdk7 2016-09-23 18:24:50 -07:00
Damien Hollis e950f7b05a HHH-10659 - Natural Id 2nd level Cache not working when Identity is database generated
(cherry picked from commit 9498b52566)
2016-09-23 18:05:21 -07:00
Gail Badner b936f21b95 HHH-11038 : Invalid statement generated for @MapKeyColumn(updatable=false) for @OneToMany
(cherry picked from commit 87e69c9d34)
2016-09-18 21:55:14 -07:00
Gail Badner c13224fba0 HHH-11038 : test case
(cherry picked from commit c3f7c332f5)
2016-09-18 21:48:50 -07:00
Andrea Boriero b6ba54d403 HHH-11101 - Missing unique constraint for many-to-many with unique=true in list mapping
(cherry picked from commit 9cf4fecbfe)
2016-09-16 01:10:33 -07:00
Andrea Boriero 253f70f591 HHH-11101 - Add test for issue
(cherry picked from commit a3eac62761)
2016-09-16 01:08:36 -07:00
Gail Badner df2432d684 HHH-11067 : Fix to work with JDK6 souce 2016-09-15 14:44:04 -07:00
Steve Ebersole a53e3ed126 HHH-11067 - Proxy-wrapped Sessions (ThreadLocalSessionContext.TransactionProtectionWrapper) handle equals incorrectly
(cherry picked from commit aaa32ebed5)
2016-09-15 14:24:02 -07:00
VyacheslavRarata f799d3f85e HHH-10106 - Include source entity name and table name (attribute name too ideally) for associations referencing unmapped classes
(cherry picked from commit f0fa15b247)
2016-09-01 22:46:58 -07:00
Gail Badner 5c3ea67111 HHH-3846 : modify test case to work for JDK6 source 2016-09-01 12:56:56 -07:00
Andrew Judson d17d5fe0dc HHH-3846 - Persisting entity with detached associated entity.
(cherry picked from commit 6dd41e7ae6)
2016-08-31 21:12:00 -07:00
Gail Badner 47af492d3a HHH-11073 : Casting to boolean in HQL query fails on MySQL
(cherry picked from commit 839bf0b6f9)
2016-08-31 00:26:25 -07:00
Alex Belyaev e25fcd2ed7 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:18:40 -07:00
Gail Badner 96bf5eca37 HHH-9739 : Updated object is written to second level cache with CacheMode.IGNORE
(cherry picked from commit 4f991c3e74)
2016-08-25 01:06:07 -07:00
Gail Badner 1faeb54a3d HHH-11058 : Correct package for TransactionCoordinatorBuilder 2016-08-23 15:25:31 -07:00
Steve Ebersole 148c41277a HHH-11058 - NPE in SchemaValidator with DdlTransactionIsolatorJtaImpl
(cherry picked from commit 68c62da29e)
2016-08-23 15:24:44 -07:00
Steve Ebersole 248df370eb HHH-11058 - NPE in SchemaValidator with DdlTransactionIsolatorJtaImpl
(cherry picked from commit f26eb97091)

Conflicts:
	hibernate-core/src/main/java/org/hibernate/tool/schema/internal/SchemaDropperImpl.java
2016-08-23 15:22:53 -07:00