Commit Graph

3543 Commits

Author SHA1 Message Date
Andrea Boriero 34d92507c9 HHH-11375 - SINGLE_TABLE associated entity query missing restriction of DiscriminatorColumn 2017-01-18 11:36:07 +00:00
Christian Beikov 4d5c66c80b HHH-11375 - Add test 2017-01-18 11:35:52 +00:00
Sven Haster 904335a369 HHH-10561 - Join on treated root not rendered in HQL 2017-01-18 13:01:01 +02:00
Christian Beikov 349df983f0 Test and fix for HHH-11401 2017-01-18 10:10:39 +00:00
Gail Badner 122f00f30c HHH-11173 : Change CollectionType#renderLoggableString to return '<uninitialized>' when collection is uninitialized 2017-01-17 21:40:00 -05:00
barreiro 4d6cda1548 HHH-11173 - Fix text serialization of uninitialized lazy attributes 2017-01-17 19:13:05 -05:00
Andrea Boriero 4dad087b39 HHH-11393 - Hibernate/JPA CriteriaQuery trim function generate wrong SQL 2017-01-17 18:00:11 +02:00
Andrea Boriero c0d5fe9153 HHH-11236 - JPA hbm2ddl auto-generation creates ddl with invalid syntax for Unique Key with any MySQLDialect 2017-01-17 17:28:07 +02:00
Sanne Grinovero 570beaf7fb HHH-11394 Custom WildFly modules include a duplicate dependency on Javassist 2017-01-17 11:33:45 +00:00
Steve Ebersole 71ec8907f6 HHH-11370 - Consider making javax.enterprise:cdi-api dependency "provided" 2017-01-12 21:53:54 -06:00
Gail Badner 99a033c21c HHH-11202 : IllegalAccessException on Embeddable ID after serializing Getter in cache key 2017-01-12 09:36:50 -08:00
Rafael Winterhalter 4a32f1a0d5 Update Byte Buddy to v1.6.0. Use cache for type storage to avoid leaks. 2017-01-12 12:40:50 +02:00
Vlad Mihalcea 491d7341ad HHH-11377 - ReflectHelper#getConstantValue should consider digits as well 2017-01-10 13:51:32 +02:00
Vlad Mihalcea 2b59aadc94 HHH-11236 - JPA hbm2ddl auto-generation creates ddl with invalid syntax for Unique Key with any MySQLDialect
Change test configuration to use update instead of create-drop
2017-01-10 09:08:44 +02:00
Vlad Mihalcea 22548f1127 HHH-10183 - Mapping for NVARCHAR in SqlServer not working with native queries; org.hibernate.MappingException: No Dialect mapping for JDBC type: -9
Restrict test case for SQL Server only
2017-01-09 17:13:36 +02:00
Vlad Mihalcea 8f5bc492e8 HHH-11236 - JPA hbm2ddl auto-generation creates ddl with invalid syntax for Unique Key with any MySQLDialect
Add replicating test case that works just fine
2017-01-09 16:07:52 +02:00
Vlad Mihalcea 2a441d7f2d HHH-10183 - Mapping for NVARCHAR in SqlServer not working with native queries; org.hibernate.MappingException: No Dialect mapping for JDBC type: -9
Add replicating test case
2017-01-09 13:32:09 +02:00
Chris Cranford 9528d6c00c Checkstyle fix. 2017-01-06 10:00:08 -05:00
Gunnar Morling 7d3788c76a HHH-11309 Marking OSGi package imports for ByteBuddy as optional 2017-01-02 17:57:28 +01:00
lsiu 56f7466d52 Fix HHH-11352 - the Pattern at buildShallowIndexPattern where "wordBoundary==true" should wrap the pattern properly with '\b' 2016-12-22 13:09:11 -05:00
Arnold Galovics dd9c68a862 HHH-11134 StringIndexOutOfBoundsException in BooleanTypeDescriptor fix 2016-12-22 13:01:33 -05:00
Radim Vansa 4ceb71f08a Prevent NPE when running with log on trace level 2016-12-22 12:40:25 +01:00
Chris Cranford f26488bc85 HHH-4712 - Fix identifier column mappings when entities use non-identifier properties named id. 2016-12-21 21:40:59 -05:00
Chris Cranford 1f090f3731 HHH-4712 - Added test case. 2016-12-21 21:40:59 -05:00
Andrea Boriero 318473e59c HHH-11278 - setMaxResult(0) should return an empty List 2016-12-19 22:51:06 -06:00
Andrea Boriero d4d1a6b8d4 HHH-11278 - Add test for issue 2016-12-19 22:51:06 -06:00
Gail Badner 3a1cbf3280 HHH-11289 : Lazy-initializing a static Method and making accessible not thread-safe 2016-12-19 20:32:54 -08:00
Gail Badner c3d1573fdf HHH-11241 : checkstyle fixes
(cherry picked from commit 3805752731)
2016-12-19 20:26:22 -08:00
Gail Badner 7469df8da1 HHH-11241 : Missing column when executing HQL and criteria query with secondary table 2016-12-19 17:00:05 -08:00
Gail Badner 28942c3f67 HHH-11241 : Missing column when executing HQL and criteria query with secondary table 2016-12-19 17:00:05 -08:00
Steve Ebersole 3906816ee2 HHH-11274 - EntityManagerFactoryImpl.getIdentifier uses deprecated version of getIdentifier 2016-12-19 16:36:48 -06:00
Christian Beikov a2781e6654 Fix for HHH-11340 2016-12-19 15:20:46 +00:00
Christian Beikov 7dc7fbe27f Testcase for HHH-11340 2016-12-19 15:20:34 +00:00
Chris Cranford 087729c023 HHH-11324 - Fix LimitHandler parsing of subqueries in the select clause for SQLServer2005Dialect. 2016-12-16 12:52:50 -05:00
Chris Cranford db1dfd6908 HHH-11324 - Added test cases. 2016-12-16 12:51:22 -05:00
Chris Cranford 1304541d94 HHH-11084 - Fix invalid SQL used in test cases. 2016-12-16 12:50:24 -05:00
Gail Badner 54f3409b41 HHH-11328 : Persist of transient entity in derived ID that is already in merge process throws javax.persistence.EntityExistsException 2016-12-15 11:57:52 -08:00
Andrea Boriero 9976edc853 HHH-11183 - Mixed line endings in schema creation script 2016-12-14 17:56:18 +02:00
stasal b2df137ed6 HHH-11337 - Incorrect SQL generated when use both left join with unrelated entity and implicit join to another entity in select-clause 2016-12-14 16:24:38 +02:00
leonliao f62d0d448c HHH-11319 - The dirtyPropertyNames content is NOT logged properly 2016-12-14 14:20:08 +02:00
Vlad Mihalcea d3dd28e474 HHH-11338 - Apply HHH-11194 fix to Dialect subclasses 2016-12-14 13:52:26 +02:00
Vlad Mihalcea 0bd7b8eac1 HHH-4959 - Concurrent HQL parsing blocks on ReflectHelper.classForName()
Exclude JPQL and Criteria API aliases when searching for a Java constant value
2016-12-14 10:05:30 +02:00
Rafael Winterhalter 159bc99a36 HHH-11321: fixes resolution of class names via build plugins 2016-12-14 08:55:01 +02:00
Jan Martiska e10d87085d HHH-11335 skip ByteArrayIdTest, PrimitiveByteArrayIdTest on Oracle 2016-12-12 20:18:45 -08:00
Jan Martiska be39577188 HHH-11332 skip some tests from QueryAndSQLTest and QueryTest on Sybase 2016-12-12 19:58:46 -08:00
Jan Martiska c393853308 HHH-11331 fix SQLLoaderTest on DB2 2016-12-12 19:38:38 -08:00
Gail Badner 87fe30b83b HHH-11330 : Skip IdentifierGeneratorWithNaturalIdCacheTest on dialects that do not support identity columns 2016-12-12 19:16:14 -08:00
Gail Badner b4a9be0adc HHH-11329 fix tests using too long identifiers 2016-12-12 16:08:24 -08:00
Jan Martiska a4cf282070 HHH-11329 fix tests using too long identifiers 2016-12-12 15:33:33 -08:00
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