Commit Graph

3258 Commits

Author SHA1 Message Date
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
Andrea Boriero f446b0a35e 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
2016-08-18 16:10:41 -07:00
Gail Badner 840258a00e HHH-11037 : Fix tests to be jdk6-compliant 2016-08-18 16:03:48 -07:00
Gail Badner 366efe118f HHH-11037 : Correct jira issue in @TestForIssue
(cherry picked from commit 5096982532)
2016-08-18 15:46:07 -07:00
Andrea Boriero 26ae36840d HHH-11037 - Add test for issue
(cherry picked from commit 3028f5d787)
2016-08-18 15:45:50 -07:00
johara 836691b5a7 HHH-11051 : Cache EventListenerRegistry and StatisticsImplementor
(cherry picked from commit 97318b71f0)

Conflicts:
	hibernate-core/src/main/java/org/hibernate/internal/SessionFactoryImpl.java
2016-08-18 14:25:23 -07:00
Gail Badner be57dad4c2 HHH-11041 : Correct references to Hibernate version in javadoc annotations in backported code 2016-08-11 22:27:41 -07:00
Yanming Zhou 4649f5fa91 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:16:02 -07:00
Andrea Boriero dd3b1e0b1b HHH-11036 - The drop schema filtering of sequence generation with schemaFilter is wrong 2016-08-11 08:23:59 +02:00
Andrea Boriero 9e428260fe HHH-10937 - The generation of the drop schema does not filter sequence with schemaFilter 2016-08-11 08:23:36 +02:00
Andrea Boriero 0f44cde175 HHH-10937 - Add test for issue 2016-08-11 08:23:21 +02:00
Gail Badner ee2db37052 HHH-10876 : corrections due to backporting 2016-08-10 23:11:36 -07:00
Vlad Mihalcea d4b81560bf 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
2016-08-10 22:37:25 -07:00
Dmytro Bondar a7a78f803f HHH-8687 Better exception message for PostgreSQL81Dialect and named REF_CURSOR parameter binding
(cherry picked from commit 63ea1f812a)
2016-08-10 17:10:42 -07:00
Greg Jones a0c7c313c7 HHH-9894 - Support Informix Boolean Type
(cherry picked from commit 3ef05dea2f)

Conflicts:
	hibernate-core/src/main/java/org/hibernate/dialect/InformixDialect.java
	hibernate-core/src/test/java/org/hibernate/dialect/InformixDialectTestCase.java
2016-08-10 17:04:13 -07:00
Gabriel Belingueres a0b70ffece Fixes HHH-10800 - InformixDialect: add support for current_timestamp() and current_date()
(cherry picked from commit 5e82c2e414)

Conflicts:
	hibernate-core/src/main/java/org/hibernate/dialect/InformixDialect.java
	hibernate-core/src/test/java/org/hibernate/dialect/InformixDialectTestCase.java
	hibernate-core/src/test/java/org/hibernate/engine/query/InformixFunctionTest.java
2016-08-10 16:57:01 -07:00
Chris Cranford ddad1b6c70 HHH-10978 - Added test case.
(cherry picked from commit 5b7d00ef1e)
2016-08-10 16:02:00 -07:00
Chris Cranford 4a60011cb7 HHH-10978 - Fix building join table metadata with default catalogs or schema values.
(cherry picked from commit 1dcb391f83)

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 15:59:41 -07:00
Gail Badner abf80cae81 HHH-8488 : Move tests to hibernate-entityManager 2016-08-10 15:14:22 -07:00
Andrea Boriero 18fb5d9168 HHH-8488 - Add tests for issue
(cherry picked from commit 9d20d3ab03)
2016-08-10 15:14:22 -07:00
Andrea Boriero cdb11f9be2 HHH-10695 - Fix MySQL should not use the NCLOB type
(cherry picked from commit 455d86307b)
2016-08-09 16:29:41 -07:00
Andrea Boriero 23b5ef5ae5 HHH-10693 - Fix PostgreSQL should not use nvarchar when using Nationaliztaion
(cherry picked from commit 513c2358f7)
2016-08-09 16:01:40 -07:00
Andrea Boriero 4b7da02b66 HHH-10693 - Change test to run with PostgreSQL dialect
(cherry picked from commit c1023ac49e)
2016-08-09 16:01:21 -07:00
Gail Badner f75798518a HHH-10896 : fix for checkstyle failure 2016-08-02 21:06:54 -07:00
Gail Badner 6adb92cf13 HHH-10896 : fix for checkstyle failure
(cherry picked from commit 894c6470d0)
2016-08-02 13:51:01 -07:00
Steve Ebersole 78a8fdeb95 HHH-10896 - Exception thrown when dropping schema with a managed connection
(cherry picked from commit c7c5a00167)
2016-08-02 12:19:31 -07:00
Steve Ebersole 076c7ea104 HHH-10896 - Exception thrown when dropping schema with a managed connection
(cherry picked from commit da49122113)
2016-08-02 12:19:15 -07:00
Gail Badner f8cd76f43f HHH-10896 : Corrections for backporting.
HHH-10896 : Remove TransactionCoordinatorBuilder#buildDdlTransactionIsolator; add Helper#buildDefaultDdlTransactionIsolator
2016-08-01 23:12:35 -07:00
Steve Ebersole fd38bc9df1 HHH-10896 - Exception thrown when dropping schema with a managed connection
(cherry picked from commit f4f279938d)

