Commit Graph

3807 Commits

Author SHA1 Message Date
Andrea Boriero cf6d1ddafd HHH-11716 - @Transient annotation not respected when class defines 'get' and 'is' accessor variants 2017-05-16 14:09:03 +03:00
lpradel 0e83628c92 HHH-11546 Add support for SAP NetWeaver as JTA Platform 2017-05-16 12:45:19 +03:00
Gail Badner cab613de11 HHH-11740 - Fix test case to avoid pessimistic locking exception 2017-05-15 14:38:22 -07:00
Vlad Mihalcea 733f55f362 HHH-11740 - Default MultiTableBulkIdStrategy for DB2 does not work with connection pools
- Made test run on H2, Oracle, SQL server, MySQL and PostgreSQL
2017-05-15 18:50:31 +03:00
Vlad Mihalcea 386b04872f HHH-11740 - Default MultiTableBulkIdStrategy for DB2 does not work with connection pools
- Fix tests on PostgreSQL
2017-05-15 17:55:22 +03:00
Gail Badner 6a0a6d7562 HHH-11740 : Skip test for H2 2017-05-12 14:24:18 -07:00
Gail Badner 061a1cae31 HHH-11740 : Default MultiTableBulkIdStrategy for DB2 does not work with connection pools 2017-05-12 13:49:29 -07:00
Gail Badner 36d09411fb HHH-11740 : test case 2017-05-12 13:48:03 -07:00
Andrea Boriero 93559d2e60 HHH-11374 - ConcurrentStatisticsImpl#getSecondLevelCacheStatistics() throws NPE if second level cache is not activated 2017-05-12 11:15:31 +03:00
Andrea Boriero 5ff2289da4 HHH-11700 - Deprecate three org.hibernate.engine.spi.SessionFactoryImplementor methods 2017-05-10 18:16:19 +03:00
Vlad Mihalcea c434d9a9b1 HHH-11500 - Provide the cause of the error when validating @Loader named queries 2017-05-10 16:12:03 +03:00
Vlad Mihalcea d80c6ac0f9 HHH-11600 - Sap HANA PreparedStatement implements CallableStatement and is treated as such by Hibernate 2017-05-10 14:11:15 +03:00
João Carlos Heringer Moreira 1c34914455 HHH-11703 - Entity with Natural ID not being cached in the persistenceContext, causing extra queries 2017-05-08 16:44:27 +03:00
Rafał Osiecki 86dd0d1278 HHH-11728 - Typo in PooledConnections 2017-05-08 12:10:06 +03:00
Andrea Boriero 374a2cae09 HHH-11647 - Fix failing tests 2017-05-06 18:06:01 +01:00
Andrea Boriero f9231bed0d HHH-11650 - Parenthesis are interpreted in WHERE conditions when using paging and SQL Server 2017-05-05 12:19:39 -04:00
Andrea Boriero 17fd76ad21 HHH-11650 - Add test for issue 2017-05-05 12:19:39 -04:00
Danny Casady 562f09d14b HHH-11725 - Fix javadoc typo 2017-05-05 12:14:15 -04:00
ChristophDreis f85737cb0b HHH-11647 - Use ALTER TABLE IF EXISTS on Postgres 2017-05-04 18:08:40 +03:00
Bas van Schaik 72e0d593b9 HHH-11718 - Fix various alerts reported by lgtm.com
Fpr more details:

06f0c3acb2/files/hibernate-core/src/main/java/org/hibernate/tool/hbm2ddl/SchemaUpdateTask.java (V218)

06f0c3acb2/files/hibernate-core/src/main/java/org/hibernate/boot/archive/internal/ExplodedArchiveDescriptor.java (V149)

