Commit Graph

3969 Commits

Author SHA1 Message Date
Steve Ebersole d1f54b976e HHH-12099 - Query#getLockMode ought to throw exception for non-SELECT 2017-12-13 06:19:30 -06:00
Steve Ebersole 409596235c HHH-12097 - EntityManagerFactory open/closed checks per JPA spec 2017-12-13 06:19:30 -06:00
Steve Ebersole 25ba7bd60d HHH-12096 - Problem finding correlated getter-method for field access 2017-12-13 06:19:30 -06:00
Steve Ebersole dedc9ef8eb HHH-12098 - prep 5.3 2017-12-13 06:19:30 -06: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
fernando 47eebc5d86 HHH-12037 - Remove unused code in ArrayHelper 2017-10-17 17:56:50 +03:00
Lemongrass3110 ed61fc9a8e HHH-2897 - Adding support for use of sequence objects in DB2 V8 OS390 2017-10-17 16:46:43 +03:00
Andrea Boriero 61ee2d2232 HHH-12034 - Fix tests hanging on PostgrSQL 2017-10-16 20:58:23 +01:00
Andrea Boriero 07eec26d67 HHH-11971 - QueryParameterBindingValidator does not handle primitive types 2017-10-16 19:25:41 +01:00
Andrea Boriero 4979241a1d HHH-11971 - Add test for issue 2017-10-16 19:25:41 +01:00
Gail Badner a77c48dc11 HHH-12034 - According to JPA, a Proxy should be loaded even when accessing the identifier 2017-10-16 17:41:47 +03:00
marko-bekhta b51dac6e39 HHH-12026 Setting correct font family for search input in TOC. Fixing a typo 2017-10-16 14:58:29 +03:00
Jonathan Bregler 54b506ecf4 HHH-12021 - Fix tests failing on SAP HANA
- skip testLoad() of org.hibernate.jpa.test.ops.GetLoadTest
- change the result comparison to set-based instead in testRevisionsGtWithPropertyQuery()
2017-10-09 13:58:49 +03:00
Jonathan Bregler 1fc4ce23ac HHH-12020 - Add SAP HANA to the list of provided dialects
- Update documentation
- Update org.hibernate.boot.registry.selector.internal.StrategySelectorBuilder
2017-10-09 13:30:41 +03:00
Jonathan Bregler 62e691c38a HHH-11816 - JoinProcessor considers table names with colons dynamic filter parameters 2017-10-09 12:47:29 +03:00
Chris Cranford 00492a3707 HHH-11965 - Fix cascade of one-to-one associations with proxies. 2017-09-29 16:47:14 -04:00
Chris Cranford 5a49cdc3ce HHH-11965 - Added test case. 2017-09-29 16:46:43 -04:00
Chris Cranford 05f8e7306e HHH-11656 - Added test case. 2017-09-29 11:27:34 -04:00
Andrea Boriero 85016e0bca HHH-11640 - Fix test failing on MariaDB 2017-09-27 18:45:35 +01:00
Ivo Hradek 72506a6eac HHH-11640 - NamedQuery doesn't log comment when UPDATE/DELETE
HHH-11906 - Add support for MySQL query optimizer hints
2017-09-27 16:57:46 +03:00
Andrea Boriero 08cd580067 HHH-11980 - Fix test failing on PostgreSQL 2017-09-27 13:26:50 +01:00
msvticket e391d8577e HHH-11980 MultiTenantConnectionProvider is required for MultiTenancyStrategy.DISCRIMINATOR
Instead of checking that multiTenancyStrategy is NONE start using MultiTenancyStrategy.requiresMultiTenantConnectionProvider to distinguish whether MultiTenantConnectionProvider is to be used.
2017-09-26 17:43:10 +03:00
Thomas Reinhardt 5be294506d HHH-7842 - Hibernate Criteria does not respect fetch mode, when alias is used 2017-09-26 16:39:08 +03:00
Vlad Mihalcea b48dfe0d11 Fix test leaking connections 2017-09-26 15:43:29 +03:00
Vlad Mihalcea 56947f28dc HHH-9576 - Use JDBC bind variables for handling JPA Criteria query numeric literals 2017-09-26 10:55:12 +03:00
Andrea Boriero 132767b4fb HHH-12001 - Allow ORM to be built with Java 9 2017-09-21 22:10:05 +01:00
Jonathan Bregler 85dcac95d0 Improved Hibernate support for SAP HANA part 2
- implement PR comments
2017-09-21 12:05:19 -05:00
Jonathan Bregler 3aad752b04 Improved Hibernate support for SAP HANA
- Identity column support
- Spatial support
- Various minor improvements in HANA dialects
2017-09-21 12:05:19 -05:00
Andrea Boriero 5566b423e3 HHH-3870 - Fix checkstyle errors 2017-09-21 16:20:04 +01:00
Igor Dmitriev f8b78bcad0 HHH-11838 - Id retrieving from proxy with FK leads to query execution 2017-09-21 15:33:01 +03:00
Vlad Mihalcea af080884d1 HHH-3870 - Hibernate proxies Groovy's getMetaClass method breaking proxies when used with Groovy 2017-09-21 15:14:54 +03:00
Andrea Boriero 6379a42a58 HHH-11651 - unwrapping error in AbstractMultiTenantConnectionProvider 2017-09-21 14:58:47 +03:00
Vlad Mihalcea 442f5e60dd HHH-11863 - Implement REF_CURSOR support for StoredProcedureQuery.getOutputParameterValue(4); 2017-09-21 13:56:25 +03:00
Vlad Mihalcea 287221e26e HHH-11996 - order_inserts causing constraint violation 2017-09-20 10:42:39 +03:00
Vlad Mihalcea 6866f5eb4d HHH-11997 - EntityManager.createNamedQuery throwing illegalstateexception 2017-09-20 08:50:15 +03:00