Conflicts:
	documentation/src/test/java/org/hibernate/userguide/multitenancy/AbstractMultiTenancyTest.java
	hibernate-core/src/main/java/org/hibernate/resource/transaction/TransactionCoordinatorBuilder.java
	hibernate-core/src/main/java/org/hibernate/resource/transaction/backend/jdbc/internal/JdbcResourceLocalTransactionCoordinatorBuilderImpl.java
	hibernate-core/src/main/java/org/hibernate/resource/transaction/backend/jta/internal/JtaTransactionCoordinatorBuilderImpl.java
	hibernate-core/src/main/java/org/hibernate/tool/schema/internal/exec/AbstractJdbcConnectionContextImpl.java
	hibernate-core/src/main/java/org/hibernate/tool/schema/internal/exec/GenerationTargetToDatabase.java
	hibernate-core/src/test/java/org/hibernate/test/tool/schema/SchemaValidatorImplTest.java
2016-08-01 22:13:26 -07:00
Gail Badner 20dd7fbfbf HHH-10795 : Corrections due to backporting
(cherry picked from commit 71d799ae11)
2016-07-29 17:46:35 -07:00
Gail Badner 482515ba13 HHH-10795 : added assertions to test case
(cherry picked from commit 0d8f08b9d1)
2016-07-29 17:46:18 -07:00
Gail Badner 1ad6a1280d HHH-10795 : StatefulPersistenceContext.entityEntryContext does not work properly for ManagedEntity associated with a different StatefulPersistenceContext
(cherry picked from commit 56b22aeaac)

Conflicts:
	hibernate-core/src/main/java/org/hibernate/internal/CoreMessageLogger.java
2016-07-29 17:45:07 -07:00
Chris Cranford 2dc5236a85 HHH-10994 - Relax requirement of 'as' in the alias phrase for the MSSQL LimitHandler implementation.
(cherry picked from commit 714ba62)
2016-07-28 12:33:57 -05:00
Gail Badner 5ef34ca6e2 HHH-10993 : NPE when Lazy loading collection without transaction for bytecode enhanced entitie
(cherry picked from commit 2c553f3290)
2016-07-26 17:58:44 -07:00
Gail Badner d2f428bb02 HHH-10993 : Correction to test case for 5.1 2016-07-26 17:57:13 -07:00
johara 561edfbd24 HHH-10993 - Added testcase for Lazy Loaded collections outside transaction in bytecode enhanced entities
(cherry picked from commit 80e092a432)
2016-07-26 17:41:22 -07:00
barreiro 5f3209cf44 HHH-10973 - Fix 'class is frozen' when enhancing bidirectional relationships
(cherry picked from commit a9318ce656)
2016-07-21 22:30:45 -07:00
barreiro d3a059abd5 HHH-10977 - Entity not enhanced after MappedSuperclass
(cherry picked from commit 987487e106)
2016-07-21 22:30:34 -07:00
barreiro 6ae5fc3521 HHH-10922 - Call on bytecode enhanced method trigger load of proxy
(cherry picked from commit 92c1e63577)
2016-07-19 15:57:21 -07:00
Gail Badner 58b3f69555 HHH-10922 - Correcions due to backporting 2016-07-19 15:55:39 -07:00
barreiro 1d79b5d26f HHH-10922 - Test case
(cherry picked from commit 45adb05f5a)
2016-07-19 12:48:49 -07:00
Gail Badner 3e5947e20d HHH-5393 : MappingException when @MapKeyColumn refers to a column mapped in embeddable map value
(cherry picked from commit c893577efc)
2016-07-14 15:30:02 -07:00
Gail Badner 6d9cdaffde HHH-10551 : test case
(cherry picked from commit c1f3b54194)

Conflicts:
	hibernate-core/src/test/java/org/hibernate/test/bytecode/enhancement/lazy/LazyBasicFieldNotInitializedTestTask.java
2016-07-11 18:55:34 -07:00
barreiro 60e2123337 HHH-10801 - Bytecode enhancement of @MappedSuperclass
(cherry picked from commit cdc69a475b)
2016-07-01 13:37:22 -07:00
barreiro 5b905d1ba0 HHH-10646 - [enhancer] Add support for @MappedSuperclass
(cherry picked from commit e615d76a26)
2016-07-01 13:35:07 -07:00
Gail Badner 16ae4e8104 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 15:00:36 -07:00
barreiro 2d3f5848e6 HHH-10851 - PropertyAccessMixed not aware of Access annotation
(cherry picked from commit 5ef1da74c2)
2016-06-30 15:00:19 -07:00
Steve Ebersole 0fddd62fc0 HHH-10863 - Improve consistency of how we call implicitNamingStrategy.determineBasicColumnName with element collections
(cherry picked from commit 5b5d2b6559)
2016-06-30 11:11:45 -05:00
Guillaume Smet af8ffdee8f HHH-10863 Add a isCollectionElement() method to AbstractAttributeKey
It allows external libraries to test for the collection element marker
without being aware of the exact syntax used as it might change in the
future.

