Commit Graph

3737 Commits

Author SHA1 Message Date
Andrea Boriero e720b2872a HHH-11257 - Connection leak when SQLGrammarException is thrown 2016-12-06 17:31:00 +02:00
Vlad Mihalcea b1c7615904 HHH-4313 - ConcurrentModificationException when collection of embeddable contains a collection
Throw exception when the JPA rule about nesting any collections from inside an @ElementCollection
2016-12-06 14:50:52 +02:00
Vlad Mihalcea f8d366e749 HHH-11302 - One-To-Many in a Embeddable throw ConcurrentModificationException
Add @Ignore annotation because the test was failing during @Before phase execution
2016-12-05 11:07:55 +02:00
Vlad Mihalcea 3116716bff HHH-11302 - One-To-Many in a Embeddable throw ConcurrentModificationException
Add test for issue
2016-12-05 08:25:57 +02:00
Steve Ebersole 0ab2992a9a HHH-11296 - Incorrect handling of NCLOB streaming 2016-12-01 09:49:17 -06:00
Owen Farrell ac22294bb3 HHH-10465 - Loss of precision in temporal JavaTypeDescriptor implementations 2016-11-28 19:45:32 +02:00
Chris Cranford 886ea603de Fix unused import. 2016-11-28 12:27:53 -05:00
Chris Cranford 630d4f96b4 HHH-11277 - Fix checkstyle error. 2016-11-28 12:25:50 -05:00
Chris Cranford e75e2d78bd HHH-11277 - Fix checkstyle error. 2016-11-28 12:04:39 -05:00
Christian Beikov 46727d5af3 Wrong handling of parameter for TOP clause fixed
I encountered this because the dialect resolver apparently couldn't figure out the dialect for SQL-Server 2016.
2016-11-28 12:04:39 -05:00
Vlad Mihalcea 26c0b5b5cb Fix test broken on some machines 2016-11-28 16:47:49 +02:00
Cédric Tabin bba75c5877 Fix the property name to respect the other related classLoader properties declaration 2016-11-24 11:15:29 +00:00
Cédric Tabin b38a9f40ac Usage of the Locale.ROOT constant to convert the hibernate.classloading.tccl_lookup_precedence property correctly 2016-11-24 11:15:29 +00:00
Cédric Tabin 6cae4adabb Improvement of the AggregatedClassLoader implementation to use one iterator for each type of TcclLookupPrecedence 2016-11-24 11:15:29 +00:00
Cédric Tabin 346941dcb7 The enum TcclLookupPrecedence is a single public enum, detached from the ClassLoaderService interface because it is only implementation-specific 2016-11-24 11:15:29 +00:00
Cédric Tabin c2330c29f6 The enum TCCLLookupBehavior has been renamed to TcclLookupPrecedence and is not mutable during runtime. 2016-11-24 11:15:29 +00:00
Cédric Tabin b31d080a57 Setting hibernate.classloader.tccl_lookup renamed to hibernate.classloader.tccl_lookup_precedence to better reflect its purpose 2016-11-24 11:15:29 +00:00
Cédric Tabin 726305f33e New setting "hibernate.classloader.tccl_lookup" to allow the configuration of the thread context classloader lookup.
The bootstrap classloader context is not stored anymore in the ClassLoaderService because on Glassfish 4.1.1, the former
will be closed after bootstrap, causing huge warning and stacktraces occurs in the log each time a HQL query has to
be compiled.

