Commit Graph

2891 Commits

Author SHA1 Message Date
Andrea Boriero 4cb84a110c HHH-9635 - Add test for issue 2016-02-05 15:18:28 +00:00
cranforc 4cd66c7353 HHH-8657 - Case insensitivity on Nationalized column yields incorrect SQL
HHH-8657 - Case insensitivity on Nationalized column yields incorrect
SQL
2016-02-04 15:38:39 +00:00
Andrea Boriero c7d8d48e62 HHH-7705 - Fix Query.setProperties(Map) silently ignores null values provided in the Map 2016-02-04 14:23:24 +00:00
Andrea Boriero 6c3985e63a HHH-7705 - Add test for issue 2016-02-04 14:23:17 +00:00
Andrea Boriero 6faafc5cdc HHH-10495 - Fix Oracle10gDialect generate nvarchar when using @Nationalized 2016-02-04 14:19:58 +00:00
Andrea Boriero b5586bc941 HHH-10495 - Add test for issue 2016-02-04 14:19:52 +00:00
Andrea Boriero a7a727b5d2 HHH-10303 Fix checkstyle error 2016-01-27 18:03:55 +00:00
Andrea Boriero 2d7d665256 HHH-9286 - Add CustomType implements ProcedureParameterExtractionAware 2016-01-27 17:51:06 +00:00
Andrea Boriero 50089b21dc HHH-9286 - Add CustomType implements ProcedureParameterNamedBinder 2016-01-27 17:51:06 +00:00
Andrea Boriero 743ad3ef92 HHH-9286 - Modify AbstractParameterRegistrationImpl#prepare(CallableStatement statement, int startIndex) to use ProcedureParameterNamedBinder#nullSafeSet(...) 2016-01-27 17:51:06 +00:00
Andrea Boriero 774974a905 HHH-9286 - Add BasicBinder#bind(CallableStatement st, J value, String name, WrapperOptions options) method 2016-01-27 17:51:06 +00:00
Andrea Boriero 49cd637107 HHH-9286 - AbstractStandardBasicType implements ProcedureParameterNamedBinder 2016-01-27 17:51:06 +00:00
Andrea Boriero cbe00ce253 HHH-9286 - Add ProcedureParameterNamedBinder interface 2016-01-27 17:32:37 +00:00
Andrea Boriero 407bf3d4db HHH-9286 - Oracle10gDialect override registerResultSetOutParameter(CallableStatement statement, String name) and getResultSet(CallableStatement statement, String name) 2016-01-27 17:32:25 +00:00
Andrea Boriero 8a6df47eb9 HHH-9286 - Oracle10gDialect override Dialect#Oracle10gDialect#getResultSet(CallableStatement statement, int position) 2016-01-27 17:32:14 +00:00
Steve Ebersole 2b598dbb60 HHH-10446 - Comment delimiters not "escaped" within (VAR)CHAR literals within native queries
(cherry picked from commit bb109139e8)
2016-01-25 20:55:33 -06:00
Andrea Boriero 7f9fd50e26 HHH-10451 - Fix Add table comment to 'create table...' statement 2016-01-25 18:50:13 +00:00
Andrea Boriero 6bf463a1be HHH-10451 - Fix generation of 'comment on table ... ' and 'comment on column' statements 2016-01-25 18:50:04 +00:00
Andrea Boriero d022105f0a HHH-10451 - Add test for issue 2016-01-25 18:49:54 +00:00
Steve Ebersole 5ca47a6b62 HHH-10303 - Reinstate legacy bytecode-enhancement Ant task 2016-01-25 10:50:32 -06:00
Andrea Boriero 6187805632 HHH-10401 - Fix Missing table names on foreign key circularity error message 2016-01-14 09:57:28 +00:00
Andrea Boriero 8dd86a2183 HHH-10433 - Fix hbm2ddl utils has a problem - release jdbc connection 2016-01-13 17:39:28 +00:00
Andrea Boriero a982b5674e HHH-10433 - Add test for issue 2016-01-13 17:39:20 +00:00
Andrea Boriero 659157a45c HHH-10422 - Add test for issue (from HHH-9983)
(cherry picked from commit 1f3048e572)

HHH-10422 - Fix Error saving entity with identity id on Oracle 12c (from HHH-9983)

(cherry picked from commit 33458ab6f8)

Conflicts:
	hibernate-core/src/main/java/org/hibernate/dialect/Oracle12cDialect.java
	hibernate-core/src/main/java/org/hibernate/dialect/identity/Oracle12cIdentityColumnSupport.java

