Commit Graph

3229 Commits

Author SHA1 Message Date
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
Gail Badner d2ed801ea8 HHH-10562 : ManagedEntity linked list broken when non-associated enhanced entity is evicted
(cherry picked from commit 7ed51f44dd)
2016-06-15 22:14:43 -07:00
Gail Badner bfc4289f12 HHH-10375 : Add import required to backport 2016-06-15 17:43:50 -07:00
Gail Badner 532b63042c HHH-10360 : Natural ID columns are nullable by default
(cherry picked from commit 10a035481d)
2016-06-15 17:35:42 -07:00
Gail Badner e72ff7687c HHH-10360 : Added test cases
(cherry picked from commit 67c7858dd5)
2016-06-15 17:35:20 -07:00
Andrea Boriero 557de57927 HHH-10375 - Fix adding an entity at index to list with @OrderColumn in detached Entity
(cherry picked from commit da0b46d61c)
2016-06-14 16:30:30 -07:00
Andrea Boriero cf665a3e84 HHH-10375 - Add test for issue
(cherry picked from commit 6e47c2840a)
2016-06-14 16:30:20 -07:00
Gail Badner b74868d658 HHH-10427 - Fix ServiceRegistry creates multiple service instances and returns uninitialized services 2016-06-13 22:31:17 -07:00
Chris Cranford 5ab790cad2 HHH-10299 - Fix DOM4J entity-mode deprecation warning for Envers audited entities.
(cherry picked from commit be93105)
2016-06-13 23:30:04 -05:00
Gail Badner 27ed69c2bc HHH-10515 : Moved test to hibernate-entitymanager` 2016-06-13 19:43:09 -07:00
Andrea Boriero c892df7aa9 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
2016-06-13 19:39:37 -07:00
Andrea Boriero 312ef5600f HHH-10352 - Fix HBM2DDL does not use described name for foreign key in join inheritance
(cherry picked from commit 2ea122aedd)
2016-06-13 17:04:54 -07:00
Andrea Boriero a1b133381f HHH-10352 - Add test for issue
(cherry picked from commit 4afa8fb57d)
2016-06-13 17:04:32 -07:00
Andrea Boriero dc32226aab 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
2016-06-13 16:30:20 -07:00
Gail Badner 61bc59af15 HHH-10796 : Correct to use org.hibernate.Query for backport 2016-06-13 14:23:20 -07:00
Andrea Boriero ea4ddbd690 HHH-10796 - Add test for issue
(cherry picked from commit 6027d8319e)
2016-06-13 14:18:49 -07:00
Gail Badner 66f08002cb HHH-10511: Restore and deprecate org.hibernate.property.access.spi.EnhancedGetterMethodImpl to maintain backward-compatibility 2016-06-10 15:21:21 -07:00
Andrea Boriero 27447cf118 HHH-10820 - Fix InformationExtractorJdbcDatabaseMetaDataImpl quoted table names 2016-06-10 14:16:45 +01:00
Andrea Boriero 3f51bdd254 HHH-10820 - Add test for issue 2016-06-10 14:09:26 +01:00
barreiro 822dcade28 HHH-10511 - drop EnhancedGetterMethod: use GetterMethod / GetterField instead
(cherry picked from commit 68169968a5)

Conflicts:
	hibernate-core/src/main/java/org/hibernate/property/access/spi/EnhancedGetterMethodImpl.java
2016-06-09 17:40:43 -07:00
barreiro 3c6ae4112e HHH-10245 - [enhancer] Do not expose ClassPool
(cherry picked from commit 86727515f4)
2016-06-09 13:35:24 -07:00
barreiro c43ba563da HHH-10642 - [enhancer] Use INVOKEVIRTUAL instead of INVOKESPECIAL
(cherry picked from commit d95cecd91b)
2016-06-09 13:19:48 -07:00
barreiro 2ae61a3e33 HHH-10583 - [enhancer] also consider attribute type when finding the right mappedBy value
(cherry picked from commit c33735108a)
2016-06-09 12:26:34 -07:00
barreiro 7ef6400d05 HHH-10540 - [enhancer] Add CompositeOwner interface only once
(cherry picked from commit 37b9a0c903)
2016-06-09 12:05:57 -07:00
Gail Badner 81ffaacf09 HHH-10287 - Made necessary changes to backport 2016-06-07 12:00:43 -07:00
Steve Ebersole 6667020808 HHH-10287 - Cache keys no longer include the entity type
(cherry picked from commit 3a0824a037)

Conflicts:
	hibernate-core/src/main/java/org/hibernate/cfg/AvailableSettings.java
	hibernate-testing/src/main/java/org/hibernate/testing/cache/BaseNaturalIdRegionAccessStrategy.java
	hibernate-testing/src/main/java/org/hibernate/testing/cache/ReadWriteNaturalIdRegionAccessStrategy.java
2016-06-07 12:00:43 -07:00
Matthias Kurz d8865d22ac HHH-10643 - Attribute 'foreignKeyDefinition' of @javax.persistence.ForeignKey ignored by schema exporter 2016-06-07 08:51:51 +03:00
Andrea Boriero ee4dc0a03e HHH-10802 - Fix Attempt to resolve foreign key metadata from JDBC metadata failed to find column mappings for foreign key 2016-06-06 17:01:26 +01:00
Andrea Boriero b76f8c2065 HHH-10802 - Add test for issue 2016-06-06 17:01:15 +01:00
Gail Badner 9c29ec22c5 HHH-10679 HHH-10712 : Fix subselect fetching in load plans 2016-06-02 13:25:16 -07:00
Andrea Boriero 93c0e252d4 HHH-10373 - Fix Sequence generator for idbag ignores generator parameters
(cherry picked from commit 030f442f3c)
2016-06-01 19:24:16 -07:00
Andrea Boriero eb8b0fa0bd HHH-10373 - Add test for issue
(cherry picked from commit a9e4eb4895)
2016-06-01 19:19:50 -07:00
Gail Badner 2b385e79fb HHH-10757 : select new ..." with CAST( NULL AS ...) fails
(cherry picked from commit 885f76a92f)
2016-05-31 17:30:28 -07:00
Timo Verhoeven adba228941 HHH-10780 - Provide a PrimitiveByteArrayTypeDescriptor toString implementation 2016-05-31 12:29:58 +03:00
Timo Verhoeven 86e9efe788 HHH-9676 - TypeSafeActivator.applyDDL doesn't process composing constraints when @NotNull is present 2016-05-31 09:15:09 +03:00
Gail Badner 40bb7d518c 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 15:59:02 -07:00
Andrea Boriero 8e3e01340f HHH-10513 - Fix locking WARN message logged when query LockMode is NONE 2016-05-26 10:35:17 +01:00
Andrea Boriero 4a15d23aec HHH-10513 - Add test for issue 2016-05-26 10:35:17 +01:00
Vlad Mihalcea 2ba9b98cbc HHH-10772 - RuntimeException during releaseStatements causes JDBC connection not to be closed 2016-05-26 10:35:10 +03:00
Gail Badner bec1ff8f83 HHH-10766 : Correct test to use Session.createSQLQuery (session.createNativeQuery API is 5.2+) 2016-05-25 15:20:10 -07:00
Dgray16 54d913e6ba HHH-10766 Resolve mapping 'type' parameter error
(cherry picked from commit 50b7882663)
2016-05-25 15:12:54 -07:00
Gail Badner 08a51523a2 HHH-10756 : Move tests to hibernate-entitymanager 2016-05-24 17:01:55 -07:00
Gail Badner 29710c2d5a HHH-10756 : StoredProcedureQuery with OUT param fails with Oracle when using named parameters
(cherry picked from commit 92dfd69937)
2016-05-24 16:57:39 -07:00
Steve Ebersole 0f918b4d42 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
2016-05-20 16:09:09 -07:00
barreiro 9768cf21c5 HHH-10708 - Test cases 2016-05-20 14:59:34 -07:00
Andrea Boriero a1c134dd50 HHH-1237 - Fix check style failure 2016-05-17 17:18:05 +01:00
Vlad Mihalcea da347c6d0c HHH-10691 - Fix tests failing when switching to PostgreSQL
HHH-10696 - Add a new CatalogFilterTest
2016-05-13 15:29:04 +01:00
Andrea Boriero a8deb5f1e0 HHH-10526 - Fix SchemaMigrator does not apply SchemaFilter on foreign keys 2016-05-13 09:48:00 +01:00
Andrea Boriero f34c50c411 HHH-10605 - Fix HSQLDialect dosn't use 'if exists' when dropping sequences 2016-05-13 09:37:11 +01:00
Andrea Boriero d97bd9722f HHH-10605 - Add test for issue 2016-05-13 09:37:04 +01:00
Chris Cranford 2b6ab8e8bb HHH-8507 - Fix SQL Server 2005 limit handler to be tolerant of carriage returns. 2016-05-12 08:27:47 -05:00
Andrea Boriero ef6c9266e6 HHH-10684 - Fix No target script generated for update action when using schema-generation 2016-05-12 11:07:41 +01:00
Andrea Boriero d6ea43d6c9 HHH-10684 - Add test for issue 2016-05-12 11:02:37 +01:00
Andrea Boriero b6d010c07a HHH-10678 - Fix hbm hibernate-mapping's schema attribute is ignored 2016-05-12 10:15:30 +01:00
Andrea Boriero d6db50897a HHH-10678 - Add test for issue 2016-05-12 10:14:26 +01:00
Andrea Boriero 55ce254d2d HHH-10718 - Fix Underscore in table name can result in SchemaExtractionException: More than one table found 2016-05-12 09:54:17 +01:00
Andrea Boriero 54ffced4dc HHH-10710 - Add test for issue 2016-05-12 09:47:21 +01:00
Michael Schnell 7236123b0c HHH-1237 Escaping colon in queries 2016-04-26 10:09:43 +03:00
Gustavo Adolfo Rodríguez Libreros 01430c5be1 HHH-9570: Auto-detect SQL Server 2014
Copying a previous workaround for the same issue: https://github.com/hibernate/hibernate-orm/pull/395

- Previously, SQL Server version 12 (SQL Server 2014) was an unknown version, resulting in the SQLServerDialect
- Add version 12 to the switch statement so that SQLServer2012Dialect  is now returned by default, as SQL Server 2014 is much more similar to SQL Server 2012 than SQL Server 2000
- Add test case
- Add Oracle and SQL Server environments for testing purpose
2016-04-25 17:39:51 +03:00
Martin Simka 350522b505 [HHH-10290] ignore environment property hibernate.jdbc.batch_versioned_data in BatchVersionedDataConfigTest 2016-04-07 10:27:19 +03:00
Martin Simka 3df3e81c5f [HHH-10587] skip NationalizedIgnoreCaseTest on db2 and postgresql(plus) as they don't support nString 2016-04-07 10:10:45 +03:00
Jan Martiska 7769feec25 HHH-10598 - Oracle JDBC driver can't handle entities with a one-character name in some cases 2016-04-06 17:52:16 +03:00
Martin Simka 5a018fce44 [HHH-10588] use H2Dialect in ConnectionsReleaseTest 2016-04-06 17:33:35 +03:00
Danny02 00db5af3db HHH-10612 - Check for support of RefCursor in Java 8 2016-04-06 17:17:00 +03:00
Martin Simka 219ee94ad3 [HHH-10640] fix wrong expected statement on DB2 2016-04-06 16:02:14 +03:00
Vlad Mihalcea de4637d592 Remove Diamond Operator from test cases 2016-04-06 13:25:24 +03:00
Zhenlei Huang 52719397b3 HHH-10649 - When 2LC enabled, flush session and then refresh entity cause dirty read in another session / transaction 2016-04-06 12:49:03 +03:00
Martin Simka a7694b5225 [HHH-10641] Fix identifier is too long exception for test LongVarcharValidationTest 2016-04-05 18:04:58 +03:00
Zhenlei Huang 397d3d7de9 HHH-10652 - The HHH-10631 test makes wrong assertion 2016-04-05 09:34:40 +03:00
Vlad Mihalcea 985229f9a7 HHH-10662 - Fix inconsistencies between quoting-related configuration properties JavaDocs and their default values assigned at the code level 2016-03-31 09:09:02 +03:00
Dominique Toupin de6d80a67b HHH-10456: Report the class name were the invalid PrimaryKeyJoinColumn is present 2016-03-30 17:55:05 +03:00
Sanne Grinovero 86b49a0ce7 HHH-10657 Make 'none' a valid option for hibernate.hbm2ddl.auto 2016-03-30 11:13:32 +01:00
Andrea Boriero 68298bbc45 HHH-10650 - Hibernate SchemaExport does not filter ForeignKey for namespaces and tables 2016-03-30 10:55:59 +02:00
yinzara 6036f00781 HHH-10429 - Change SimpleValue isIdentityColumn method to return true if the generator class used extends from IdentityGenerator instead of simply being equal to IdentityGenerator 2016-03-24 07:22:54 +02:00
Martin Simka a634ccebba [HHH-10596] add missing dialect-scope for oracle12c 2016-03-23 11:28:01 +00:00
Andrea Boriero 4c7525d89e HHH-10632 - Fix comment on column missing seperator between table name and column 2016-03-22 18:04:53 +00:00
Andrea Boriero feab5063c6 HHH-10632 - Add test for issue 2016-03-22 18:04:47 +00:00
Vlad Mihalcea 565318067b HHH-9271 - IdentityGenerator broken with quoted identifiers
Use dialect for verifying quoting
2016-03-22 16:49:06 +02:00
Vlad Mihalcea 573518cfc9 Fix test failing on H2 because the table name is a reserved keyword 2016-03-22 16:17:18 +02:00
Vlad Mihalcea c62c367957 HHH-9271 - IdentityGenerator broken with quoted identifiers 2016-03-22 12:29:45 +02:00
mdebeljuh 7aea8a60e9 HHH-10633 - JPA 2.1 Named Entity Graph in ORM XML loaded without subgraph
Process subgraphs and subclassSubgraphs concomitantly
2016-03-22 07:13:08 +02:00
Zhenlei Huang 66d2436759 HHH-10631 - Auto evict collection cache not work when owner side update parent to null 2016-03-21 15:59:31 +02:00
Vlad Mihalcea 5799aae2e5 HHH-7412 - JDBCTransactionFactory.getDefaultReleaseMode() returns incorrect ConnectionReleaseMode
Switch back to AFTER_TRANSACTION for JDBC transactions.
2016-03-21 09:30:56 +02:00
Janario Oliveira 732abea8e5 HHH-10614 - Auto evict collection cache throws exception with null values 2016-03-16 12:27:07 +02:00
Vlad Mihalcea 0ed39c7746 Change hibernate.properties to take configurable environment settings 2016-03-16 09:30:29 +02:00
Vlad Mihalcea ec4f20a5fb Remove @NotNull annotation that was imported from com.sun.istack.iternal which triggers a compilation failure on OpenJDK 2016-03-14 17:53:00 +02:00
Vlad Mihalcea 5b61df9591 HHH-9306 - Wrong DDL generated by hibernate when using MappedSuperclass containing ManyToMany relation
Add a test to prove that the issue does not replicate anymore.
2016-03-14 16:46:09 +02:00
Janario Oliveira 4546cc698a HHH-10592 - Query with literal parameter and fails with attribute converter 2016-03-14 14:08:05 +02:00
Janario Oliveira 7232b7ccd5 HHH-10608 - Avoid exception from Hibernate.initialize when lazy_no_transaction is enabled 2016-03-14 10:29:56 +02:00
Gail Badner bdb458a609 HHH-10269 : JDBC Statement is not closed if exception appeared during query execution 2016-03-11 13:55:19 -08:00
Steve Ebersole 3e00630808 HHH-9693 - H2 : Hibernate cannot validate it's own created schema 2016-03-11 09:06:35 -06:00
Vlad Mihalcea 0756bbfccf HHH-4161 - persistence.xml <jar-file> not following JSR220 spec
Switch to an OS-independent  way of checking absolute paths
2016-03-10 15:21:03 +02:00
Janario Oliveira 0385b1436a HHH-10602 - Retrieve cached value with enable_lazy_load_no_trans throws an exception 2016-03-09 14:47:11 +02:00
Vlad Mihalcea cf27164532 Roll back change that slipped from the User Guide-related changes 2016-03-09 14:00:28 +02:00
Vlad Mihalcea 68af365916 Convert basic chapter examples to unit tests for quoting, column transformers, and @Any mappings 2016-03-09 12:50:12 +02:00
k abram 2aed1fd6b1 HHH-10549 - Hibernate incorrectly applies Converters with autoApply=true to subclasses 2016-03-09 07:36:57 +02:00
Vlad Mihalcea 009d8813db HHH-10593 - Avoid NullPointerException with auto_evict_collection_cache and many-to-many
Cherry pick from Janoiro PR
2016-03-08 16:44:21 +02:00
Janario Oliveira 8b181857a6 HHH-10593 - Avoid NullPointerException with auto_evict_collection_cache and many-to-many
Added verification to many-to-many relation
2016-03-08 16:29:08 +02:00
bdragan 54c2586a01 Fixed HHH-10517: ClassCastException using Restrictions.in with child
classes in Criteria based on parent class.
2016-03-08 15:24:00 +02:00
Vlad Mihalcea fe247985f2 Fix new line issues that were causing some tests to fail on Windows OS 2016-03-08 11:11:31 +02:00
Gail Badner 3f37fff04a HHH-10563 : Significant String use/duplication associated with subselect fetch 2016-03-07 18:08:52 -08:00
Gail Badner b053116bb4 HHH-10563 : Add trace logging of generated SubselectFetch query string 2016-03-07 15:32:00 -08:00
Steve Ebersole 65886c045e HHH-10277 - AttributeConverter not applied to attributes of an embeddable used as collection element 2016-03-03 18:12:38 -06:00
Gail Badner 5e30c2bf16 HHH-10576 : Correct association in CascadeMergeToChildBeforeParentTest 2016-02-29 22:57:42 -08:00
barreiro c5104601e1 HHH-10554 - Fix NPE in dirty tracking generated code of bytecode enhanced @Embeddable entities 2016-02-26 11:49:54 -06:00
Steve Ebersole a69b485d1b HHH-10564 - EntityManager.find() broken for MySQL and UUID 2016-02-26 11:48:52 -06:00
Andrea Boriero d65445194d HHH-10533 - Fix ORM tries to create a unique constraint on a non existing table 2016-02-26 12:41:14 +00:00
Andrea Boriero dc07f44629 HHH-10553 - add test for issue 2016-02-26 12:41:13 +00:00
Gail Badner bdfe38b0c6 HHH-10567 : Wrong table for formula if its property is mapped on a secondary table 2016-02-25 19:48:53 -08:00
Steve Ebersole f076b5823c HHH-10499 - Can't set ConnectionProvider instance, regression 2016-02-24 22:05:49 -06:00
Steve Ebersole 020ca4aa39 HHH-7405 - BatchBuilder service does not properly define JMX MBean 2016-02-23 07:09:17 -06:00
Steve Ebersole a5cbe326d6 HHH-9485 - Duplicate Property with AccessType.PROPERTY and MappedSuperclass 2016-02-22 16:36:05 -06:00
Guillaume Smet d0a036c536 HHH-10538 Fix the javadoc of TableInformation.getIndex(Identifier indexName) 2016-02-17 15:36:01 +01:00
Steve Ebersole 0fccf6b7bd HHH-10528 - use_nationalized_character_data global property is ignored 2016-02-16 09:35:54 -06:00
Andrea Boriero 409c5424a0 HHH-10529 - Fix SQLServer2008Dialect generate incorrect length of nvarchar 2016-02-15 14:45:53 +00:00
Andrea Boriero d4772107f0 HHH-10529 - Add test for issue 2016-02-15 14:45:25 +00:00
Andrea Boriero e09a9f9aca HHH-10521 - Fix Java 6 not compliant tests 2016-02-12 14:42:51 +00:00
Radim Vansa aaf13cd123 HHH-9993 IsolationDelegate: add method to execute code without obtaining a connection 2016-02-10 10:57:53 -06:00
Gail Badner b5a86ea45c HHH-5855 : checkstyle corrections 2016-02-10 00:10:52 -08:00
Gail Badner efa72a8333 HHH-5855 : Merge causes a duplicated "insert" of a child entity in lazy collection 2016-02-09 23:33:50 -08:00
Steve Ebersole 177bbfe5e3 HHH-10345 - HHH-3422 still a problem with oracle 2016-02-09 22:35:12 -06:00
Steve Ebersole 13bbddfd30 HHH-9548 - Allow propagation of NULL for stored-procedure argument parameters to database 2016-02-09 16:08:59 -06:00
Andrea Boriero 19d86c3d65 HHH-10484 - MySQLDialect override Dialect#isJdbcLogWarningsEnabledByDefault() to return false 2016-02-09 21:33:54 +00:00
Andrea Boriero 624ddc620b HHH-10484 - Add Dialect#isJdbcLogWarningsEnabledByDefault() method, the return value is true 2016-02-09 21:33:54 +00:00
Andrea Boriero 1a1523db44 HHH-10484 - Add hibernate.jdbc.log.warnings configuration property 2016-02-09 21:33:54 +00:00
Steve Ebersole 0a2a709f9e HHH-10458 - Better encapsulate SchemaManagementTool (OGM) - unify JPA schema generation and hbm2ddl capabilities;
HHH-10487 - Add @Incubating annotation
2016-02-09 11:45:46 -06:00
Steve Ebersole 17de173cb5 HHH-10458 - Better encapsulate SchemaManagementTool (OGM) - unify JPA schema generation and hbm2ddl capabilities;
HHH-10487 - Add @Incubating annotation
2016-02-09 11:45:46 -06:00
Andrea Boriero eea9a943b3 HHH-10507 - Hibernate core test removing usage of Java 8 methods 2016-02-09 17:00:27 +00:00
Andrea Boriero 57b32543ed HHH-7973 - Fix String literals in an HQL query can get mangled 2016-02-09 15:27:54 +00:00
Andrea Boriero 9c75e79bc9 HHH-7973 - Add test for issue 2016-02-09 15:27:29 +00:00