Commit Graph

3494 Commits

Author SHA1 Message Date
Craig Andrews 916a93ada5 HHH-11293 - Consider enhanced entities with collections as being not unequivocally non-dirty 2016-12-12 17:45:44 +02:00
Craig Andrews f7bb312f90 HHH-11307 - Throw a sensible exception if the Enhancer cannot find the .class file 2016-12-12 15:20:39 +02:00
Craig Andrews 1a36ff0b3e HHH-11294 - NPE in org.hibernate.jpa.internal.util.PersistenceUtilHelper.isInitialized(PersistentAttributeInterceptable) 2016-12-08 10:31:47 +02:00
Jan Martiska cff4ea1ce6 HHH-11295 - Some improvements to EntityJoinTest 2016-12-07 17:47:40 +02:00
Jan Martiska a369120504 HHH-11315 - EnhancerTest fails on Oracle databases 2016-12-07 15:51:14 +02:00
Jan Martiska eaf5b10cf1 HHH-11314 - BasicHibernateAnnotationsTest.testInheritFiltersFromMappedSuperclass fails on MS SQL Server 2016-12-07 14:05:14 +02:00
Andrea Boriero fc7f0fca73 HHH-11305 - @OneToOne association, Nullable check does is not skipped for @NotFound(action = NotFoundAction.IGNORE) 2016-12-07 12:40:43 +02:00
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