Commit Graph

3709 Commits

Author SHA1 Message Date
Christian Beikov ff582903aa HHH-11540 - Test for embeddable type that is only used in a type variable 2017-03-10 17:07:25 +00:00
Sanne Grinovero 6fd6c5a29d HHH-11564 ThreadLocal access in ManagedSessionContext does not need synchronization 2017-03-10 10:56:33 +00:00
Andrei Solntsev ba9d1c779f HHH-11529 - Getting NullPointerException from ScanningCoordinator debug log
Actually URL.toString() calls toExternalForm(), so it has exactly the same effect, but without NPE.
2017-03-09 16:20:21 +02:00
Christian Beikov 55c0d6cdaa HHH-9188 - Testcase for one-to-one jointable with selfjoin and table per class
- add test case
2017-03-09 13:34:33 +02:00
Christian Beikov c088b2fa31 HHH-7406 - Wrong SQL in Joined inheritance if subclasses have fields with same name
- Add test case
2017-03-09 13:13:03 +02:00
Christian Beikov f0cbaef2cd HHH-9638 - Query.getResultList() prepended with dereferencing of no-proxy relation, causes violation of reference equality constraint
- Add test case
2017-03-09 11:46:56 +02:00
Christian Beikov 94cb596a73 HHH-5954 - Test showing that it works 2017-03-09 11:27:36 +02:00
Christian Beikov 00dfc83aeb HHH-11435 - Alias available in WITH clause although not defined yet and generates invalid SQL
- Add unit test
2017-03-09 11:20:13 +02:00
Andrea Boriero 81c25d24f4 HHH-11144 - orphanRemoval not working when other same-table-relations are initialized
- add test for issue
2017-03-09 10:43:27 +02:00
Andrea Boriero 1ced091409 HHH-11559 - Fix tests catching exceptions without re-throwing them 2017-03-08 18:50:34 +00:00
Christian Beikov 17b8d2e294 HHH-11538 - Skip generating joins for entity references used in equality and nullness predicates 2017-03-08 12:38:40 -06:00
Christian Beikov ce32b364b4 HHH-11538 - Testcase that asserts only a single join is generated 2017-03-08 12:38:40 -06:00
Gail Badner d59ac459fa HHH-11196 - Hibernate 5 Bytecode Enhancement Association Management works just in one direction
- add replicating test case
2017-03-08 17:23:41 +02:00
Andrea Boriero d5ac64890c HHH-11549 - Unable to locate MappedSuperclass version attribute when mixing annotations with hibernate mapping files 2017-03-07 16:22:20 +00:00
Andrea Boriero 0f20e51a5e HHH-11549 - Ad test for issue 2017-03-07 16:22:20 +00:00
Andrea Boriero 893e9e45c8 HHH-11536 - Fix unit tests failing on Oracle 2017-03-07 16:01:34 +00:00
Vlad Mihalcea 3dda9d7a54 HHH-11396 - Conversion of Date to LocalDate does not consider timezone difference
- add test case to replicate the actual root cause behind this issue
2017-03-07 16:25:10 +02:00
marcgiffing be74174034 HHH-11509 - Infomix limit handler support for offset
findbugs fix
2017-03-06 15:45:51 -05:00
marcgiffing 71768443bc HHH-11509 - Infomix limit handler support for offset 2017-03-06 15:45:51 -05:00
marcgiffing 0c7da58bda HHH-11509 - Infomix limit handler support for offset
added license information
2017-03-06 15:45:51 -05:00
marcgiffing 51d9bbfc7c HHH-11509 - Infomix limit handler support for offset 2017-03-06 15:45:51 -05:00
marcgiffing 05a13b8b27 HHH-11509 - Infomix limit handler support for offset
code formatting
2017-03-06 15:45:51 -05:00
marcgiffing 0f9d0ab9fc HHH-11509 - Infomix limit handler support for offset 2017-03-06 15:45:51 -05:00
marcgiffing 20314c2193 HHH-11509 - Infomix limit handler support for offset 2017-03-06 15:45:51 -05:00
Nicolai Parlog 2c4ccbc8af Forward IOException in ClassFileArchiveEntryHandler::toClassFile
While the exception itself might not be very helpful (Javassist, for example, can throw rather cryptic ones) including at least makes the visible.
2017-03-06 16:30:03 +02:00
Andrea Boriero 55af30eb13 HHH-11397 - Query parameter binding validation issue 2017-03-06 16:03:05 +02:00
Andrea Boriero dc714695e4 HHH-11511 - QuerySyntaxException when sorting by a column using a JPQL reserved keyword 2017-03-06 15:41:46 +02:00
Andrea Boriero c53939b181 HHH-11510 - NativeQuery#iterate throws QuerySyntaxException instead of UnsupportedOperationException 2017-03-06 14:38:06 +02:00
Gail Badner 4fcc0d228a HHH-9763 - hibernate.cache.default_cache_concurrency_strategy configuration is ignored
- add replicating test case
2017-03-06 13:45:31 +02:00
Andrea Boriero 1d5ef677b6 HHH-11536 - Fix unit tests failing on Oracle 2017-03-03 09:09:46 +00:00
Oliver Breidenbach 0794e103d7 HHH-11078 - Attribute in metamodel is null for overridden property
- Add replicating test case
2017-03-02 16:27:50 +02:00
Andrea Boriero dd895c78b6 HHH-11536 - Fix unit tests failing on Oracle 2017-03-02 13:57:20 +00:00
Oliver Breidenbach 633deeb75e HHH-10842 - Entity graph attribute node is ignored if the entity is mapped by the Primary Key column
- Add test case to replicate the issue
2017-03-02 14:52:48 +02:00
Andrea Boriero e54ce7b266 HHH-11536 - Fix unit tests failing on Oracle 2017-03-02 12:29:13 +00:00
Boris Korogvich ec487d8ace fix typo 2017-03-02 05:53:15 -05:00
rreynolds a1f01bcd64 HHH-10737 - Unrecognized select expression causes a NullPointerException
- Add replicating test case
2017-03-02 12:37:55 +02:00
Johannes Buehler 9d2e3b81b4 HHH-10463 - coalesce with null values and PostgreSQL throws exception 2017-03-02 11:51:57 +02:00
petar.tahchiev e654e6c2c7 HHH-11089 - Naming Strategy Does not affect the user-specified index/foreign-key names
Call the implicit naming strategy regardless if the client has specified foreign key name or not
2017-03-01 17:27:48 +02:00
Samuel Andersson e0da35e5e8 HHH-11532 - Loading extended entity by natural ID of base entity that exists in second level cache throws WrongClassException
- add replicating test case
2017-03-01 15:22:21 +02:00
Chris Cranford 761ea6c941 HHH-9114 - Fix property not found when IdClass properties are mapped both in entity and mapped superclass types. 2017-02-28 11:21:18 -05:00
Chris Cranford 959e3867d1 HHH-9114 - Added test case. 2017-02-28 11:21:18 -05:00
Andrea Boriero e1dbca511d HHH-11470 - Schema update should not try to query sequences for Dialects not supporting them (DB2400Dialect, DerbyDialect, DB2390Dialect) 2017-02-28 13:53:21 +02:00
Andrea Boriero f0016db201 HHH-11477 - HQL query against field marked with @Lob fails on PostgreSQL 2017-02-28 12:25:03 +02:00
Vlad Mihalcea 9a9ef4d027 HHH-11514 - Id is generated on replicated instead of using the one provided
Add possible replicating test case
2017-02-28 12:09:11 +02:00
Chris Cranford bd49676cb6 HHH-2735 - Added test cases. 2017-02-28 00:32:53 -05:00
Gail Badner 7ae3e1c3b7 HHH-11530 : IdentityGeneratorExtendsTest.testIdentifierGeneratorExtendsIdentityGenerator failing on Oracle DBs 2017-02-27 17:59:36 -08:00
Chris Cranford e77d18c0d1 HHH-11502 - Fix NPE. 2017-02-27 10:09:54 -05:00
Russ Tennant 8d726a35b1 Test case for HHH-11502 2017-02-27 10:09:54 -05:00
Andrea Boriero f3dafb3205 HHH-11473 - Refactor MySQLDialect
- move storage engine resolving into constructor
2017-02-27 16:29:02 +02:00
Chris Cranford 39c04f14ae HHH-11455 - Test case. 2017-02-26 23:41:33 -05:00
Andrea Boriero 5e29497d60 HHH-11473 - Fix tests leaving a dirty database 2017-02-25 18:29:38 +00:00
Andrea Boriero bc3032785e HHH-11473 - Fix MySQLStorageEngineTest 2017-02-23 20:18:13 +00:00
Andrea Boriero c6b6d9d242 HHH-11473 - Fix MariaDB dialect 2017-02-21 13:25:09 +00:00
Andrea Boriero 9cb171bfeb HHH-11473 - Fix checkstyle errors 2017-02-21 10:37:16 +00:00
Vlad Mihalcea 91d1f38d95 HHH-11473 - Refactor MySQL Dialects
- Simplify InnoDB deprecated Dialects by just overriding the default storage engine method
2017-02-21 07:58:48 +02:00
Chris Cranford 652aa43427 HHH-11503 - Fix SQL Server 2012 offset/fetch parameter binding. 2017-02-20 11:13:00 -05:00
Vlad Mihalcea 2b79644b63 HHH-11473 - Refactor MySQL Dialects 2017-02-20 15:35:16 +02:00
Gail Badner 55f7f71e04 HHH-10989 - Always resolve CollectionType on load so that unfetched collections have a reference stored in StatefulPersistentContext
HHH-10989 : Shorten test table names
2017-02-16 19:42:44 +00:00
barreiro 077ebbc04f HHH-10989 - Always resolve CollectionType on load so that unfetched collections have a reference stored in StatefulPersistentContext 2017-02-16 19:42:44 +00:00
Christian Beikov 3d6f8eb0ff HHH-11437 - Entity joins are not polymorphic 2017-02-16 16:21:43 +00:00
Christian Beikov 1e8077f0e9 HHH-11437 - Test for issue 2017-02-16 16:20:25 +00:00
Vlad Mihalcea f5606b1f4b HHH-11491 - Add documentation to non-temporary tables bulk-id strategies 2017-02-16 12:49:03 +02:00
Christian Beikov aeb3aee626 HHH-11180 - JPA @ForeignKey still not consistently applied from annotation binding
- Fix ForeignKey support for PrimaryKeyJoinColumn / PrimaryKeyJoinColumns
- Fix ForeignKey support for JoinColumn / JoinColumns
- Fix ForeignKey support for JoinTable when applying value NO_CONSTRAINT.
- Fix ForeignKey support for MapKeyJoinColumn / MapKeyJoinColumns
- Fix ForeignKey support for AssociationOverride / AssociationOverrides
2017-02-15 14:08:09 +02:00
Vlad Mihalcea 7c06d003dc HHH-11457 - Add MariaDB specific Dialects 2017-02-15 12:08:34 +02:00
barreiro 35211ee5f3 HHH-11426 - NullPointerException in getPersistenceUnitUtil().getIdentifier() on detached enhanced entity 2017-02-15 09:08:12 +00:00
Benoit Lateltin 3c2939f0e5 HHH-11484 - Fix LocaleTypeDescriptor to handle Locale.ROOT 2017-02-13 17:00:41 +02:00
Vlad Mihalcea 3adb0d76be HHH-10256 - ClassCastException in ResultSetReturnImpl.java:75 2017-02-13 16:48:43 +02:00
Chris Cranford 550c2e38ff HHH-11237 - Fix isModified so that a null equates empty components when using select-before-update. 2017-02-09 13:21:28 -05:00
Chris Cranford 667136c473 HHH-11237 - Added test case. 2017-02-09 13:21:28 -05:00
bananan 3de0cce47c HHH-11468 - add Javadoc with java.time.* classes mentioned in Create/UpdateTimestamp 2017-02-09 17:24:56 +02:00
Craig Andrews 5553b9df27 HHH-10938 - Fix memory leak when bootstrapping EntityManagerFactory 2017-02-09 11:48:25 +02:00
Christian Beikov 57f156769b Checkstyle fix 2017-02-09 08:13:11 +01:00
Andrea Boriero 8461913c5c HHH-11410 - Fix pgsql failing test 2017-02-08 16:41:25 +00:00
Christian Beikov 753858ce73 Introduced table group joins 2017-02-08 17:23:08 +02:00
Chris Cranford c87194c3fe HHH-11410 - Fixed ManyToMany with an active Filter to apply the condition on the join. 2017-02-08 13:53:00 +00:00
Chris Cranford 10fe238688 HHH-11410 - Added test case. 2017-02-08 13:53:00 +00:00
Mark Rotteveel 3c26ae7302 HHH-11467 Replace incorrect use of StringHelper.WHITESPACE with single space.
This prevents an issue with Firebird where formfeed (\f or 0x0c) is not considered valid whitespace in a query.
2017-02-07 16:48:10 +01:00
Chris Cranford 457a181347 HHH-8768 - Add support for OFFSET/FETCH syntax for SQL Server 2012 LimitHandler/pagination. 2017-02-07 14:10:36 +02:00
Chris Cranford 68e1dfffd2 HHH-11412 - EntityManager/Session setProperty should permit custom properties 2017-02-07 13:47:54 +02:00
Ivan Straka e46956b0f1 HHH-11456 - SequenceHiLoGeneratorTest fails due to wrong select string on SQL Server 2017-02-06 17:58:47 +02:00
Timofey Gorshkov f82dd465b1 HHH-11458 - Optimize the SQL formatter call when iterating through multiple targets 2017-02-06 17:42:41 +02:00
BOOTMGR a38ea758e3 HHH-11455 - Do not use schema name when underlying database doesn't support It
Use JDBC Environment to get the qualified name of the table, instead of directly appending schema name when it is defined explicitly.
2017-02-05 00:24:07 +05:30
Vlad Mihalcea 517fc4c242 HHH-11448 - Fix tests failing on PostgreSQL 2017-02-02 17:22:49 +02:00
Vlad Mihalcea ce95ffe441 HHH-9460 - Removing non-optional bidirectional @OneToOne association with cascade
Add entity name so that the underlying table uses it instead of the nested class name
2017-02-02 13:06:30 +02:00
Andrea Boriero 19e9bfe303 HHH-11262 - Fix checkstyle errors 2017-02-02 09:19:41 +00:00
Vlad Mihalcea f2f6a08853 HHH-9460 - Removing non-optional bidirectional @OneToOne association with cascade 2017-02-02 10:57:23 +02:00
Chris Cranford 3f1111ee5c HHH-10537 - Fixed conflict while merging changes from HHH-10557. 2017-02-01 12:51:06 -05:00
Christian Beikov 5d9414257f Fix for HHH-10537 2017-02-01 12:31:09 -05:00
Christian Beikov 72382b1e08 Test for HHH-10537 2017-02-01 12:31:09 -05:00
Chris Cranford fa3171530c HHH-10577 - Added additional test cases for VALUE() 2017-02-01 11:01:04 -05:00
Christian Beikov 18e8be0037 Fixed HHH-10577 2017-02-01 11:01:03 -05:00
Christian Beikov f9fce8c657 Test for HHH-10577 2017-02-01 11:01:03 -05:00
Evandro Pires da Silva d48f393420 HHH-11262 - Bulk Operations attempt to create temporary tables, but user does not have permission to create table 2017-02-01 13:14:31 +02:00
Andrea Boriero 8f6e4d5675 HHH-11434 - prevent failures in some tests from freezing the whole test suite 2017-02-01 09:31:44 +00:00
Jan Martiska e62d71b76b HHH-11434 - prevent failures in some tests from freezing the whole test suite 2017-02-01 08:56:44 +00:00
Andrea Boriero b19d76f2cc HHH-11418 - SynonymValidationTest failure 2017-01-31 14:18:20 +02:00
barreiro f82c29ff42 HHH-11161 - Prevent initialization of extra lazy collections 2017-01-31 12:12:48 +02:00
Steve Ebersole c70a28252b HHH-11431 - Remove unintended deprecation 2017-01-27 11:01:04 -06:00
Nicholas Kim 56cd7263d1 Fix Typo in MergeContext.java
mergeEntity the *merge* entity
2017-01-26 04:21:04 +09:00
Jan Martiska 95b858bf20 HHH-11419 - QueryAndSQLTest failing on MS SQL Server 2017-01-25 12:12:50 +02:00
Rafael Winterhalter 2868f1bb09 HHH-11420 - Update Byte Buddy to 1.6.6. and use more granular locks on type caches 2017-01-24 17:56:30 +02:00
Yordan Gigov d9e5edc9c0 HHH-11409 - Bind registered collection types using their type handler
Try to replicate issue
2017-01-24 17:34:20 +02:00
Andrea Boriero 33ae0b3b9e HHH-11407 - JPA + JDBC transaction - when a commit fails rollback is executed twice 2017-01-19 13:31:51 +00:00
Andrea Boriero c9df1a9981 HHH-11407 - Add test for issue 2017-01-19 11:08:45 +00:00
Steve Ebersole 2dca5f2ceb HHH-11400 - HHH90000016: Found use of deprecated 'collection property' issue for valid JPQL query 2017-01-18 21:37:25 -06:00
Craig Andrews 8361f794bc HHH-11284 - Test case 2017-01-18 18:55:23 -06:00
barreiro 8fc0bf5202 HHH-11284 - HHH-11404 - Fix enhancement in cases where there is some sort of inheritance 2017-01-18 18:55:23 -06:00
barreiro 4a3dee1588 HHH-11242 - [enhancer] load class on isolated class pool to avoid it being frozen 2017-01-18 18:55:23 -06:00
Andrea Boriero c1093d533e HHH-11395 - ServiceRegistry#getService(...) throws NPE when service initiator returns null 2017-01-18 18:55:04 -06:00
Andrea Boriero c1d8a3e426 HHH-11395 - Add test for issue 2017-01-18 18:55:04 -06:00
Andrea Boriero a506f53a5c HHH-11376 - Malformed SQL query sent to SQL Server with left outer join and pessimistic lock 2017-01-18 23:37:27 +00:00
Andrea Boriero 5f0ae6fcb7 HHH-11376 - Add test for issue 2017-01-18 23:37:27 +00:00
Steve Ebersole ed4e3f50e7 HHH-10858 - Could not find matching type descriptor for requested Java class [...]; using fallback 2017-01-18 14:52:37 -06:00
Steve Ebersole 7af60b7c5a HHH-10858 - Could not find matching type descriptor for requested Java class [...]; using fallback 2017-01-18 14:45:44 -06:00
Chris Cranford 5ac46eb703 HHH-11383 - Removed InvalidWithClauseException check when join alias != table alias 2017-01-18 14:26:13 -05:00
Max Tian 0693b54256 HHH-10183 - Mapping for NVARCHAR in SqlServer not working with native queries; org.hibernate.MappingException: No Dialect mapping for JDBC type: -9 2017-01-18 14:30:20 +02:00
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