Commit Graph

3359 Commits

Author SHA1 Message Date
Gail Badner b28e0974df HHH-11072 : Skip CriteriaLiteralInSelectExpressionTest#testStringLiteral2 for Oracle, Db2, SQL Server, and Sybase dialects 2016-08-30 23:10:00 -07:00
Steve Ebersole d5cbd8fdf0 HHH-8630 - random map key column generated when using @AttributeOverrides and @ElementCollection 2016-08-30 18:41:56 -05:00
姜禹 19834a0046 HHH-10502 - ORDER BY FIELD(..) throws java.sql.SQLException: Operand should contain 1 column(s) 2016-08-30 15:56:52 +03:00
Steve Ebersole aaa32ebed5 HHH-11067 - Proxy-wrapped Sessions (ThreadLocalSessionContext.TransactionProtectionWrapper) handle equals incorrectly 2016-08-26 10:53:40 -05:00
Gail Badner 4f991c3e74 HHH-9739 : Updated object is written to second level cache with CacheMode.IGNORE 2016-08-25 01:04:52 -07:00
Steve Ebersole 68c62da29e HHH-11058 - NPE in SchemaValidator with DdlTransactionIsolatorJtaImpl 2016-08-20 10:02:40 -05:00
Steve Ebersole f26eb97091 HHH-11058 - NPE in SchemaValidator with DdlTransactionIsolatorJtaImpl 2016-08-19 15:48:51 -05:00
Gail Badner 5096982532 HHH-11037 : Correct jira issue in @TestForIssue 2016-08-18 15:44:31 -07:00
Andrea Boriero 62bfbf8bd9 HHH-11037 - Same named subtype embeddable properties ignored 2016-08-18 15:44:31 -07:00
Andrea Boriero 3028f5d787 HHH-11037 - Add test for issue 2016-08-18 15:44:31 -07:00
johara 65422a6750 HHH-11051 : Cache EventListenerRegistry and StatisticsImplementor
(cherry picked from commit 97318b71f0)

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

(cherry picked from commit 836691b5a7)

Conflicts:
	hibernate-core/src/main/java/org/hibernate/internal/SessionFactoryImpl.java