HHH-10422 : Backport HHH-9983 to fix identity IDs using Oracle12cDialect in 5.0

HHH-10422 : Custom identity support test

HHH-10422 : Custom identity support test
2016-01-13 11:12:21 -06:00
Sergey Astakhov de3ce125bc HHH-9474 Fixing perfomance issue with ElementCollection 2016-01-13 15:14:19 +00:00
Jaikiran cfc4fc6d1f HHH-10439 Log a message while executing the import script(s) 2016-01-13 14:31:40 +00:00
Steve Ebersole 63db87e8f6 HHH-4161 - persistence.xml <jar-file> not following JSR220 spec
(cherry picked from commit 5c77f279af)
2016-01-12 15:22:52 -06:00
Andrea Boriero eae981c9b5 HHH-10385 HHH-10386 - Fix the @JoinColumn foreignKey is not taken into consideration when generating the association database schema 2016-01-12 19:19:59 +00:00
Andrea Boriero 90c1de55cf HHH-10385 HHH-10386 - Add tests for issues 2016-01-12 19:19:46 +00:00
Andrea Boriero a84eb2f47c HHH-10437 - Fix NPE in PrimaryKey#addColumn(Column column) when getTable().getNameIdentifier() is null 2016-01-12 16:47:16 +00:00
Andrea Boriero 64430890a4 HHH-10437 - Add test for issue 2016-01-12 16:47:05 +00:00
Steve Ebersole c53a308a58 HHH-5932 Fix filtering request with string literal starting with ':' (checkstyle fix)
(cherry picked from commit fd1ff34f03)
2016-01-11 17:33:47 -06:00
Steve Ebersole f9aab2ba88 HHH-9342 - HQL "x member of treat(y as Type).collections" fails to parse
(cherry picked from commit a35abf43e9)
2016-01-11 16:33:35 -06:00
Steve Ebersole c8a25d2838 HHH-9371 - Exception ''Invalid filter-parameter name format" from LoadQueryInfluencers when hql contains colon and filter is enabled. 2016-01-11 12:14:30 -06:00
Etienne Miret 5d259b7eaf HHH-9371 - Exception ''Invalid filter-parameter name format" from LoadQueryInfluencers when hql contains colon and filter is enabled. 2016-01-11 12:14:17 -06:00
Etienne Miret 17a43fce49 HHH-9357 Fix type() with joined inheritance and discriminator column.
Conflicts:
	hibernate-core/src/main/java/org/hibernate/persister/entity/JoinedSubclassEntityPersister.java
2016-01-09 22:35:44 -05:00
Etienne Miret 4c804089bb HHH-9357 Add test case for this issue. 2016-01-09 22:35:42 -05:00
Etienne Miret df103a2f02 HHH-9356 Add a bunch of tests.
Conflicts:
	hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/convert/QueryTest.java
2016-01-09 22:15:18 -05:00
Etienne Miret 48210916c2 HHH-9356 All arguments of a between are now given the same expected type. 2016-01-09 22:15:13 -05:00
Steve Ebersole e79d5d4b39 HHH-10307 - JTA no longer transitively provided (HHH-10178) causes problems for apps not using JTA
(cherry picked from commit b1d1a3c143)
2016-01-08 11:13:40 -06:00
Andrea Boriero 1f63272d29 HHH-10405: <return> elements of <sql-query> are not handled properly when building metadata - Refactoring 2016-01-08 12:04:39 +00:00
Koen Aers eed0fe8b28 HHH-10405: <return> elements of <sql-query> are not handled properly when building metadata - Solution 2016-01-08 12:04:30 +00:00
Koen Aers bacb67fe73 HHH-10405: <return> elements of <sql-query> are not handled properly when building metadata - Unit test demonstrating the issue 2016-01-08 12:04:19 +00:00
Andrea Boriero c705a1f575 HHH-10425 - Fix SchemaMigration creates foreign keys too early if across schema 2016-01-07 14:55:33 +00:00
Andrea Boriero 76a59f1641 HHH-10425 - Add test for issue 2016-01-07 14:55:19 +00:00
Andrea Boriero 50365b591b HHH-10420 - Fix SchemaExport creates foreign keys too early if across schema 2016-01-07 11:09:08 +00:00
Andrea Boriero aae8e0c10d HHH-10420 - Add test for issue 2016-01-07 11:08:56 +00:00
Gail Badner b5870a075e HHH-10421 : Change "native" ID generator for Oracle12cDialect to SequenceStyleGenerator
(cherry picked from commit 6df1dccc05)

Conflicts:
	hibernate-core/src/main/java/org/hibernate/dialect/Oracle12cDialect.java