(cherry picked from commit 7f3a3bcbcc)
2016-06-30 11:11:32 -05:00
Guillaume Smet 8e64e3ac93 HHH-10863 Be consistent in the parameter passed to
ImplicitNamingStrategy#determineBasicColumnName

When dealing with an element collection (say items.name),
ImplicitNamingStrategy#determineBasicColumnName is sometimes called
with items.collection&&element.name and sometimes with items.name.

This is due to HHH-6005 which removes the "collection&&element."
part before calling determineBasicColumnName.

With this patch, we only remove the "collection&&element." part before
calling the physical naming strategy, thus allowing us to be consistent
in the way we call ImplicitNamingStrategy#determineBasicColumnName.

(cherry picked from commit 9fd61a10db)
2016-06-30 11:11:21 -05:00
Gail Badner 8e8be9aeb4 HHH-10865 - ManyToMany relation dropped from database when lazy loading is active 2016-06-29 17:19:25 -07:00
Gail Badner 995e76e5fb HHH-10413 : fixes required to backport 2016-06-28 23:06:53 -07:00
Gail Badner 0561093de6 HHH-10413 : byte[] as the version attribute broken
(cherry picked from commit 1d20ea4f60)

Conflicts:
	hibernate-core/src/main/java/org/hibernate/type/BinaryType.java
2016-06-28 22:10:48 -07:00
Andrea Boriero 4f46968600 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
2016-06-28 17:57:39 -07:00
Gail Badner 57a9345959 HHH-10729 HHH-9021 HHH-10230 : Move tests to hibernate-entitymanager 2016-06-28 17:22:31 -07:00
Gail Badner 31fc318585 HHH-10729 HHH-9021 HHH-10230 : Add more checks to test cases
(cherry picked from commit 13db8b95e3)
2016-06-28 17:14:27 -07:00
Andrea Boriero 6ecd2bd472 HHH-10729 HHH-9021 HHH-10230 - Fix Issue with literals in select expression
(cherry picked from commit e71af130f0)
2016-06-28 17:14:13 -07:00
Andrea Boriero 9bf4a829c5 HHH-10729 HHH-9021 HHH-10230 - Add test for issue
(cherry picked from commit e0963d56b9)
2016-06-28 17:13:59 -07:00
Andrea Boriero f6aa53cb93 HHH-10341 - Fix failing test
(cherry picked from commit 83eb8b0f76)
2016-06-28 13:24:30 -07:00
Andrea Boriero adf41c621d HHH-10341 - Fix Specification violation in Implementation of TupleElement
(cherry picked from commit 04f1fcc762)
2016-06-28 13:24:13 -07:00
Gail Badner f32476e6c9 HHH-10341 - Move test to hibernate-entitymanager 2016-06-28 13:22:57 -07:00
Andrea Boriero c9bfcdcb10 HHH-10341 - Add test for issue
(cherry picked from commit 57b954d476)
2016-06-28 13:19:18 -07:00
Gail Badner 61d73f6214 HHH-10843 - Move test to hibernate-entitymanager 2016-06-28 12:34:20 -07:00
Andrea Boriero 9eea8266a5 HHH-10843 - Add test for issue
(cherry picked from commit a3ed7010b6)
2016-06-28 12:26:23 -07:00
Gail Badner d407e73775 HHH-10648 : Backport corrections 2016-06-23 00:27:54 -07:00
Gail Badner 5006e92ce5 HHH-10648 : No MultipleBagFetchException is thrown when fetching two bags eagerly
(cherry picked from commit 59c0d48f8d)
2016-06-23 00:11:12 -07:00
Gail Badner 8bc779ef92 HHH-8999 : Changed references to SharedSessionContractImplementor to SessionImplementor 2016-06-21 12:26:56 -07:00
Gail Badner 4a341be749 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:19:12 -07:00
Gail Badner 664950367d HHH-8999 : Added test cases
(cherry picked from commit 280f93add3)
2016-06-21 12:19:00 -07:00
Vlad Mihalcea 0609471258 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-20 15:06:58 +03:00
Steve Ebersole 7096f223e6 HHH-10774 - SortedMap defined in .hbm.xml are not sortable
(cherry picked from commit 60aac117e6)
2016-06-19 12:10:12 -05:00
Steve Ebersole 10123cf46a HHH-10277 - AttributeConverter not applied to attributes of an embeddable used as collection element
(cherry picked from commit b7f17ce898)
2016-06-16 14:15:20 -07:00