Commit Graph

3999 Commits

Author SHA1 Message Date
Jonathan Bregler 27490657c1 HHH-12302: Schema creation uses non-unicode string types on SAP HANA
- add Parameter hibernate.dialect.hana.use_unicode_string_types that allows
  switching the database string types to unicode (nvarchar, nchar, nclob)
2018-02-19 17:00:47 +02:00
Andrea Boriero aaa8c65938 HHH-12059 HHH-11440 HHH-11286 HHH-10333 - hbm2ddl.auto=validate and hbm2ddl.auto=update do not work with Oracle and SQLServer when Jdbc driver Connection implementation does not implement getSchema() 2018-02-19 13:33:57 +02:00
Vlad Mihalcea f7416c428f HHH-12294 - Regression after fixing HHH-12064
Add test case and fix

HHH-12291 - NullPointerException when deleting subentity with @ManyToOne to other Entities

Add a replicating test case
2018-02-14 17:20:58 +02:00
Andrea Boriero d2b3471023 HHH-12141 - Fix test failing on PostgreSQL 2018-02-13 15:38:05 +00:00
Andrea Boriero 848217146c HHH-12289 - One call of the SessionImpl#listeners( ) method from SessionImpl#autoFlushIfRequired() is useless. 2018-02-13 13:56:10 +00:00
Vlad Mihalcea 99b7f7e9b8 HHH-12141 - SQL insert in stateless session causes javax.persistence.TransactionRequiredException 2018-02-13 15:10:58 +02:00
Chris Cranford ce3818afe8 HHH-8916 - Allow CTE queries to be translated by SQL Server LimitHandler impl. 2018-02-13 15:10:43 +02:00
Yanming Zhou 839433991f HHH-12280 - Resolve {alias} in @Formula like Restrictions.sqlRestriction() 2018-02-13 15:10:28 +02:00
Andrea Boriero 6bf2869355 HHH-12271 - SchemaDropperImpl does not drop constraints with IF EXISTS 2018-02-05 17:37:54 +00:00
Andrea Boriero e92f350e22 HHH-12271 - Add test for issue 2018-02-05 17:37:39 +00:00
Peter Holvenstot 4cfb8b61cc HHH-12114 - Union-select aliases not injected before "clazz_" conditions in HQL query 2018-02-05 18:53:33 +02:00
Vlad Mihalcea f9b4430209 HHH-12107 - ClassCastException when using L2Cache with "structured_cache"=true 2018-02-01 17:09:33 +02:00
lrcuhuh 1f05afa2aa HHH-9933 - Uninitialized PersistentSet with lazy="extra" doesn't respect added elements 2018-02-01 16:27:25 +02:00
Jonathan Bregler ba6c304fd9 HHH-12203: NUMERIC column type is not handled correctly on HANA
https://hibernate.atlassian.net/browse/HHH-12203
2018-02-01 15:58:21 +02:00
Andrew Guibert 7fabb584ef HHH-11571 - JTA platform for WebSphere Liberty and OpenLiberty 2018-02-01 14:39:06 +02:00
Vlad Mihalcea 3fb0ca09e7 HHH-12034 - According to JPA, a Proxy should be loaded even when accessing the identifier 2018-01-31 18:26:16 +02:00
Andrea Boriero ed5a2496d7 HHH-12157 - TableGenerator defined on one class is not visible on another
(cherry picked from commit 8ae3dc4078597c69588ca8237591f1eab64c6bd7)
2018-01-31 14:27:16 +00:00
Andrea Boriero 7c0f8474f5 HHH-12157 - Add test for issue
(cherry picked from commit f40a6cc0f8fd0ccb03387beb5dac9d9bde846c4d)
2018-01-31 14:27:16 +00:00
Steve Ebersole 8acebf7df8 HHH-12096 - Problem finding correlated getter-method for field access 2018-01-31 12:31:31 +02:00
Bruno P. Kinoshita ec5c9ce7e6 HHH-12258: mask JPA JDBC properties and Hibernate properties related to credentials 2018-01-30 16:01:27 +02:00
Réda Housni Alaoui dbd7135aa6 HHH-9965 : Pagination ignored on collection fetch join: Add the ability to throw an exception instead of logging a warn
(cherry picked from commit b711e14a6c)
2018-01-29 16:38:21 -08:00
Andrea Boriero d34f02606a HHH-12256 - org.hibernate.test.lazyload.JtaLazyLoadingTest is not using JTA 2018-01-25 19:38:40 +00:00
Andrea Boriero ea6b90c053 HHH-12211 - Test failure on MariaDB when the database charset is configured to UTF8 2018-01-25 13:11:30 +00:00
Andrea Boriero 43cae5f92a HHH-12212 - Derived Identifiers component column size not applied 2018-01-25 12:54:43 +00:00
Andrea Boriero c5535aa861 HHH-12212 - Add test for issue 2018-01-25 12:54:32 +00:00
Andrea Boriero 9962cf9e8e HHH-5757 - OneToOne SQL missing parameter 2018-01-25 12:12:10 +00:00
Vlad Mihalcea 0a79454773 HHH-11845 - Warn user when multiple persistence-units use the same name
Fix checkstyle issues
2018-01-25 11:44:18 +00:00
Vlad Mihalcea e8e94adbba HHH-11845 - Warn user when multiple persistence-units use the same name 2018-01-25 11:44:07 +00:00
Gail Badner 4cd79d477b HHH-12150 : Move tests to org.hibernate.test.jpa.mapkeycolumn 2018-01-12 18:51:09 -08:00
Gail Badner 71834d0656 HHH-12150 HHH-10575 : Add test for HHH-10575; add @TestForIssue to tests
(cherry picked from commit 794c784c0d)
2018-01-12 18:22:29 -08:00
Gail Badner 235ab5d805 HHH-12150 - @MapKeyColumn referring to otherwise non-mapped column
(cherry picked from commit 8c2a683356)
2018-01-12 18:17:33 -08:00
Steve Ebersole 2c318af50a HHH-12150 - @MapKeyColumn referring to otherwise non-mapped column
(cherry picked from commit 42b8e77801)
2018-01-12 18:17:13 -08:00
Gail Badner 41a75ddf2d HHH-12075 : SQLQuery.executeUpdate() ignores SQLQuery.setTimeout()
(cherry picked from commit 712fb477e7)
2018-01-09 00:57:23 -08:00
Gail Badner 78f3844b4c HHH-12075 : test case
(cherry picked from commit 489bdcd6fa)
2018-01-09 00:44:39 -08:00
Andrea Boriero 5111a468c4 HHH-11913 : Schema generation ignores index DESC/ASC order 2017-12-13 06:19:01 -06:00
Andrea Boriero 8b313976d9 HHH-11913 : Add test for issue 2017-12-13 06:19:01 -06:00
Jonathan Bregler 7b59cb2f8d HHH-12132: HANA boolean type mapping doesn't work for existing schema definitions
- introduce parameter hibernate.dialect.hana.use_legacy_boolean_type to enable
  switching between new and legacy behavior.