See ticket HHH-11245 for details.
2016-11-24 11:15:29 +00:00
Andrea Boriero b0fad884f0 HHH-11269 - Fix JPA & JTA - Error during managed flush [Session/EntityManager is closed] on flush-time cascades 2016-11-24 11:13:25 +00:00
Andrea Boriero f8d2cbdcba HHH-11269 - Add test for issue 2016-11-24 10:12:48 +00:00
Chris Cranford aa3f913857 HHH-11194 - Add setting to allow enabling legacy 4.x LimitHandler behavior (removed delegation).
Fix broken test on SQL Server and propagate the legacy behavior even when we extend the SQL Server of the Ingres base Dialects
2016-11-24 10:49:45 +02:00
Steve Ebersole 9219c67da6 HHH-11248 - Warn user when multiple persistence-units use the same name 2016-11-23 09:53:32 -06:00
Andrea Boriero c16a22b0fc HHH-11258 - Fix checkStyle error 2016-11-23 15:04:57 +00:00
Andrea Boriero cc5a13a3f0 HHH-11217 - SessionImpl.refresh() throws IllegalArgumentException, 'not an Entity' when using custom entity name 2016-11-23 14:52:11 +00:00
Andrea Boriero f9a408815e HHH-11217 - Add test for issue 2016-11-23 14:52:11 +00:00
Andrea Boriero aa5f893267 HHH-11216 - @ElementCollection for enumerations is failing when enabling insert ordering 2016-11-23 15:06:39 +02:00
Christian Beikov 801974fa4c Fix for HHH-11258 2016-11-23 06:32:08 -06:00
Christian Beikov 4d076111a3 Test case for HHH-11258 2016-11-23 06:32:08 -06:00
Radim Vansa 6d8f93c103 Document `hibernate.cache.keys_factory` 2016-11-22 22:00:44 -08:00
Radim Vansa bf08752d3a HHH-11083 Un-deprecate OldCacheKeyImplementation and OldNaturalCacheKey 2016-11-22 22:00:44 -08:00
Radim Vansa 9c376a39f9 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 22:00:44 -08:00
Chris Cranford 468ed1b609 HHH-11205 - Fixed nationalization support when field type is char. 2016-11-22 15:05:37 -05:00
Chris Cranford 1b8d94ddba HHH-11205 - Added test case. 2016-11-22 15:05:37 -05:00
Gail Badner 3e52340a92 HHH-11241 : test case (failing tests marked with FailureExpected) 2016-11-18 17:31:32 -08:00
Vlad Mihalcea 4e5648dc8a SQL Server Driver is now on Maven Central 2016-11-18 17:39:14 +02:00
Vlad Mihalcea 74a789e617 HHH-11255 - NaturalId mapping fails when using a composite natural identifier
Add support for adding unique constraints to composite entity properties, like when using a @NaturalId with an @Embedded property
2016-11-17 17:01:19 +02:00
Chris Cranford 95b1e27902 HHH-11250 - Improved exception message for invalid filter parameter name format. 2016-11-16 22:45:37 -05:00
Chris Cranford 7e160d7b49 HHH-11250 - Fixed NullPointerException when defined filter name contains a dot. 2016-11-16 22:45:37 -05:00
Chris Cranford 1d294cb23d HHH-11250 - Added test case. 2016-11-16 22:45:37 -05:00
Steve Ebersole 2e49586adc HHH-11152 - Byte Buddy BytecodeProvider 2016-11-16 13:46:24 -06:00
Rafael Winterhalter ba3359fe62 HHH-11152: Added BytecodeProvider based on Byte Buddy 2016-11-16 13:18:46 -06:00
Steve Ebersole 31a60b84c6 test for https://forum.hibernate.org/viewtopic.php?f=1&t=1043787&p=2490859#p2490859 (jira coming) 2016-11-16 11:00:34 -06:00
Vlad Mihalcea d215abbaea HHH-11233 - JPA SQL function with no arguments can only be called if we provide a comma 2016-11-16 13:18:41 +02:00
Steve Ebersole 0a2bb3c811 HHH-11155 - Lazy properties are not updated if not all lazy properties (e.g. collections) are initialized 2016-11-10 12:21:37 -06:00
Steve Ebersole f2ba4b9cee HHH-11155 - Lazy properties are not updated if not all lazy properties (e.g. collections) are initialized 2016-11-09 22:28:35 -06:00
Gail Badner e17d2f01dc HHH-11155 : test case 2016-11-09 22:26:26 -06:00
Vlad Mihalcea 02b234a44f Check how Criteria API behaves with literals 2016-11-09 15:50:32 +02:00
Christian Beikov 080d65de99 HHH-11230 - Aggregate on (mappedBy) joined column produces invalid query 2016-11-09 11:51:13 +02:00
Steve Ebersole 36d6563998 HHH-11220 - Auto-detect SQL Server 2016 when the major version is 13 2016-11-08 18:53:48 -06:00
Steve Ebersole a356a08d4b HHH-11225 - Add CriteriaBuilder overloads for methods dealing with Collection to also deal with Map 2016-11-08 13:24:18 -06:00
Vlad Mihalcea b828db2261 HHH-3674 - Expose SchemaUpdate#haltOnError as a configuration property 2016-11-03 18:22:31 +02:00
Vlad Mihalcea 6fcab0cb54 HHH-5467 - API documentation for @Fetch(SUBSELECT) is ambiguous. 2016-11-03 14:31:09 +02:00
Vlad Mihalcea 9bbf02536a HHH-5467 - API documentation for @Fetch(SUBSELECT) is ambiguous. 2016-11-03 13:37:42 +02:00
Vlad Mihalcea e26df5dc2e HHH-6941 - Erroneous Javadoc for getReferencedProperty, getReferenceablePropertyIterator 2016-11-02 16:28:07 +02:00
Vlad Mihalcea 531ff6e944 HHH-11034 - Query.stream() Javadoc should specify whether the resulting Stream contains resources 2016-11-02 12:25:30 +02:00
Vlad Mihalcea 6024520e08 HHH-11204 - Fix typo for all "occured" error message to occurred 2016-11-01 16:40:39 +02:00
Vlad Mihalcea e469a99c30 HHH-9216 - Add documentation about merging multiple detached representations of the same entity 2016-10-26 14:24:27 +03:00
Andrea Boriero bf2bc323f6 HHH-11188 - SessionImpl.refresh() throws IllegalArgumentException, 'Entity not managed' for detached instances when JPA bootstrapped 2016-10-26 11:15:31 +03:00
Martin Simka 957ec3fa79 [HHH-11203] fix some minor test issues 2016-10-25 19:27:17 +01:00
Chris Cranford 0e2b2f11e7 HHH-11145 - Fix limit handler to ignore regex search keywords that are quoted. 2016-10-25 09:57:17 -04:00
Nick dd14feac5a HHH-11179 - NullPointerException on lazy load of non-existed entity outside transaction 2016-10-25 15:17:30 +03:00
Vlad Mihalcea 7b263f8697 HHH-10465 - Loss of precision in temporal JavaTypeDescriptor implementations
Fix test to work on UTC-X timezones as well
2016-10-25 14:54:01 +03:00
Andrea Boriero 3e5025ac10 HHH-11177 - Duplicate queries during startup 2016-10-25 10:51:51 +01:00
Andrea Boriero 7f5419ad74 HHH-11166 - JPA & JTA - java.lang.IllegalStateException: Session/EntityManager is closed when EntityManaer is closed with an active Transaction 2016-10-25 11:56:16 +03:00
Vlad Mihalcea 50346775b0 HHH-10465 - Loss of precision in temporal JavaTypeDescriptor implementations
Test to validate if the Timestamp time handles fraction of a second
2016-10-24 18:29:23 +03:00
Christian Beikov 877a05213c Fix failing WithClauseTest 2016-10-24 16:14:11 +02:00
Christian Beikov 556aa265c0 Add property for disabling subquery join rewrites and handle mysql quoted identifiers 2016-10-21 13:44:08 -05:00
Andrea Boriero 9e8fd60e26 HHH-11159 - JPA CriteriaUpdate, NnullLiteral causes IllegalArgumentException: Could not convert java type to Hibernate type 2016-10-20 22:58:31 -07:00
Andrea Boriero 1c1fe2a9af HHH-11159 - Add test for issue 2016-10-20 22:58:30 -07:00
Andrea Boriero b3151de647 HHH-11182 - HQL subquery with constraint property in superclass does not join superclass table 2016-10-20 13:19:53 -07:00
Gail Badner 38379a537a HHH-11182 - Add test for issue 2016-10-20 13:19:53 -07:00
Yordan Gigov 3b196fb2e1 HHH-11171 - Java 8 time types fail Externalization 2016-10-20 16:20:34 +03:00
Andrea Boriero 0439e855cc HHH-11184 - SessionFactoryDelegatingImpl.registerNamedSQLQueryDefinition call wrong delegate method 2016-10-20 10:52:28 +01:00
barreiro 5f61ee0b43 HHH-11050 - [bytecode enhancement] Add support for getters/setters through delegation 2016-10-18 12:32:10 -05:00
barreiro 90ffcec3fa HHH-11050 - [bytecode enhancement] Test case 2016-10-18 12:32:10 -05:00
Christian Beikov 416fe7e6a8 Fixed HHH-11157 and extended identifier handling 2016-10-11 11:53:10 +03:00
Brian Peterson 5f50e1e919 HHH-10489 : DB2400Dialect could use the same LimitHandler as DB2Dialect
HHH-11150 : DB2 on AS400 (DB2400 Dialect) fails to paginate.