2016-01-06 15:42:22 -08:00
Jan Martiska c8ef33b3b4 HHH-10395 ServiceBootstrappingTest assumes that show_sql != true 2015-12-21 16:33:54 -08:00
Yoann Rodière ddcb3a26f6 HHH-10191 Fixed exceptions when a functional index exists.
(cherry picked from commit 0dea233ce3)
2015-12-21 15:48:02 -08:00
Yoann Rodière e488fd08e2 HHH-10191 test case
(cherry picked from commit be94481e33)
2015-12-21 15:47:44 -08:00
Gail Badner 12abb91f09 HHH-10383 : IN parameter is not enclosed in parenthesis
(cherry picked from commit 4c6941190a)
2015-12-21 13:28:27 -08:00
Andrea Boriero bf92137880 HHH-10396 - Fix In a @OneToMany association with @JoinColum the @ForeignKey is not taken into consideration when generating the association database schema 2015-12-21 13:12:19 +00:00
Andrea Boriero ef4db6c855 HHH-10396 - Add tests for the issue 2015-12-21 13:12:10 +00:00
Scott Marlow 8112d9f033 HHH-10384 Fix thread safety issues in thread local optimiser 2015-12-18 10:07:46 -05:00
Stuart Douglas d2f8fbbf76 HHH-10384 Fix thread safety issues in thread local optimiser 2015-12-18 10:07:46 -05:00
barreiro 7a20fed92b HHH-10252 - Trigger the lazy loading of cascading attributes (5.0) 2015-12-16 22:55:36 +00:00
barreiro 5e33aacd01 HHH-10252 - Add test case 2015-12-16 22:46:40 +00:00
Andrej Golovnin 760ac6c8c2 HHH-10363 - The Cascade class makes unnecessary calls to the Reflection
API.

(cherry picked from commit 328fa2363a)
2015-12-16 15:01:47 -06:00
Steve Ebersole b0709a78e6 HHH-10381 - Introduce a ThreadLocal-based pooled-lo optimizer to avoid locking
(cherry picked from commit 153b8f26cc)
2015-12-16 14:38:36 -06:00
barreiro cb0dcc0641 HHH-10354 - Rename 'field access' bytecode enhancement 2015-12-16 14:08:09 -06:00
Steve Ebersole 6a988dd6fa HHH-10381 - Introduce a ThreadLocal-based pooled-lo optimizer to avoid locking
(cherry picked from commit 20ebd8f5ca)
2015-12-16 13:52:04 -06:00
Scott Marlow 5ad33c7eb5 HHH-10381 - Introduce a ThreadLocal-based pooled-lo optimizer to avoid locking
(cherry picked from commit 0c358d80f6)
2015-12-16 13:51:51 -06:00
Torsten Schöne 975de86017 HHH-10353 Interceptor.afterTransactionBegin() is not fired
(cherry picked from commit fe48897692)
2015-12-16 12:38:44 -06:00
Karl von Randow e6d211466e HHH-10286 SessionFactoryImpl doesn't cache and reuse existing collection cache region access strategies
(cherry picked from commit 828a83dcbf)
2015-12-16 12:09:47 -06:00
Eskil Bylund 7975dead95 Fix missing parenthesis around composite properties in WHERE clauses
The currentClauseType field would not be correct if the query contained a
subquery.

Signed-off-by: Andrea Boriero <andrea@hibernate.org>
2015-12-16 11:18:18 +00:00
Andrea Boriero f344a6d290 HHH-10298 - Add new configuration type hibernate.hbm2dll.extra_physical_table_types 2015-12-15 16:50:33 +00:00
Andrea Boriero 749e69aee7 HHH-10298 - Add test 2015-12-15 16:50:20 +00:00
Andrea Boriero b48b159c69 HHH-10364 - Fix HSQL does not support Nationalized annotation 2015-12-15 16:02:48 +00:00
Andrea Boriero fc90e6809d HHH-10364 - Add test for issue 2015-12-15 16:02:41 +00:00
Gail Badner 7af83f02ae HHH-9764 : StaleObjectStateExceptions raising outside flush context
(cherry picked from commit c767b0ed15)
2015-12-14 14:04:17 -08:00
Guenther Demetz 56c1ae332d Testcase for HHH-9764
Conflicts:
	hibernate-core/src/test/java/org/hibernate/test/cache/CollectionCacheEvictionTest.java