2017-12-12 16:45:48 -05:00
Chris Cranford a0f430a94d Checkstyle fixes. 2017-12-12 13:40:29 -05:00
Chris Cranford 6c1948b6b3 HHH-12159 - Fix Warning HHH000274 when using Formula with a string-based size constrained property. 2017-12-11 18:05:27 -05:00
Chris Cranford e3cc2d78e9 HHH-12119 - Fix NameQueryTupleTransformer discarding alias name case. 2017-12-11 12:08:38 -05:00
Jonathan Bregler db2e3906ab HHH-12138: HANA dialect doesn't support procedure parameter mode REF_CURSOR 2017-12-11 14:43:02 +02:00
Vlad Mihalcea 55ab0d5677 Add test to check if persisting a @OneToOne child entity which has @MapsId works when referencing a parent entity 2017-12-06 11:56:58 +02:00
Chris Cranford 0dc788f42f HHH-12062 - Make sure AttributeAccessor annotation is read. 2017-12-05 09:41:55 +01:00
Chris Cranford 80f315c328 HHH-12062 - Added test case. 2017-12-05 09:41:19 +01:00
Vlad Mihalcea 9ebd56e762 HHH-12120 - Update StandardDialectResolver to reflect the latest Dialects of PostgreSQL and MySQL
- add License header to Database class
2017-11-30 13:52:22 +02:00
Edward.Wilson 7011347b9a HHH-12140 - Allow session scoped interceptors to be managed by DI providers (e.g Spring) 2017-11-30 13:31:53 +02:00
graemerocher 5415d635dd HHH-11721 - PreInsertEventListener that just vetoed ends up throwing NullPointerException because the entity is still managed 2017-11-28 12:07:21 +02:00
Yanming Zhou 304a0a89da HHH-12120 - Update StandardDialectResolver to reflect the latest Dialects of PostgreSQL and MySQL 2017-11-28 11:59:25 +02:00
Steve Ebersole 400a4bc24e HHH-12115 - No Dialect mapping for JDBC type: 1899073220 in Wildfly (AttributeConverter and Short)
Improved JavaDocs pointing to the exact parts of the JDBC spec that the JdbcTypeJavaClassMappings mappings come from;
Added mapping for BigInteger as well
2017-11-27 11:11:59 -06:00
Tiger Wang 6b1f3e51a9 HHH-12115 - attribute converter add mapping of Java Short type to JDBC SMALLINT type 2017-11-27 17:07:50 +02:00
Andrea Boriero f0d49c5be4 HHH-12113 - Fix Checkstyle error 2017-11-27 14:48:35 +00:00
Vlad Mihalcea 47382f69cc HHH-12113 - The JDBC batch sorting algorithm can be simplified due to latest modifications 2017-11-21 17:40:45 +02:00
Vlad Mihalcea 7f70dccc71 HHH-12108 - Fix tests failing on Oracle 2017-11-21 16:47:16 +02:00
Vlad Mihalcea 5b710533f7 HHH-11028 - {h-schema} is not replaced in SQLDelete, SQLInsert and SQLUpdate
Trim the sQL query before checking it for {h-schema} placeholders
2017-11-21 15:46:36 +02:00
Vlad Mihalcea 88c2bda837 HHH-12112 - The query optimizer hint fails on Oracle 2017-11-21 15:13:06 +02:00
Vlad Mihalcea 26041f49e1 HHH-12111 - Oracle does not support positive/negative initial sequence values for descending/ascending sequences unless MAXVALUE/MINVALUE is defined as well 2017-11-21 15:02:45 +02:00
Vlad Mihalcea 9b062e4a6b HHH-11028 - {h-schema} is not replaced in SQLDelete, SQLInsert and SQLUpdate
Skip substitute brackets for stored procedures
2017-11-21 14:03:59 +02:00
Vlad Mihalcea 44a31550c4 HHH-12087 - Pagination does not work with Oracle views
Roll back change because it breaks the follow-on-locking mechanism
2017-11-21 12:26:59 +02:00
rustem.yagudin d6441b7081 HHH-12087 - Pagination does not work with Oracle views 2017-11-20 16:00:28 +02:00
Andrea Boriero 877e790995 HHH-5645 - Fix Checkstyle errors 2017-11-20 12:33:50 +00:00
Andrea Boriero d330fdcfca HHH-12086 - Fix Checkstyle error 2017-11-20 12:33:50 +00:00
Anders Wallgren 7a32ea62b6 HHH-12105 - Batch order_inserts: flush during transaction causes incorrect insert ordering and subsequent constraint violation 2017-11-20 12:41:27 +02:00
Gary LosHuertos c4010d0af0 HHH-9158 - cascade-persist in orm.xml does not apply to annotation-based relationships 2017-11-16 11:10:55 +02:00
Vlad Mihalcea abb3590d33 HHH-11117 - LazyPropertyInitializer$1 cannot be cast to [B when calling Session.merge() on compile time enhanced composed entities
Add a test case to prove it works after HHH-12054 got fixed
2017-11-16 10:43:55 +02:00
barreiro ae8c365bf5 HHH-12054 - Handle UNFETCHED_PROPERTY in CollectionType.replace() 2017-11-16 10:14:22 +02:00
Gail Badner d2a19c9a77 HHH-12007 : Executing JPA query results in persistence of new/unmanaged entity 2017-11-15 20:37:48 -08:00
Vlad Mihalcea a9f1caf998 HHH-9331 - Aggregate functions for subqueries not working 2017-11-15 12:37:17 +02:00
Vlad Mihalcea 5a91673ef2 HHH-5274 - HQL-Insert with Select and Sub-Select fails 2017-11-15 11:50:30 +02:00
Vlad Mihalcea fe60239301 HHH-5645 - Criteria.createAlias with specified criterion results in wrong parameters passed into SQL statement
Roll back changes since the test passes even without them
2017-11-15 08:46:01 +02:00
Eric Haas dbd5f81f79 HHH-5645 - Criteria.createAlias with specified criterion results in wrong parameters passed into SQL statement 2017-11-14 18:42:22 +02:00
Vlad Mihalcea eaeda2f41d HHH-12086 - Batch order_inserts: flush during transaction causes incorrect insert ordering and subsequent constraint violation
Add a maximum iteration threshold, to avoid a stack overflow error in case there will be circular dependency that's not properly detected
2017-11-13 20:54:28 +02:00
randymay a5d50c3bd5 HHH-12076 - Query not built properly when joining a table based on class
Add replicating test case for HBM mappings
2017-11-13 18:12:02 +02:00
randymay 26ae3c6726 HHH-12076 - Query not built properly when joining a table based on class
Add test case that proves the issue does not replicate for annotation mappings
2017-11-13 17:32:43 +02:00
Vlad Mihalcea 427bba4212 HHH-12086 - Batch order_inserts: flush during transaction causes incorrect insert ordering and subsequent constraint violation
Fix indentation.
2017-11-13 11:04:40 +02:00
Anders Wallgren 9ae9810f85 HHH-12086 - Batch order_inserts: flush during transaction causes incorrect insert ordering and subsequent constraint violation 2017-11-13 10:49:50 +02:00
Steve Ebersole 7c57d11406 HHH-12085 - @NaturalId not working on inherited field 2017-11-10 20:19:01 -06:00
Steve Ebersole e9263758fe HHH-12085 - @NaturalId not working on inherited field 2017-11-10 17:20:49 -06:00
Vlad Mihalcea 20422cd76a HHH-11986 - @LazyGroup is ignored on LazyToOne association with 'mappedBy'
Fix tests failing on MariaDB
2017-11-09 09:46:36 +02:00
Viefhaus 4531b22e92 HHH-11986 - @LazyGroup is ignored on LazyToOne association with 'mappedBy'
HHH-11986 - Re-format fix code to follow code conventions
2017-11-08 14:13:34 -08:00
Viefhaus 3292a83223 Testcase for HHH-11986 added
HHH-11986 : Changed test code to follow conventions of other bytecode enhancement tests; reformatted test code
2017-11-08 14:12:44 -08:00
Jonathan Bregler 1616b3de37 HHH-12074 - order_inserts: flush during transaction causes incorrect insert ordering and subsequent constraint violation
- "TOP" is a reserved key word in same database systems.
2017-11-08 14:31:36 +02:00
Anders Wallgren 8530584fad HHH-12074 - order_inserts: flush during transaction causes incorrect insert ordering and subsequent constraint violation 2017-11-07 09:26:56 +02:00
Sanne Grinovero 95ecd7c43a HHH-12081 Update to JBoss Logger 3.3.1.Final and related tooling 2.1.0.Final 2017-11-06 14:14:05 +00:00
Vlad Mihalcea 164178330a HHH-12073 - Change BaseUnitTestCase Logger to protected 2017-11-01 19:04:07 +02:00
ageery 310eb69b6e HHH-12072 - BasicFormatterImpl throws a NPE if native SQL begins with a parentheses 2017-11-01 17:58:42 +02:00
Guillermo González de Agüero 20d17ec0f2 HHH-11805 Fix JACC cannot be enabled 2017-11-01 13:37:55 +02:00
Vlad Mihalcea f2c83c9653 HHH-10179 - Fetching an already loaded entity with an EntityGraph does not initialize previously lazy loaded attributes
Add replicating test case
2017-10-31 15:29:27 +02:00
barreiro 280474e9cd HHH-12051 - Filter dirty but non-updatable atributes 2017-10-31 13:18:05 +02:00
msymonov 4b8cfe0c1f HHH-12067: NativeQueryTupleTransformer doesn't handle null values in returned ResultSet 2017-10-30 11:39:20 +02:00
Giovanni Lovato b8a3baa5c1 HHH-10485 : Lazy collections fetched with EntityGraph load with JOIN 2017-10-26 10:24:46 +03:00
Marcello ef6ddd98bc HHH-12064 - Issue with unidirectional one-to-many association with a join column that references a column that is not the primary key 2017-10-25 16:55:58 +03:00
Archie L. Cobbs 88b1e33d72 HHH-12046 - Don't consider static methods for isFoo()/getFoo() conflicts. 2017-10-25 10:55:42 +03:00
Vlad Mihalcea ce21f133d2 HHH-11028 - {h-schema} is not replaced in SQLDelete, SQLInsert and SQLUpdate code enhancement
Remove isCallable attribute since it causes failures on MariaDB
2017-10-25 08:42:49 +03:00
Sanne Grinovero 401936f94e HHH-12055 Revert to using the Javassist version included in WildFly 11 2017-10-24 16:42:49 +01:00
Laabidi Raissi 090d18dcc8 HHH-11028 - {h-schema} is not replaced in SQLDelete, SQLInsert and SQLUpdate code enhancement 2017-10-24 16:27:54 +03:00
Vlad Mihalcea 1cb10729b0 HHH-12058 - Criteria LiteralHandlingMode can only be configured programatically. We need to support String-based configurations as well. 2017-10-24 15:06:07 +03:00
Vlad Mihalcea 29fc5903e3 HHH-12052 - Move PooledConnections inside DriverManagerConnectionProviderImpl 2017-10-23 15:38:15 +03:00
Andrea Boriero 884bfc1cc6 HHH-2897 - Fix checkstyle error 2017-10-19 11:57:14 +01:00
Gail Badner 86f310e4cb HHH-11970 : @NotFound(IGNORE) and @BatchSize 2017-10-19 11:30:34 +01:00
Gail Badner 19087d9f15 HHH-11970 : @NotFound(IGNORE) and @BatchSize 2017-10-19 11:30:34 +01:00