Leveraged code from the DB2 Dialect and placed in DB2400Dialect. This was then tested on an AS400 successfully.
2016-10-11 11:32:34 +03:00
Vlad Mihalcea 0c8261b0ae HHH-9864 - foreign key violation with order_inserts=true and batches with mixed subclass entities 2016-10-10 18:03:30 +03:00
Andrea Boriero 774a16c2d9 HHH-6562 - Unknown collection role when accessing ElementCollection in Embeddable via Criteria API 2016-09-29 22:36:41 -07:00
barreiro 20c2037529 HHH-10981 - No need to add template methods for inherited persistent fields 2016-09-29 18:15:46 +01:00
barreiro e2641afb12 HHH-10981 - Support private persistent fields in @MappedSuperclass 2016-09-29 18:15:46 +01:00
barreiro 63af953566 HHH-10981 - Test case 2016-09-29 18:15:46 +01:00
Christian Beikov 5d6678a414 Added testcase that demonstrates issue with join table index column usage 2016-09-29 11:58:26 -05:00
Christian Beikov 1d823ceb76 Test and fix for HHH-9329 2016-09-29 11:58:26 -05:00
Chris Cranford de7ca7882b HHH-11131 - Refactored generator and database structure code. 2016-09-29 17:45:14 +01:00
Christian Beikov d48ac0f0f7 HHH-10229 - Select value from element collection results in wrong SQL being produced 2016-09-29 11:35:29 -05:00
Steve Ebersole 9aa164ed27 HHH-10818 - Allow AttributeConverter on attributes marked as Lob (REALLY this time) 2016-09-29 11:27:27 -05:00
Christian Beikov b6aa191720 Test and fix for HHH-11140 2016-09-29 09:08:41 -05:00
Gail Badner f34508e3f3 HHH-10998 : NullPointerException when using join with subselect in hbm mapping 2016-09-28 17:34:09 -07:00
Chris Cranford 2d03ba9747 HHH-11133 - Add discriminator-value attribute support for joined-subclass hbm mapping elements. 2016-09-28 16:27:45 -05:00
Andrea Boriero de3153a8e1 HHH-11023 - Startup performance regression : schema update/validate 2016-09-28 19:12:46 +01:00
Andrea Boriero 30165d4aef HHH-11092 - NamedNativeQueries ordinal parameters are zero based 2016-09-28 16:26:07 +01:00
Andrea Boriero f8f5486fda HHH-11092 - Add test for issue 2016-09-28 16:26:07 +01:00
Andrea Boriero 306c151fff HHH-11121 - Wrong NativeQueryImpl.setZeroBasedParametersIndex when Session#createSQLQuery is executed after EM#createNativeQuery 2016-09-28 16:26:07 +01:00
Andrea Boriero 47e925ead4 HHH-11121 - Add test for issue 2016-09-28 16:26:07 +01:00
Vlad Mihalcea 8201c69103 HHH-11076 - Lazy collections ignore filters when allowLoadOutsideTransaction is true
Roll back fix since it got rejected due to some corner cases that are now added to ProxyPreservingFiltersOutsideInitialSessionTest
2016-09-28 17:18:18 +03:00
Vlad Mihalcea 23326608f7 HHH-5409 - bag and idbag should implement equals() and hashCode() the same way as other collections
This test does not verify how equals is implemented for Bags,
but rather if the child entity equals and hashCode are used properly for both
managed and detached entities.
2016-09-28 16:23:18 +03:00
ChristophDreis d2d947068d HHH-11136 - Reduce memory consumption caused by Method.getParameterTypes() 2016-09-27 09:08:41 +02:00
Chris Cranford f521017b90 HHH-11084 - Fix injection of TOP for subselect cases that use select distinct clause. 2016-09-21 16:21:02 -04:00
Chris Cranford 20ae4920b7 HHH-5908 - Avoid unnecessary updates on detached un-modified entities with SelectBeforeUpdate.
HHH-11056 - Envers audits unchanged objects for a certain use case
2016-09-21 16:38:59 +03:00
Boris Byk 348f92b340 HHH-11120 - SessionFactoryOptionsImpl#releaseResourcesOnCloseEnabled never initialized 2016-09-21 16:34:28 +03:00
ChristophDreis d4d2b8f74f HHH-11119 Improve performance of StringHelper.qualify() and StringHelper.unqualify() 2016-09-21 10:44:05 +01:00
Damien Hollis 9498b52566 HHH-10659 - Natural Id 2nd level Cache not working when Identity is database generated 2016-09-20 14:26:44 +03:00
Andrea Boriero dc7a1c96a3 HHH-11061 - Attempt to resolve foreign key metadata from JDBC metadata failed to find column mappings for foreign when keywords auto quoting is enabled 2016-09-20 10:45:18 +03:00
Andrea Boriero 5f60cd3b65 HHH-11099 - Closing EntityManager with an active transaction causes JTA connection leak 2016-09-19 17:45:28 +03:00
Giovanni Lovato ae40de125d HHH-11076 - Lazy collections ignore filters when allowLoadOutsideTransaction is true 2016-09-19 13:57:02 +03:00
Gail Badner 87e69c9d34 HHH-11038 : Invalid statement generated for @MapKeyColumn(updatable=false) for @OneToMany 2016-09-18 21:47:24 -07:00
Gail Badner c3f7c332f5 HHH-11038 : test case 2016-09-18 21:46:47 -07:00
Andrea Boriero 9cf4fecbfe HHH-11101 - Missing unique constraint for many-to-many with unique=true in list mapping 2016-09-15 23:43:52 -07:00
Andrea Boriero a3eac62761 HHH-11101 - Add test for issue 2016-09-15 23:43:52 -07:00
Andrea Boriero fd918c2a6e HHH-10972 - Fix checkstyle error 2016-09-15 15:04:36 +01:00
Jaikiran Pai 7247f05a21 HHH-10972 Use UTF-8 charset for reading file content of scripts that are used for initializing databases 2016-09-15 11:52:41 +03:00
Andrea Boriero c9c50d8afd HHH-11081 - JPA join with treat causes QuerySyntaxException: Invalid path 2016-09-14 23:34:48 -07:00
Andrea Boriero 4d3ece8c09 HHH-11081 - Add test for issue 2016-09-14 23:34:48 -07:00
Vlad Mihalcea 6f43d40e0a HHH-10399 - Add support for specifying TimeZone for ZonedDateTime type
Fix test failing in TimeZones with negative offsets
2016-09-15 08:27:59 +03:00
Steve Ebersole 81aba17771 HHH-11098 - Attributeconverter converttoEntityAttribute and convertToDatabaseColumn code is called within a query.list() call -> slow 2016-09-14 10:25:47 -05:00
Martin Simka 4bf4e3b81a HHH-11037 - fix tests on Oracle
fixes ORA-00972: identifier is too long on Oracle databases
2016-09-14 11:24:16 +03:00
Steve Ebersole 0a2a5c622e HHH-11097 - Performance problem if cached entity has attribute state with an expensive toString() method (LOB, etc) 2016-09-13 21:10:23 -05:00
Steve Ebersole c7c9e42145 HHH-11097 - Performance problem if cached entity has attribute state with an expensive toString() method (LOB, etc) 2016-09-13 17:00:02 -05:00
Vlad Mihalcea a00a30f488 Fix broken tests on Jenkins 2016-09-13 14:57:32 +03:00
Vlad Mihalcea 62e499538c HHH-10399 - Add support for specifying TimeZone for ZonedDateTime type
Add documentation and supply more tests
2016-09-13 13:35:01 +03:00
Vlad Mihalcea 553942d2f9 HHH-10399 - Add support for specifying TimeZone for ZonedDateTime type 2016-09-12 10:50:54 +03:00
Vlad Mihalcea d229534647 Add test to replicate if JOINED inheritance ends up in a Cartesian Product 2016-09-09 10:31:45 +03:00
Piotr Findeisen f18656473d HHH-11082 Log the failing SQL when the batched execution throws a RuntimeException (e.g. StaleStateException) 2016-09-05 16:42:49 +03:00
dewarder 8de4ff2a3a HHH-10406 - Provide @CreationTimestamp and @UpdateTimestamp for Java Time 2016-08-31 15:32:36 +03:00
Yanming Zhou fec5afc8b6 HHH-11074 - Add method setTimeout for DetachedCriteria 2016-08-31 14:29:56 +03:00
Gail Badner 839bf0b6f9 HHH-11073 : Casting to boolean in HQL query fails on MySQL 2016-08-31 00:22:16 -07:00
Gail Badner 4551e521c1 HHH-11073 : test case 2016-08-31 00:21:25 -07:00
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
barreiro 5ef1da74c2 HHH-10851 - PropertyAccessMixed not aware of Access annotation 2016-06-30 00:34:21 +02:00
barreiro cdc69a475b HHH-10801 - Bytecode enhancement of @MappedSuperclass 2016-06-30 00:29:29 +02:00
barreiro f0dfc1269b HHH-10865 - ManyToMany relation dropped from database when lazy loading is active 2016-06-29 23:27:49 +02:00
Andrea Boriero 20f68d43a4 HHH-8488 - Fix Join, CollectionJoin, SetJoin, ListJoin, MapJoin CriteriaBuilder#treat SetJoin behaviour 2016-06-29 19:35:55 +02:00
Andrea Boriero 9d20d3ab03 HHH-8488 - Add tests for issue 2016-06-29 19:35:55 +02:00
Chris Cranford cf0fb8d262 HHH-10807 - Added test case for JTA transactions and marked for rollback. 2016-06-29 11:15:46 -05:00
Chris Cranford ee4f939a04 HHH-10807 - Moved isActive from Transaction to TransactionImplementor. 2016-06-29 11:15:45 -05:00
Chris Cranford 1bc2f7c79c HHH-10807 - Fix flush operation to work when transaction marked for rollback. 2016-06-29 11:15:45 -05:00
Chris Cranford e7933ababb HHH-10807 - Added isActive to Transaction and moved logic to TransactionDriver. 2016-06-29 11:15:45 -05:00
Andrea Boriero a8bcedecbf HHH-10877 - Fix Introduce a configuration option to allow out of transaction updates 2016-06-29 14:55:56 +02:00
Andrea Boriero 88e7254b6e HHH-10877 - Add test for issue 2016-06-29 14:28:13 +02:00
Gail Badner 1d20ea4f60 HHH-10413 : byte[] as the version attribute broken 2016-06-28 21:57:53 -07:00
Gail Badner 13db8b95e3 HHH-10729 HHH-9021 HHH-10230 : Add more checks to test cases 2016-06-28 17:11:26 -07:00
Andrea Boriero 597183a3b9 HHH-10861 - Fix nullLiteral in select expression 2016-06-28 20:46:52 +02:00
Andrea Boriero e71af130f0 HHH-10729 HHH-9021 HHH-10230 - Fix Issue with literals in select expression 2016-06-28 20:46:52 +02:00
Andrea Boriero e0963d56b9 HHH-10729 HHH-9021 HHH-10230 - Add test for issue 2016-06-28 20:46:52 +02:00
Andrea Boriero 3855a48f1e HHH-10843 - Fix QuerySyntaxException when use CriteriaBuilder.concat in selectCase expression 2016-06-28 17:30:35 +02:00
Andrea Boriero a3ed7010b6 HHH-10843 - Add test for issue 2016-06-28 17:30:35 +02:00
Andrea Boriero d889b412cd HHH-10885 - QueryParameterBindingsImpl refactoring 2016-06-28 17:20:12 +02:00
Andrea Boriero 92f5032cc0 HHH-10885 - Fix JPA Native Queries with ordinal parameter is zero based 2016-06-28 17:20:12 +02:00
Andrea Boriero e99270c332 HHH-10885 - Add test for issue 2016-06-28 17:20:12 +02:00
Vlad Mihalcea 0b34910b22 HHH-10890 - PostgreSQL does not consider alias-specific LockMode 2016-06-28 17:43:32 +03:00
Andrea Boriero 5cb5b68f9c HHH-10893 - Fix Reusing Query but changing collection parameters returns wrong result 2016-06-28 16:29:19 +02:00
Andrea Boriero 0e0f497c2a HHH-10893 - Add test for issue 2016-06-28 16:29:19 +02:00
Andrea Boriero 2d9caaf030 HHH-10837 - Changed new setting name to hibernate.jpa.static_metamodel.population 2016-06-28 15:52:12 +02:00
Andrea Boriero 1558eb73a6 HHH-10837 - with jpaMetaModelPopulationSetting.DISABLED the MetadataContext is not created 2016-06-28 15:52:12 +02:00
Andrej Golovnin 248d9cca14 HHH-10837 Add new setting to disable/enable scanning for the static metamodel. 2016-06-28 15:52:12 +02:00
Andrea Boriero 83eb8b0f76 HHH-10341 - Fix failing test 2016-06-28 15:19:03 +02:00
Andrea Boriero 04f1fcc762 HHH-10341 - Fix Specification violation in Implementation of TupleElement 2016-06-28 15:19:03 +02:00
Andrea Boriero 57b954d476 HHH-10341 - Add test for issue 2016-06-28 15:19:03 +02:00
Vlad Mihalcea f59dfa2522 HHH-10889 - Fix unit tests failing on Oracle 2016-06-28 15:56:01 +03:00
Vlad Mihalcea e779f6ae16 HHH-10886 - The follow-on-locking Oracle mechanism should consider UNION as well 2016-06-28 15:33:45 +03:00
mharray 253820a289 HHH-10874 - @Where annotation is not processed with "Extra-lazy" loading for bidirectional collections
For bidirectional collections, the  where clause is now considered when calculating the size() of the LazyCollectionOption.EXTRA annotated collections
2016-06-23 11:55:25 +03:00
Vlad Mihalcea eec01edcca HHH-10876 - DefaultIdentifierGeneratorFactory does not consider the hibernate.id.new_generator_mappings setting 2016-06-23 10:31:51 +03:00
Gail Badner 59c0d48f8d HHH-10648 : No MultipleBagFetchException is thrown when fetching two bags eagerly 2016-06-23 00:05:07 -07:00
Andrea Boriero ad5c0f6376 HHH-10860 - Fix Query#scroll() throws NPE 2016-06-22 16:23:54 +02:00
Andrea Boriero 1e5a022e93 HHH-10860 - Add test for issue 2016-06-22 16:23:54 +02:00
Andrea Boriero 6c80bc4b08 HHH-10839 - Fix checkstyle errors 2016-06-22 15:48:48 +02:00
Gail Badner 60bfef093a HHH-10761 : Moved test case to hibernate-entitymanager 2016-06-21 17:15:31 -07:00
Gail Badner 6853fdae70 HHH-8999 : NullPointerException when updating or deleting multiple entities of same type with non-comparable IDs 2016-06-21 12:11:36 -07:00
Gail Badner 280f93add3 HHH-8999 : Added test cases 2016-06-21 12:11:36 -07:00
Sanne Grinovero 59a3b4587e HHH-10839 Restore some lost backwards compatibility (#1418)
* HHH-10839 Restore some more selected deprecated APIs

* HHH-10839 Restore backwards compatibility for org.hibernate.Query contract

* HHH-10839 Missing override in the new org.hibernate.query.Query interface
2016-06-21 13:09:10 -05:00
Emmanuel Bernard b11d10d742 HHH-10813 Replace AssertionFailure with HibernateException when collection not processed by flush 2016-06-21 17:15:46 +03:00
Martin Prebio 4604258746 Fix Javadoc typo 2016-06-21 17:05:44 +03:00
Joël Marty b13fffee6c HHH-10238: Derby MultiTableBulkIdStrategy uses non-existant temporary tables
- DerbyDialect.java: make getDefaultMultiTableBulkIdStrategy() return a LocalTemporaryTableBulkIdStrategy
2016-06-21 16:20:00 +03:00
Andrea Boriero aa6ab6d074 HHH-10870 - Fix Parameter lookup for Iterable fails on Criteria API 2016-06-20 20:23:06 +02:00
Andrea Boriero c8acf1ed9e HHH-10870 - Add test for issue 2016-06-20 18:47:50 +02:00
Vlad Mihalcea 69ee03a79c 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 13:26:34 +03:00
Steve Ebersole 60aac117e6 HHH-10774 - SortedMap defined in .hbm.xml are not sortable 2016-06-19 12:08:20 -05:00
Steve Ebersole b112e5af3f HHH-10864 - Allow ORM to be built with Java 9 2016-06-18 15:12:23 -05:00
Steve Ebersole fdd15307e0 HHH-10864 - Allow ORM to be built with Java 9 2016-06-17 13:40:44 -05:00
Steve Ebersole 015be3df6e HHH-10864 - Allow ORM to be built with Java 9 2016-06-17 13:40:44 -05:00
Steve Ebersole b7f17ce898 HHH-10277 - AttributeConverter not applied to attributes of an embeddable used as collection element 2016-06-16 11:10:44 -05:00
Nikita 309b1b27b0 HHH-10516 - Incorrect coalesce function for InformixDialect
HHH-10846 - InformixDialect has incorrect substring function
2016-06-16 16:24:59 +03:00
Gail Badner 7ed51f44dd HHH-10562 : ManagedEntity linked list broken when non-associated enhanced entity is evicted 2016-06-15 22:05:10 -07:00
Chris Cranford 66172dd30e Checkstyle fixups. 2016-06-15 23:21:32 -05:00
Gail Badner 10a035481d HHH-10360 : Natural ID columns are nullable by default 2016-06-15 16:54:11 -07:00
Gail Badner 67c7858dd5 HHH-10360 : Added test cases 2016-06-15 16:46:04 -07:00
Piotr Findeisen 832b62f7bb HHH-9486: Use follow-on locking when paging only 2016-06-15 18:57:29 +03:00
Vlad Mihalcea 097abe8be1 Externalize the ConnectionProvider delegate logic out of PreparedStatementSpyConnectionProvider 2016-06-15 06:46:31 +03:00
Andrea Boriero da0b46d61c HHH-10375 - Fix adding an entity at index to list with @OrderColumn in detached Entity 2016-06-14 15:28:36 -07:00
Andrea Boriero 6e47c2840a HHH-10375 - Add test for issue 2016-06-14 15:28:36 -07:00
Chris Cranford e2343f873a HHH-10824 - Fix query stream API to support returning R rather than Object[] when selecting one type. 2016-06-14 10:51:08 -05:00
Vlad Mihalcea e9b48a881d Change PreparedStatementSpyConnectionProvider so that it works with any given ConnectionProvider 2016-06-14 13:52:35 +03:00
Vlad Mihalcea 6142f92d2f Improve the PreparedStatement assertion mechanism to rely on Mockito solely 2016-06-14 12:50:43 +03:00
Chris Cranford be93105e9a HHH-10299 - Fix DOM4J entity-mode deprecation warning for Envers audited entities. 2016-06-13 23:29:38 -05:00
Andrea Boriero 0eaf431ef6 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
2016-06-13 19:26:40 -07:00
Andrea Boriero 2ea122aedd HHH-10352 - Fix HBM2DDL does not use described name for foreign key in join inheritance 2016-06-13 16:58:32 -07:00
Andrea Boriero 4afa8fb57d HHH-10352 - Add test for issue 2016-06-13 16:58:32 -07:00
Andrea Boriero 35cefeda2f HHH-10796 - Fix org.hibernate.query.Query<R> setProperties(Map map); set to null parameters not contained in the map 2016-06-13 14:02:47 -07:00
Andrea Boriero 6027d8319e HHH-10796 - Add test for issue 2016-06-13 14:02:47 -07:00
Vlad Mihalcea 8513a55255 HHH-10822 - Wrong signature for SharedSessionContract#setJdbcBatchSize 2016-06-13 18:59:27 +03:00
Andrej Golovnin 28af8cb95a HHH-10835 The hash code calculation of the EntityKey should also include the hash code of the root entity name. 2016-06-13 12:21:40 +01:00
Chris Cranford 5318cef733 HHH-10803 - Fix test to assert based on exception typing. 2016-06-11 16:02:25 -05:00
Chris Cranford 131127a498 HHH-10803 - Fix getParameter methods to be JPA compliant with thrown exception types. 2016-06-11 16:02:24 -05:00
Chris Cranford 42f3028dca HHH-10833 - JPA NoResultException and NonUniqueResultException not thrown from getSingleResult. 2016-06-11 15:56:36 -05:00
Gail Badner ec86d2d446 HHH-10511 : Restore and deprecate org.hibernate.property.access.spi.EnhancedGetterMethodImpl to maintain backward-compatibility 2016-06-10 14:31:01 -07:00
Vlad Mihalcea a599d4fc1d HHH-10797 - PostgreSQL81Dialect does not honor the lock timeout settings
HHH-10799 - Add PostgreSQL 9.5 Dialect which supports the SKIP LOCKED clause
HHH-10816 - SQLServer2005Dialect does not use NOWAIT for aliases
HHH-10817 - AbstractHANADialect should support the NOWAIT directive in the FOR UPDATE clause
2016-06-10 19:22:00 +03:00
Andrea Boriero 3d74c45e1d HHH-10820 - Fix InformationExtractorJdbcDatabaseMetaDataImpl quoted table names 2016-06-10 13:52:55 +01:00
Andrea Boriero c713c56f6c HHH-10820 - Add test for issue 2016-06-10 13:15:55 +01:00
Andrea Boriero 93a1a1f531 HHH-10427 - Modify test 2016-06-09 18:53:52 +01:00
Andrea Boriero 1beb6ec27b HHH-10427 - Fix Checkstyle error 2016-06-09 18:49:45 +01:00
Sanne Grinovero dfa3f52e25 HHH-10427 Make sure to cache Provided services in the fast-access map as well 2016-06-09 11:58:31 -05:00
Sanne Grinovero f7174c9207 HHH-10427 Protect from double initialization and from concurrent destroy actions 2016-06-09 11:58:31 -05:00
Sanne Grinovero b626f289b7 HHH-10427 All access to mutable fields needs lock protection 2016-06-09 11:58:31 -05:00
Sanne Grinovero 5a3260fb02 HHH-10427 Binding to alternative implementations need to be a final field 2016-06-09 11:58:31 -05:00
Gail Badner 9ecc646df2 HHH-10427 - Fix ServiceRegistry creates multiple service instances and returns uninitialized services 2016-06-09 11:58:31 -05:00
Andrea Boriero c1fde98aee HHH-10427 - Fix ServiceRegistry creates multiple service instances and returns uninitialized services 2016-06-09 11:58:31 -05:00
Andrea Boriero 493793a299 HHH-10427 - Add test for issue 2016-06-09 11:58:31 -05:00
barreiro 86727515f4 HHH-10245 - [enhancer] Do not expose ClassPool 2016-06-09 10:52:13 -05:00
barreiro d95cecd91b HHH-10642 - [enhancer] Use INVOKEVIRTUAL instead of INVOKESPECIAL 2016-06-09 10:52:13 -05:00
barreiro 68169968a5 HHH-10511 - drop EnhancedGetterMethod: use GetterMethod / GetterField instead 2016-06-09 10:52:13 -05:00
barreiro c33735108a HHH-10583 - [enhancer] also consider attribute type when finding the right mappedBy value 2016-06-09 10:52:13 -05:00
barreiro 37b9a0c903 HHH-10540 - [enhancer] Add CompositeOwner interface only once 2016-06-09 10:52:13 -05:00
Matthias Kurz 78de650efe HHH-10643 - Attribute 'foreignKeyDefinition' of @javax.persistence.ForeignKey ignored by schema exporter 2016-06-07 11:36:30 +03:00
Dionis Argiri 2abf9ddac4 HHH-10805 - fix hierarchy of PostgreSQL dialects. 2016-06-07 11:17:15 +03:00
Andrea Boriero 30ad787c9e HHH-10802 - Fix Attempt to resolve foreign key metadata from JDBC metadata failed to find column mappings for foreign key 2016-06-06 16:51:57 +01:00
Andrea Boriero e03d4d1f88 HHH-10802 - Add test for issue 2016-06-06 16:51:57 +01:00
Alex Belyaev 816c97613d HHH-9512: Avoid creation of invalid managed -> managed entity mapping in MergeContext when traversing cascade loop 2016-06-06 17:31:08 +03:00
Gail Badner 62ac35213f HHH-10679 HHH-10712 : Fix subselect fetching in load plans
(cherry picked from commit d444be1fdbf3618ce1f52b6ea8b8812fbfd795db)

Conflicts:
	hibernate-core/src/main/java/org/hibernate/loader/plan/exec/process/internal/ResultSetProcessingContextImpl.java
2016-06-02 13:03:43 -07:00
Vlad Mihalcea 545930c39f HHH-1594 - Add on-delete="cascade" support to unidirectional *ToOne relationships. 2016-06-02 16:53:24 +03:00
Martin Simka c579c8b451 HHH-10756 fix procedure name in test 2016-06-02 08:01:24 +03:00
Anthony Foulfoin db6832fc1f HHH-10786 - Add MySQL 5.7 JSON datatype support 2016-06-02 07:52:11 +03:00
barreiro e615d76a26 HHH-10646 - [enhancer] Add support for @MappedSuperclass 2016-06-01 22:16:03 -05:00
Steve Ebersole 3a0824a037 HHH-10287 - Cache keys no longer include the entity type 2016-06-01 20:51:46 -05:00
Andrea Boriero 114ea15b30 HHH-10085 HHH-10143 - Fix issues with Criteria and case expressions 2016-06-01 00:16:01 -05:00
Louis Jacomet 73aa359242 HHH-10664 Remove duplicate cacheAccess.close() invocation 2016-05-31 23:55:23 -05:00
Andrea Boriero 030f442f3c HHH-10372 - Fix Sequence generator for idbag ignores generator parameters 2016-05-31 23:44:52 -05:00
Andrea Boriero a9e4eb4895 HHH-10373 - Add test for issue 2016-05-31 23:44:52 -05:00
Gail Badner 885f76a92f HHH-10757 : select new ..." with CAST( NULL AS ...) fails 2016-05-31 17:13:22 -07:00
Janario Oliveira 8cd51b450a HHH-7355 - Added support to join with of many-to-many relation 2016-05-31 16:57:34 +03:00
Timo Verhoeven 5e8bb78b77 HHH-10780 - Provide a PrimitiveByteArrayTypeDescriptor toString implementation 2016-05-31 12:07:44 +03:00
Timo Verhoeven 455368dccd HHH-9676 - TypeSafeActivator.applyDDL doesn't process composing constraints when @NotNull is present 2016-05-31 07:57:36 +03:00
Gail Badner f2427fa28a HHH-10476 : Getting an entity with composite ID containing a detached entity fails if PersistenceContext contains a managed copy 2016-05-27 15:36:18 -07:00
Brett Meyer 53e044334e HHH-10365 checkstyle 2016-05-26 14:13:54 -04:00
Brett Meyer 69bdf979cb HHH-10365 added OsgiClassLoaderService support for non-container-managed JPA, tweaked method overloading 2016-05-26 12:05:46 -04:00
Kankare Timo 585a8aa757 HHH-10365: Initializing ClassLoaderService in OsgiPersistenceProvider. 2016-05-26 12:05:46 -04:00
Vlad Kuznetsov bf9b3f524d HHH-6781 - Class level @Where annotation is not enforced on collections of that class 2016-05-26 16:23:34 +03:00
Andrea Boriero 80472f6a43 HHH-10513 - Fix locking WARN message logged when query LockMode is NONE 2016-05-26 10:01:55 +01:00
Andrea Boriero 70c6abcbae HHH-10513 - Add test for issue 2016-05-26 10:01:54 +01:00
Vlad Mihalcea 1345d515d2 HHH-10772 - RuntimeException during releaseStatements causes JDBC connection not to be closed 2016-05-26 10:32:43 +03:00
Dgray16 50b7882663 HHH-10766 Resolve mapping 'type' parameter error 2016-05-25 15:45:54 +03:00