(cherry picked from commit 840d906cea)
2015-12-14 13:49:42 -08:00
Ståle W. Pedersen a9e482bce0 HHH-10366 Check for trace logging before calling log method and unused method parameters 2015-12-14 17:43:13 +00:00
Sanne Grinovero 90ac42fa2c HHH-10358 Make sure synchronization on AbstractLoadPlanBasedLoader is skipped when the guarded feature is disabled 2015-12-14 16:26:52 +00:00
Gail Badner 971783607e HHH-10369 : Unit test failure because Sybase trims trailing spaces 2015-12-08 18:28:35 -08:00
Gail Badner 0582dc1e8e HHH-10368 : Unit test failure because Sybase does not support binding an untyped null object 2015-12-08 17:09:22 -08:00
Gail Badner 60625b19b2 HHH-10367 : Fix more DB reserved words used by tests 2015-12-08 16:43:09 -08:00
Andrea Boriero e42ca85e9d HHH-10366 - Fix checkstyle error 2015-12-08 18:14:19 +00:00
Ståle W. Pedersen 3f6cc8f8c5 HHH-10366 Improve performance and reduce CPU load when fetching reference cached objects
Removed a call to postLoad and afterInitialize for reference cached entities;
refactor methods, made some private, some final
try to optimize cached result
refactor out getPersister so it can be inlined
2015-12-08 16:53:28 +00:00
Andrea Boriero fcd355f608 HHH-10331 - Fix HSQLDialect returns supportsTupleDistinctCounts false which seems wrong 2015-12-08 11:08:24 +00:00
Bobo Häggström cac8b0d8c5 HHH-10343 Fixed precision and scale for elements of basic types in persistent collections 2015-12-07 10:27:41 +00:00
Koen Aers 3d92590eb3 HHH-10158: SchemaUpdate does not properly support formatter and delimiter anymore 2015-12-05 19:42:56 +00:00
Koen Aers 3229bbd883 HHH-10223: Element 'query-param' in *.hbm.xml files causes ClassCastException 2015-12-03 15:16:38 +00:00
Andrea Boriero 8bfaaea4b6 HHH-1122 - Fix hbm2ddl.SchemaUpdate has no delimiter 2015-12-03 10:30:10 +00:00
Andrea Boriero bf892ef354 HHH-1122 - Add test for issue 2015-12-03 10:30:03 +00:00
Gail Badner 9858d29b56 HHH-10296 : Fix more DB reserved words used by tests 2015-12-02 16:32:45 -08:00
Andrea Boriero 087d51d505 HHH-10291 - Fix Partially generated composite attribute is not retrieved after insert 2015-12-02 16:45:45 +00:00
Steve Ebersole 052aad0ed4 HHH-10313 - Make SessionImplementor extend WrapperOptions 2015-11-30 11:13:58 -06:00
Andrea Boriero 603059b640 HHH-10302 - checkstyle fix 2015-11-26 17:35:06 +00:00
Sanne Grinovero c8b68f5883 HHH-10302 Extract helper method for LoadEvent reuse and adapt code formatting to Hibernate style 2015-11-26 16:23:32 +00:00
Stuart Douglas a761705e1d HHH-10302 Cache the LoadEvent and PostLoadEvent to reduce allocations 2015-11-26 16:23:25 +00:00
Stuart Douglas 6777977df0 HHH-10301 Don't allocate a new List if it is not required 2015-11-26 15:27:23 +00:00
Andrea Boriero a4b74e23cc HHH-10321 - HHH-9866 is alive; Wrong join table column names generation with globally_quoted_identifiers 2015-11-26 15:06:20 +00:00
Andrea Boriero 9a9fb43ca5 HHH-9302 - SQLGrammarException with @DiscriminatorColumn in an inheritance hierarchy 2015-11-26 13:36:59 +00:00
Andrea Boriero 331383ccef HHH-9302 - Add test for issue 2015-11-26 13:36:44 +00:00
Stuart Douglas cd2ac94100 HHH-10314 Don't create the batch fetch queue to remove entities, as a null queue cannot contain the entity 2015-11-26 12:30:35 +00:00
Stuart Douglas 6ecb5ca923 HHH-10338 Use an explicit empty object array to prevent the varargs method allocating one 2015-11-26 11:56:13 +00:00
Gail Badner 24ee708de7 HHH-10328 : Unit test failure due to database identifier too long 2015-11-24 20:53:29 -08:00
Gail Badner a2026c3ad0 HHH-10327 : Unit test failures due to date/time precision mismatches 2015-11-24 17:48:59 -08:00
Gail Badner d8f57877f2 HHH-10296 : Fix more DB reserved words used by tests 2015-11-24 14:17:00 -08:00