06f0c3acb2/files/hibernate-core/src/main/java/org/hibernate/boot/archive/internal/JarFileBasedArchiveDescriptor.java (V74)
2017-05-04 12:31:00 +03:00
Arnold Galovics 2d4600bbc7 HHH-11111 - Hibernate does not correctly resolve embeddable in the metamodel
Add test case that proces thaat the issue does not replicate
2017-05-03 18:27:47 +03:00
Richard Bradley 3a813dcbb4 HHH-11646 revert errant after -> afterQuery search and replace 2017-05-03 11:54:37 +03:00
Gail Badner 1752da008e HHH-11712 - Minor changes to test case 2017-05-02 13:44:04 -07:00
Vlad Mihalcea 8ebf3039ef HHH-11712 - PostgreSQL does not support positive/negative initial sequence values for descending/ascending sequences unless MAXVALUE/MINVALUE is defined as well 2017-05-02 18:16:33 +03:00
Vlad Mihalcea f779df9fa3 Add a JPA-complaint contains test to assert the use case descriebed in the following forum thread
https://forum.hibernate.org/viewtopic.php?f=1&t=1044231
2017-05-02 17:49:48 +03:00
Gail Badner 78d0c22c0b HHH-11709 : Fix typo 2017-04-28 19:40:14 -07:00
Gail Badner bb0a4b6e6f HHH-11709 : NoopOptimizer skips negative values and 0 when it has a positive incrementSize 2017-04-28 19:31:30 -07:00
Gail Badner d211b41319 HHH-11709 : test case 2017-04-28 19:30:17 -07:00
Gail Badner dfbeb1ce37 HHH-5933 : NoopOptimizer ignores negative allocationSize; uses default of 1 instead 2017-04-28 19:08:27 -07:00
Gail Badner 33a28188c6 HHH-5933 : test case 2017-04-28 19:07:39 -07:00
Andrea Boriero 74d4eb61a9 HHH-11660 - Deprecate org.hibernate.mapping.RelationalModel 2017-04-26 14:00:11 +01:00
Vlad Mihalcea 020414e1aa HHH-11634 - ActionQueue#InsertActionSorter fails to generate right order
Use the same object for both the remove and the add operations
2017-04-19 21:02:02 +03:00
Vlad Mihalcea 84d61690c5 HHH-11634 - ActionQueue#InsertActionSorter fails to generate right order
Prove that the issue is caused by an improer bidirectional association side synchronization
2017-04-19 17:00:42 +03:00
Vlad Mihalcea 1772baf67e Add missing class names and fix documentation pointing to missing property 2017-04-18 15:18:59 +03:00
Andrea Boriero a630809857 HHH-11635 - MySQLSkipAutoCommitTest fails when run on MariaDB 2017-04-14 14:47:07 +02:00
Andrea Boriero 71cfef8338 HHH-11542 - Fix tests 2017-04-14 10:51:57 +02:00
Steve Ebersole 97942914c8 HHH-11542 - Allow the auto-commit resolution to be configurable for RESOURCE_LOCAL transactions (default methods) 2017-04-14 10:51:57 +02:00
Steve Ebersole db528238d8 HHH-11542 - Allow the auto-commit resolution to be configurable for RESOURCE_LOCAL transactions 2017-04-14 10:51:57 +02:00
Vlad Mihalcea ca103dcb28 HHH-11542 - Allow the auto-commit resolution to be configurable for RESOURCE_LOCAL transactions 2017-04-14 10:51:57 +02:00
Andrea Boriero 23aad981a8 HHH-11593 - Remove mockito dependencies from hibernate-testing 2017-04-14 08:44:47 +02:00
Gail Badner 561941c486 HHH-9663 - Fix orphan removal cascade for one-to-one mappings. 2017-04-13 16:25:38 -07:00
Chris Cranford 0677bb365f HHH-9663 - Fix orphan removal cascade for one-to-one mappings. 2017-04-12 23:05:34 -07:00
Chris Cranford 63e6793d8f HHH-9663 - Fix orphan removal cascade for one-to-one mappings. 2017-04-12 23:05:34 -07:00
Chris Cranford 85732409ee HHH-9663 Added test cases. 2017-04-12 23:05:34 -07:00
Gail Badner 19e585bf9d HHH-11499 : Add a new DB2 dialect that uses "cross join" for cross joins instead of "," 2017-04-12 22:09:59 -07:00
Vlad Mihalcea 442bf225c4 HHH-11601 - Fix tests failing on Oracle 2017-04-12 12:15:27 +03:00
Vlad Mihalcea 6a59994b64 HHH-11617 - Statement leak in case of 'SQLGrammarException: could not extract ResultSet'
- increase timeout period as CI servers are rather slow
2017-04-12 07:17:57 +03:00
jvdvTechno 51e92b1715 HHH-11625 - Namespace uses physicalNamingStrategy.toPhysicalCatalogName() for schema name 2017-04-11 17:25:53 +02:00
Andrea Boriero a01b05fdf0 HHH-11625 - Add test for issue 2017-04-11 17:25:53 +02:00
Vlad Mihalcea 1aed1b50f7 HHH-3628 - Hilo optimizer problem in case of multiple threads accessing the sequence table
- replace the Semaphore with two CountDownLatches that shouldd deliver a more predictable outcome
2017-04-11 17:58:44 +03:00
Andrea Boriero eef8a48ce4 HHH-11617 - Statement leak in case of 'SQLGrammarException: could not extract ResultSet' 2017-04-11 17:03:30 +03:00
Yordan Gigov f8570017df HHH-11409 - Bind registered collection types using their type handler 2017-04-11 13:53:56 +03:00
Andrea Boriero e8d7279736 HHH-11596 - @OneToOne association with @JoinTable ignores optional attribute 2017-04-11 12:49:48 +03:00
Andrea Boriero be0a273c7c HHH-11579 - Disable Query parameter validation when a Session is unwrapped from an EntityManager 2017-04-06 16:27:50 +03:00
Vlad Mihalcea c15fa77f0f HHH-11616 - Refactor org.hibernate.jpa.test.lock.LockTest
HHH-8001 - Apply query timeouts to Oracle follow-on locking
2017-04-06 16:02:29 +03:00
Andrea Boriero 68fa5d8f9e HHH-11612 - SINGLE_TABLE associated entity query missing restriction of DiscriminatorColumn - reverting HHH-11375 2017-04-06 11:04:18 +01:00
Andrea Boriero 65f420efec HHH-11602 - Session close counter statistic not updated when using Hibernate in JPA mode 2017-04-06 10:59:24 +01:00
Andrea Boriero 71c11a8d4d HHH-11602 -Add test for issue 2017-04-06 10:59:24 +01:00
Andrea Boriero 5fd186a010 HHH-10654 - Fix mariadb and pgsql failing tests 2017-04-04 19:32:32 +03:00
DrBAXA 19c03e0c5a HHH-10728 - NullPointerException when using CriteriaBuilder.selectCase with CriteriaBuilder.equal 2017-04-04 13:34:37 +03:00
Vlad Mihalcea 2a9c0fe0dd HHH-10654 - LockOptions.SKIP_LOCKED semantics implementation on MSSQL 2017-04-03 08:17:50 +03:00
Vlad Mihalcea ae23ecd937 HHH-11593 - Fix test issues in SQL Server 2017-03-29 17:13:30 +03:00
Vlad Mihalcea e6d2ff4ac4 HHH-11598 - Use the default catalog when scanning the tables for hbm2ddl schema migration 2017-03-28 19:16:40 +03:00
Andrea Boriero 1ce9e24b26 HHH-11591 - Nullable check should not be skipped for OneToOne annotated with @NotFound(action = NotFoundAction.IGNORE) 2017-03-28 11:41:06 +01:00
Andrea Boriero 7a10764d2b HHH-11591 - Add test for issue 2017-03-28 11:40:57 +01:00
Richard Barnes daa48b7db9 HHH-3628 - Hilo optimizer problem in case of multiple threads accessing the sequence table 2017-03-27 12:00:54 +03:00
Gail Badner 28f3148f7b HHH-11459 : Add entity names to avoid Oracle test failures 2017-03-24 19:51:52 -07:00
Gail Badner 0b6ce73fcc HHH-11459 - Always resolve unloaded, lazy collection in enhanced entity when cascading; added comments 2017-03-24 19:15:21 -07:00
barreiro 41bd06266d HHH-11459 - Do not fetch a collection on cascade, resolve it instead 2017-03-24 18:09:50 -07:00
barreiro 2779ebd8f0 HHH-11459 - Test case 2017-03-24 18:09:50 -07:00
barreiro a5c7087316 HHH-11576 - Process unfetched collections on Flushvisitor to determine reachability 2017-03-24 18:09:50 -07:00
barreiro 8f495505e5 HHH-11576 - Test case 2017-03-24 18:09:50 -07:00
Naros 8bc584e3d2 HHH-10062 - Fix for ScrollableResults with join fetch reuses proxy rather than loading actual object. 2017-03-24 10:36:47 +02:00
Chris Cranford 23725aeaa4 HHH-11592 - Fix incorrect reference to non-deprecated setting. 2017-03-23 15:36:49 -04:00
Andrea Boriero 1f9adce32f HHH-10831 - Fix checkstyle error 2017-03-23 10:46:15 +00:00
Vlad Mihalcea acae69ffaf HHH-11585 - Batch ordering fails for bidirectional one-to-one associations
- take into consideration legacy one-to-one mappings with composite ids as well
2017-03-23 08:15:46 +02:00
Harsh Panchal a23a9a81e3 HHH-11569 - Return only distinct elements when query is hinted with EntityGraph 2017-03-22 16:25:56 +02:00
Vlad Mihalcea c25757275b HHH-11587 - Reordering items in List throws a constraint violation
Add replicating test case
2017-03-22 14:33:21 +02:00
Andrea Boriero 0eab02aaa9 HHH-11580 - EnversPreCollectionRemoveEventListener fails because EntityManager is closed when using JPA + JTA + Envers 2017-03-22 13:09:47 +02:00
Troeger, Martin (K-SIPB-1/3) 084ee33303 HHH-11557 - DB2 gets confused with numerical parameters in nullif function DB2Dialect 2017-03-22 12:05:07 +02:00
Vlad Mihalcea f90845c30c HHH-11585 - Batch ordering fails for bidirectional one-to-one associations 2017-03-22 11:24:14 +02:00
RunninglVlan c8cbb8f0c6 HHH-11584 - Made parameter names of Restrictions#between more readable 2017-03-21 18:03:17 +02:00
Arnold Galovics d1dc9146c3 HHH-10831 - Hibernate method to unproxy a HibernateProxy 2017-03-21 17:15:46 +02:00
Gail Badner db885b85bb HHH-11143 : Log a warning if @Cache / @Cacheable specified on non-root entities 2017-03-15 23:09:56 -07:00
Andrea Boriero 31fbdbb0f0 HHH-11570 - Hibernate Envers listeners fail because EntityManager is closed when using JPA/JTA/Hibernate 5.2.8/Envers 2017-03-14 23:07:56 +00:00
Gail Badner a8055b3b52 HHH-11506 : Fix Javadoc 2017-03-13 22:04:26 -07:00
barreiro aaebcdf454 HHH-11506 - Fix update of lazy attributes when there are attributes not loaded
HHH-11506 - Deprecate methods