2016-08-18 15:16:45 -07:00
Andrea Boriero f201d2829e HHH-10693 - Fix PostgreSQL failing tests 2016-08-15 09:15:23 +02:00
Andrea Boriero 8d86770dcc HHH-11033 - NativeQueryImpl::doScroll seems to be broken when used with setParameterList (affects scroll and stream) 2016-08-14 17:59:06 +02:00
Andrea Boriero 6ec48514f7 HHH-11033 - Add test for issue 2016-08-14 17:59:06 +02:00
Andrea Boriero 78cab094b9 HHH-11036 - The drop schema filtering of sequence generation with schemaFilter is wrong 2016-08-11 08:07:28 +02:00
Chris Cranford 5b7d00ef1e HHH-10978 - Added test case. 2016-08-10 15:51:07 -07:00
Chris Cranford 9c37511811 HHH-10978 - Fix building join table metadata with default catalogs or schema values. 2016-08-10 15:51:07 -07:00
Andrea Boriero 4c79b4fa50 HHH-11030 - InformationExtractorJdbcDatabaseMetaDataImpl getTable method wrong default namespace lookup 2016-08-10 13:41:11 +02:00
VyacheslavRarata f0fa15b247 HHH-10106 - Include source entity name and table name (attribute name too ideally) for associations referencing unmapped classes 2016-08-10 14:29:43 +03:00
Andrew Judson 6dd41e7ae6 HHH-3846 - Persisting entity with detached associated entity. 2016-08-10 13:22:11 +03:00
Vlad Mihalcea a63935b530 HHH-11005 - OneToMany generated incorrect SQL where MapKey is on superclass and using InheritanceType.JOINED
Add missing license headers
2016-08-10 08:44:35 +03:00
Richard Barnes e75b017a46 HHH-11005 - OneToMany generates incorrect SQL where MapKey is on superclass and using InheritanceType.JOINED 2016-08-10 08:41:04 +03:00
Andrea Boriero 455d86307b HHH-10695 - Fix MySQL should not use the NCLOB type 2016-08-09 16:26:38 -07:00
Andrea Boriero 513c2358f7 HHH-10693 - Fix PostgreSQL should not use nvarchar when using Nationaliztaion 2016-08-09 15:37:33 -07:00
Andrea Boriero c1023ac49e HHH-10693 - Change test to run with PostgreSQL dialect 2016-08-09 15:29:01 -07:00
Andrea Boriero 4ac5978c20 HHH-11024 - Fix checkstyle error 2016-08-09 13:14:39 +02:00
Vlad Mihalcea 731732d780 HHH-11019 - Extend DelayedPostInsertIdentifier support to include checks for FlushMode (EXTENDED PC)
Add tests to demonstrate how PersistenceContextType.EXTENDED works with the IDENTITY generator
2016-08-09 11:26:13 +03:00
Steve Ebersole 6c005239d4 HHH-11024 - Exception still thrown when dropping schema with a managed connection - exclude any arq+wf tests from JDK 9 builds 2016-08-08 15:53:55 -05:00
Steve Ebersole 7038b3e983 HHH-11024 - Exception still thrown when dropping schema with a managed connection - extend test task dependencies to the matrix-tesing plugin test tasks 2016-08-08 14:40:31 -05:00
Andrea Boriero dddf01740e HHH-11024 - Add test for issue 2016-08-08 14:50:48 +02:00
Steve Ebersole 2db3d9ad2a HHH-11024 - Exception still thrown when dropping schema with a managed connection 2016-08-06 14:09:39 -05:00
Steve Ebersole f025cf9c03 HHH-11024 - Exception still thrown when dropping schema with a managed connection 2016-08-06 14:05:03 -05:00
Andrea Boriero 468307f394 HHH-10953 - Fix tests failing on PostgreSQL 2016-08-03 21:51:18 +02:00
Andrea Boriero f7cc256a1c HHH-10952 - Tests leaving transactions opened cause PostgreSQL to hang 2016-08-03 21:37:27 +02:00
Andrea Boriero 109410b153 HHH-10942 - Session not flushing starting from 5.2.0 in Karaf + Aries JPA & JTA 2016-08-03 15:31:51 +02:00
Andrea Boriero d55ade52b2 HHH-10942 - Add test for issue 2016-08-03 15:30:57 +02:00
Andrej Golovnin 26f2b8e42a HHH-10924 Replace ConcurrentServiceBinding by ConcurrentHashMap 2016-08-03 14:18:12 +01:00
Andrea Boriero 5b327f52c3 HHH-10953 - HQL update statement fails if entity is inside a package of format in.mycomany.domain.Entity 2016-08-03 14:41:52 +02:00
Andrea Boriero b90093927d HHH-10953 - Add test for issue 2016-08-03 14:41:52 +02:00
Andrea Boriero 7c361fee3a HHH-10991 - Wrong order parameter binding when filters are used in conjunction with component type parameters and subqueries 2016-08-03 08:44:17 +03:00
Chris Cranford 9b9becb903 HHH-11009 - Fix exception message to specify unique constraint only when index is unique. 2016-08-02 16:43:46 -05:00
Chris Cranford 58e4f89f47 Checkstyle fixups. 2016-08-02 16:11:20 -05:00
Gail Badner 894c6470d0 HHH-10896 : fix for checkstyle failure 2016-08-02 13:49:35 -07:00
Steve Ebersole c7c5a00167 HHH-10896 - Exception thrown when dropping schema with a managed connection 2016-08-02 13:32:09 -05:00
Steve Ebersole da49122113 HHH-10896 - Exception thrown when dropping schema with a managed connection 2016-08-02 13:08:40 -05:00
Vlad Mihalcea 1661af2d8f HHH-10965 - Add new Query Hint to avoid passing DISTINCT from entity queries to SQL statements 2016-08-02 17:47:31 +03:00
Andrea Boriero c5e5287790 HHH-10027 - Dynamic filter parameter can be bound in wrong order when applied to OneToMany collections 2016-08-02 17:44:12 +03:00
Andrea Boriero d62e9f44ca HHH-10896 - Fix checkstyle error 2016-08-02 13:17:43 +02:00
Andrea Boriero e6c36a6666 HHH-10950 - uniqueResultOptional fails for Query created from CriteriaQuery 2016-08-02 11:54:55 +02:00
Andrea Boriero edf684e1f1 HHH-10950 - uniqueResultOptional fails for Query created from CriteriaQuery 2016-08-02 11:35:24 +02:00
Andrea Boriero 5cbc428421 HHH-10950 - Add test for issue 2016-08-02 11:35:24 +02:00
Andrea Boriero 73df331415 HHH-10937 - The generation of the drop schema does not filter sequence with schemaFilter 2016-08-02 10:58:42 +02:00
Andrea Boriero a190d2f3eb HHH-10937 - Add test for issue 2016-08-02 10:58:42 +02:00
Chris Cranford 5eacf421fb HHH-11016 - Added 'if exists' for sequence drop statements for PostgreSQL82 and derivatives. 2016-08-01 22:38:28 -05:00
Steve Ebersole d109c15c0c HHH-10896 - Exception thrown when dropping schema with a managed connection 2016-07-30 07:55:39 -05:00
Steve Ebersole 10def48f48 HHH-10896 - Exception thrown when dropping schema with a managed connection 2016-07-30 07:55:38 -05:00
Gail Badner 0d8f08b9d1 HHH-10795 : added assertions to test case 2016-07-29 15:47:24 -07:00
Gail Badner 56b22aeaac HHH-10795 : StatefulPersistenceContext.entityEntryContext does not work properly for ManagedEntity associated with a different StatefulPersistenceContext 2016-07-29 15:47:24 -07:00
Vlad Mihalcea bf823d440c 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
2016-07-29 07:43:18 +03:00
Chris Cranford 714ba62158 HHH-10994 - Relax requirement of 'as' in the alias phrase for the MSSQL LimitHandler implementation. 2016-07-28 12:31:44 -05:00
Vlad Mihalcea 8f5ba32990 HHH-10996 - The cleanupTestData utility has issues with link tables 2016-07-27 16:13:35 +03:00
Andrea Boriero 65fee06bd6 HHH-10919 - HQL: Sql syntax exception when joining a Map<Entity,Component> 2016-07-27 14:23:20 +03:00
Gail Badner 2c553f3290 HHH-10993 : NPE when Lazy loading collection without transaction for bytecode enhanced entitie 2016-07-26 16:22:04 -07:00
Gail Badner 41ac8c4f08 HHH-10993 : Correct to test case for master 2016-07-26 14:58:01 -07:00
johara 80e092a432 HHH-10993 - Added testcase for Lazy Loaded collections outside transaction in bytecode enhanced entities 2016-07-26 14:50:34 -07:00
Steve Ebersole 72e948514e HHH-10984 - Have multiLoad not return (unflushed) DELETED entities;
HHH-10617 - multiLoad behavior
2016-07-26 11:31:17 -05:00
Andrea Boriero 085a70beb4 HHH-10920 - Joined inheritance : Same super class field name in embedded type causes embedded field to be ignored 2016-07-26 17:00:22 +03:00
Andrea Boriero 649e2b76e7 HHH-10959 - Methods in org.hibernate.query.Query should not return the deprecated org.hibernate.Query 2016-07-26 08:12:09 -05:00
Andrea Boriero e1bdbc84d4 HHH-10959 - Add test for issue 2016-07-26 08:12:09 -05:00
Gunnar Morling 65bbf28d3c HHH-10923 Upgrading CDI and related dependency versions 2016-07-26 15:16:25 +03:00
Andrea Boriero 5e69823b79 HHH-10915 - NullPointerException from AbstractProducedQuery.getParameters() 2016-07-26 15:05:18 +03:00
jfb 26df5d9e11 HHH-10531 JaxbHbmTuplizerType marshalling does not conform hibernate-mapping-4.0.xsd
HHH-10532 Cannot marshall JaxbHbmBasicAttributeType to xml if the "generated" attribute is not specified
2016-07-26 11:22:29 +03:00
Marvin Froeder 74e959f1bc HHH-10879 SqlServer dialect doesn't respect "key" reserved keyword 2016-07-22 11:27:41 +03:00
barreiro a9318ce656 HHH-10973 - Fix 'class is frozen' when enhancing bidirectional relationships 2016-07-21 22:23:22 -07:00
barreiro 987487e106 HHH-10977 - Entity not enhanced after MappedSuperclass 2016-07-21 22:23:22 -07:00
Dmytro Bondar 29edc4f367 HHH-10810 - ImplicitIndexColumnNameSource should extend ImplicitNameSource. 2016-07-21 17:56:26 +03:00
Dmytro Bondar 63ea1f812a HHH-8687 Better exception message for PostgreSQL81Dialect and named REF_CURSOR parameter binding 2016-07-21 16:59:00 +03:00
Yanming Zhou 5ea8997ca7 Fix missing currentTenantIdentifierResolver
1. Add missing sessionFactoryBuilder.applyCurrentTenantIdentifierResolver() .
2. Use getter instead of field for consistency .
2016-07-21 15:12:58 +03:00
Vlad Mihalcea b90047f55d HHH-10960 - Clarification of org.hibernate.query.Query methods
This test tries to replicate the given issue, but I could not find any compile warning related to this class.
2016-07-21 12:27:58 +03:00
Gabriel Belingueres 5e82c2e414 Fixes HHH-10800 - InformixDialect: add support for current_timestamp() and current_date() 2016-07-21 10:58:25 +03:00
Idel Pivnitskiy e814eb930b Fix mistake in doc for org.hibernate.annotations.CascadeType#DETACH 2016-07-20 18:09:36 +03:00
barreiro 92c1e63577 HHH-10922 - Call on bytecode enhanced method trigger load of proxy 2016-07-19 12:34:31 -07:00
barreiro 45adb05f5a HHH-10922 - Test case 2016-07-19 12:34:31 -07:00
Gail Badner c893577efc HHH-5393 : MappingException when @MapKeyColumn refers to a column mapped in embeddable map value 2016-07-14 15:16:51 -07:00
Vlad Mihalcea 9ac00406d2 HHH-10955 - PessimisticWriteLockTimeoutTest#testSkipLocked should run only on PostgreSQL 9.5 2016-07-14 14:12:39 +03:00
Vlad Mihalcea f5e10c29eb HHH-10907 - Fix connection leak problem in hibernate-core tests 2016-07-14 13:55:30 +03:00
Vlad Mihalcea da9c6e160d HHH-10907 - Fix connection leak problem in hibernate-core tests 2016-07-13 18:02:47 +03:00
Andrea Boriero e4062362ac HHH-10952 - Tests leaving transactions opened cause PostgreSQL to hang 2016-07-13 10:17:14 +02:00
Vlad Mihalcea 799ab91cf5 HHH-10943 - Driver Manager Connection Pool should close leaked connections upon shutting down 2016-07-12 17:14:59 +03:00
Vlad Mihalcea dc5fe2cde8 HHH-10900 - ExceptionConverter throws an exception if the Proxy is no longer reachable 2016-07-12 15:58:52 +03:00
Andrea Boriero f0fe332991 HHH-10944 - org.hibernate.test.mappingexception.MappingExceptionTest#testNotFound failure 2016-07-12 11:15:17 +01:00
Gail Badner 406a82616b 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:47:04 -07:00
Gail Badner cdd7fb66c8 HHH-10888 : PluralAttribute#isAssociation returns true for @ElementCollection 2016-07-11 13:41:50 -07:00
Brett Meyer da4f5e1a57 HHH-10947 Add @Repeatable to Hibernate-owned annotations 2016-07-11 15:33:35 -04:00
Chris Cranford acd2f238ee HHH-10905 - Fix NPE when calling StatelessSession methods with null LockMode. 2016-07-07 13:26:06 -05:00
Steve Ebersole 5b5d2b6559 HHH-10863 - Improve consistency of how we call implicitNamingStrategy.determineBasicColumnName with element collections 2016-06-30 08:47:17 -05:00
Guillaume Smet 7f3a3bcbcc 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.
2016-06-30 08:47:17 -05:00
Guillaume Smet 9fd61a10db 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.
2016-06-30 08:47:17 -05:00
Gail Badner 570577b653 HHH-10851 : Change to check for @Access on field and getter before checking the class containing the attribute 2016-06-30 00:35:08 -07:00
Vlad Mihalcea 0e6230faf0 HHH-10904 - Fix tests failing when switching to MySQL 2016-06-30 08:50:22 +03:00