HHH-11506 : Added original TypeHelper#findModfied and deprecated; changed deprecated methods to call the new methods.
2017-03-13 17:38:43 -07:00
Gail Badner 12a1b3c225 HHH-11516 : Level two cache may not be enabled when using @Cacheable without/instead of @Cache 2017-03-13 14:59:55 -07:00
Gail Badner 640680fcbc HHH-11516 : test case 2017-03-13 14:59:55 -07:00
Andrea Boriero 54cd8eb0a9 HHH-11563 - Avoid calling multiple times org.hibernate.mapping.Component#getComponentClass() during the PojoComponentTuplizer creation 2017-03-13 19:39:08 +00:00
Andrea Boriero f120cd26df HHH-11555 - AbstractSharedSessionContract doesn't restore ExceptionConverter after de-serialization 2017-03-13 18:02:19 +00:00
Andrea Boriero d9ef8fc366 HHH-11555 - Add test for issue 2017-03-13 18:02:19 +00:00
Chris Cranford 549e712f1f HHH-11568 - Wrap antlr-parser exceptions as QueryException. 2017-03-13 12:00:21 -04:00
Chris Cranford 4bd5c8a730 HHH-11568 - Added test case. 2017-03-13 12:00:21 -04:00
Chris Cranford 9ae391436a HHH-11554 - Enable super interfaces traversal for getter/setter methods. 2017-03-13 14:59:55 +00:00
Andrea Boriero fab264a8b2 HHH-11554 - Added test case 2017-03-13 14:59:36 +00:00
Chris Cranford 3398175ab3 HHH-11554 - Added test case. 2017-03-13 14:59:36 +00:00
Christian Beikov 1273aaffd6 HHH-11540 - Fix for registering embeddable with actual component type 2017-03-10 17:07:25 +00:00
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