Commit Graph

2853 Commits

Author SHA1 Message Date
Yoann Rodière be94481e33 HHH-10191 test case 2015-12-21 14:50:46 -08:00
Gail Badner 4c6941190a HHH-10383 : IN parameter is not enclosed in parenthesis 2015-12-21 13:26:10 -08:00
Andrea Boriero cb0729b59f 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:10:07 +00:00
Andrea Boriero 14c97f0b5b HHH-10396 - Add tests for the issue 2015-12-21 13:10:07 +00:00
Scott Marlow 96d4639e6c HHH-10384 Fix thread safety issues in thread local optimiser 2015-12-18 10:05:50 -05:00
Stuart Douglas bef14a5890 HHH-10384 Fix thread safety issues in thread local optimiser 2015-12-18 10:05:50 -05:00
barreiro 268a1eaa22 HHH-10252 - Trigger the lazy loading of cascading attributes 2015-12-16 15:07:13 -06:00
barreiro 601bdaa678 HHH-10252 - Add test case 2015-12-16 15:07:13 -06:00
Andrej Golovnin 328fa2363a HHH-10363 - The Cascade class makes unnecessary calls to the Reflection
API.
2015-12-16 15:01:01 -06:00
Steve Ebersole 153b8f26cc HHH-10381 - Introduce a ThreadLocal-based pooled-lo optimizer to avoid locking 2015-12-16 14:38:01 -06:00
barreiro 6828f5ee9b HHH-10354 - Rename 'field access' to 'extended enhancement' 2015-12-16 13:56:56 -06:00
Steve Ebersole 20ebd8f5ca HHH-10381 - Introduce a ThreadLocal-based pooled-lo optimizer to avoid locking 2015-12-16 13:49:31 -06:00
Scott Marlow 0c358d80f6 HHH-10381 - Introduce a ThreadLocal-based pooled-lo optimizer to avoid locking 2015-12-16 13:03:40 -06:00
Torsten Schöne fe48897692 HHH-10353 Interceptor.afterTransactionBegin() is not fired 2015-12-16 12:19:58 -06:00
Karl von Randow 828a83dcbf HHH-10286 SessionFactoryImpl doesn't cache and reuse existing collection cache region access strategies 2015-12-16 12:08:37 -06:00
Eskil Bylund 5cc2175033 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 10:48:30 +00:00
Andrea Boriero aefdda0978 HHH-10298 - Add new configuration type hibernate.hbm2dll.extra_physical_table_types 2015-12-15 16:48:12 +00:00
Andrea Boriero c7b8f73b46 HHH-10298 - Add test 2015-12-15 16:17:44 +00:00
Andrea Boriero 57975b98e4 HHH-10364 - Fix HSQL does not support Nationalized annotation 2015-12-15 15:31:43 +00:00
Andrea Boriero d63f25bab6 HHH-10364 - Add test for issue 2015-12-15 15:31:18 +00:00
Gail Badner c767b0ed15 HHH-9764 : StaleObjectStateExceptions raising outside flush context 2015-12-14 13:40:43 -08:00
Guenther Demetz 840d906cea Testcase for HHH-9764
Conflicts:
	hibernate-core/src/test/java/org/hibernate/test/cache/CollectionCacheEvictionTest.java
2015-12-14 13:40:43 -08:00
Ståle W. Pedersen a679528f71 HHH-10366 Check for trace logging before calling log method and unused method parameters 2015-12-14 17:52:27 +00:00
Sanne Grinovero c1cb413c2a HHH-10358 Make sure synchronization on AbstractLoadPlanBasedLoader is skipped when the guarded feature is disabled 2015-12-14 16:16:54 +00:00
Gail Badner 0a332c2e8d HHH-10369 : Unit test failure because Sybase trims trailing spaces
(cherry picked from commit 971783607e)
2015-12-08 18:29:34 -08:00
Gail Badner a7dac8fcf9 HHH-10368 : Unit test failure because Sybase does not support binding an untyped null object
(cherry picked from commit 0582dc1e8e)
2015-12-08 17:10:25 -08:00
Gail Badner c5120b0b19 HHH-10367 : Fix more DB reserved words used by tests
(cherry picked from commit 60625b19b2)
2015-12-08 16:44:58 -08:00
Andrea Boriero b33c6d4357 HHH-10366 - Fix checkstyle error 2015-12-08 18:13:09 +00:00
Ståle W. Pedersen c802042f1a 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:55:58 +00:00
Andrea Boriero 4b4164f8e0 HHH-10331 - Fix HSQLDialect returns supportsTupleDistinctCounts false which seems wrong 2015-12-08 10:55:49 +00:00
Bobo Häggström 86c0746c0b HHH-10343 Fixed precision and scale for elements of basic types in persistent collections 2015-12-07 09:48:46 +00:00
Koen Aers 3267a9221f HHH-10158: SchemaUpdate does not properly support formatter and delimiter anymore 2015-12-04 18:33:26 +01:00
Koen Aers 71765d7bd2 HHH-10223: Element 'query-param' in *.hbm.xml files causes ClassCastException 2015-12-03 14:59:04 +01:00
Andrea Boriero 0638a5449c HHH-1122 - Fix hbm2ddl.SchemaUpdate has no delimiter 2015-12-03 09:56:43 +00:00
Andrea Boriero 6f985e2fa1 HHH-1122 - Add test for issue 2015-12-03 09:53:35 +00:00
Gail Badner 32b4087efc HHH-10296 : Fix more DB reserved words used by tests
(cherry picked from commit 9858d29b56)
2015-12-02 16:34:31 -08:00
Andrea Boriero 6cdfd93bec HHH-10291 - Fix Partially generated composite attribute is not retrieved after insert 2015-12-02 16:31:10 +00:00
Steve Ebersole 8961937bbc HHH-10313 - Make SessionImplementor extend WrapperOptions 2015-11-30 11:24:06 -06:00
Steve Ebersole 704671e17d HHH-10313 - Make SessionImplementor extend WrapperOptions
(cherry picked from commit 052aad0ed4)
2015-11-30 11:14:45 -06:00
Andrea Boriero b25481ed75 HHH-10302 - checkstyle fix 2015-11-26 17:32:31 +00:00
Sanne Grinovero f0f544472c HHH-10302 Extract helper method for LoadEvent reuse and adapt code formatting to Hibernate style 2015-11-26 16:11:47 +00:00
Stuart Douglas 85db76431c HHH-10302 Cache the LoadEvent and PostLoadEvent to reduce allocations 2015-11-26 15:39:45 +00:00
Stuart Douglas f4e58d342d HHH-10301 Don't allocate a new List if it is not required 2015-11-26 15:26:34 +00:00
Andrea Boriero 2e8d52e654 HHH-10321 - HHH-9866 is alive; Wrong join table column names generation with globally_quoted_identifiers 2015-11-26 14:59:41 +00:00
Andrea Boriero ca9e0424b4 HHH-9302 - SQLGrammarException with @DiscriminatorColumn in an inheritance hierarchy 2015-11-26 13:18:28 +00:00
Andrea Boriero 4776ff0913 HHH-9302 - Add test for issue 2015-11-26 13:18:28 +00:00
Stuart Douglas 17b9a06d6d HHH-10314 Don't create the batch fetch queue to remove entities, as a null queue cannot contain the entity 2015-11-26 12:17:57 +00:00
Gail Badner 24841e4e59 HHH-10328 : Unit test failure due to database identifier too long
(cherry picked from commit 24ee708de7)
2015-11-24 20:58:02 -08:00
Gail Badner 45f8d2f830 HHH-10327 : Unit test failures due to date/time precision mismatches
(cherry picked from commit a2026c3ad0)
2015-11-24 17:49:54 -08:00
Gail Badner 157f24d7e2 HHH-10296 : Fix more DB reserved words used by tests
(cherry picked from commit d8f57877f2)
2015-11-24 14:18:05 -08:00
Gail Badner e032ac6793 HHH-10296 : Fix more DB reserved words used by tests
(cherry picked from commit ae91c8722a)
2015-11-24 13:59:23 -08:00
Gail Badner 8552b84ae5 HHH-10327 : Unit test failure on Oracle due to DATE mismatches
(cherry picked from commit 34dd9d186b)
2015-11-24 13:59:14 -08:00
Gail Badner 38b8074c55 HHH-10322 : Test failures due to function name differences by dialect
(cherry picked from commit 377ba9a8c0)
2015-11-23 17:18:53 -08:00
Gail Badner 27f04f155d HHH-10320 : Unit test failures due to feature tested that is not supported by database
(cherry picked from commit cd581f8dfd)
2015-11-23 12:16:19 -08:00
Gail Badner 710cf4fee1 HHH-10296 : Fix more DB reserved words used by tests
(cherry picked from commit cfbc0036f0)
2015-11-23 11:51:14 -08:00
Gail Badner 104635ba1f HHH-10296 : Fix more DB reserved words used by tests 2015-11-20 23:01:19 -08:00
Gail Badner d5017c339c HHH-10312 : Unit test failures due to DB problems interpreting proper type for null value when bound to a query
(cherry picked from commit 519ba7175f)
2015-11-20 18:57:41 -08:00
Gail Badner d5fb3761c6 HHH-10311 : Primary key length used in unit test is too long for DB2
(cherry picked from commit 439dab82d0)
2015-11-20 14:35:39 -08:00
Gail Badner 780c7c2fb6 HHH-10308 : Don't make deep copy of property with AttributeConverter if Java type is known to be immutable 2015-11-20 11:47:55 -08:00
Steve Ebersole 1183a4719d HHH-10309 - HHH-10242 is too aggressive in cases of FIELD access 2015-11-20 12:50:14 -06:00
Andrea Boriero f8fc15841a HHH-10304 - ImplicitCompositeKeyJoinTest#testImplicitCompositeJoin fails due to dialect-specific differences in generated SQL string 2015-11-19 15:50:38 +00:00
Andrea Boriero 534cd7dae8 HHH-10275 - Fix Inverse foreign key for many-to-many set is nullable 2015-11-18 17:16:41 +00:00
Gail Badner ccc99c690f HHH-10297 : Cache HashMap in AbstractRowReader instead of re-creating for each row that is read 2015-11-17 21:48:39 -08:00
Steve Ebersole 57401b9aa8 HHH-1689 - Support subqueries in HQL as CASE statement alternatives;
SQM-30 - test
2015-11-17 19:21:58 -06:00
Steve Ebersole caf902dde9 HHH-10289 - CPU performance regression in StatefulPersistenceContext.addEntry() 2015-11-17 15:31:11 -06:00
Ståle W. Pedersen da4593de1b HHH-10289 - CPU performance regression in StatefulPersistenceContext.addEntry() 2015-11-17 11:29:10 -06:00
barreiro 1568f89426 HHH-9529 - [enhancer] check that the field being accessed belongs to the entity being enhanced 2015-11-17 10:34:24 -06:00
Steve Ebersole 4793ca30a2 HHH-10178 - Move Geronimo JTA jar to provided configuration (non-transitive) 2015-11-17 10:21:58 -06:00
Gail Badner b4dbb90f17 HHH-10161 : Hibernate ignores return value from javax.persistence.Parameter#getParameterType() 2015-11-16 22:30:09 -06:00
Selaron b1e4fc1ae4 HHH-10181 - CacheableFileXmlSource.doBind uses obsolete .bin file
Check for obsolete cache file during runtime of doBind(..) instead of
CacheableFileXmlSource instantiation only. Subsequent calls of doBind on
a given CacheableFileXmlSource instance should detect that cache file is
fresh and make use of it.
2015-11-16 22:11:51 -06:00
Steve Ebersole 5e87397902 HHH-9195 - Adding an entity at a given index in a list annotated with OrderColumn adds the entity at the end 2015-11-16 22:04:07 -06:00
Gail Badner 54a8b96251 HHH-10273 : Explicitly put column/table names that are DB2 keywords in quotes
(cherry picked from commit 642d42dc92)
2015-11-16 18:31:15 -08:00
Steve Ebersole 1e44e7420b HHH-10267 - Support defining lazy attribute fetch groups 2015-11-16 15:43:11 -06:00
Andrea Boriero 6afc759bf3 HHH-10288 - Temporary table support is broken using PostgresPlusDialect 2015-11-16 12:17:47 +00:00
Andrea Boriero 1cc67e3983 HHH-10293 - Schema Update - Single table Inheritance with bi-directional OneToMany referencing superclass fails 2015-11-15 17:30:36 +00:00
Andrea Boriero 3f31c3d79f HHH-10293 - Add test for issue 2015-11-15 17:30:18 +00:00
Andrea Boriero f9065daba1 HHH-5946 - Tests for not equals operations expecting QuerySyntaxException require dialect does not support row value constructor syntax 2015-11-14 14:33:16 +00:00
Andrea Boriero 765c7020eb HHH-10274 - org.hibernate.id.SequenceValueExtractor does not work for DB2, Oracle, or SQL Server 2015-11-13 16:59:30 +00:00
Steve Ebersole 63b4f69deb HHH-10280 - Remove legacy bytecode enhancement artifacts 2015-11-12 20:33:38 -06:00
Steve Ebersole 472f4ab9ef HHH-10280 - Remove legacy bytecode enhancement artifacts 2015-11-12 19:47:50 -06:00
Andrea Boriero c0528b7079 HHH-10247 - Fix Hibernate ignores foreign-key attribute name in hbm <many-to-many> 2015-11-12 23:14:21 +00:00
Andrea Boriero 8c0c98fa07 HHH-10247 - Add test for issue 2015-11-12 23:14:20 +00:00
Andrea Boriero 5ca5e90551 HHH-10279 - Fix checkstyle errors 2015-11-12 22:45:12 +00:00
Steve Ebersole 9872358bed HHH-10281 - More formally deprecate the legacy bytecode enhancement code 2015-11-12 10:47:52 -06:00
barreiro 340cee232a HHH-10271 - Add ordinal() method to EventType and change EventListenerRegistryImpl to take advantage of that 2015-11-12 08:15:18 -06:00
Stuart Douglas 991ff265da HHH-10279 - Memory usage improvements -
* Don't allocate IdentityMap if it is not needed
* Only allocate unresolved insertions if requied
* Don't create a new string when creating a named query
* Allocate querySpaces lazily
* Remove executableLists from ActionQueue
* Allocate ExecutableList instances lazily
* Lazily allocate the transaction commit task lists
* Don't allocate a new EntityKey
2015-11-12 06:51:02 -06:00
Gail Badner fa7851058c HHH-10273 : Reserved word used for database object in testsuite 2015-11-11 18:12:50 -08:00
John O'Hara 1852162da5 HHH-10259 : ForUpdateFragment.toFragmentString() does not check if aliases are defined when lockOptions are not null
(cherry picked from commit fc077401e7)
2015-11-11 17:05:12 -08:00
Steve Ebersole 1d5b0779d6 HHH-10264 - hibernate.cache.auto_evict_collection_cache problems;
HHH-9140 - Error in CollectionCacheInvalidator when hibernate.cache.auto_evict_collection_cache is enabled
2015-11-10 09:13:22 -06:00
Janario Oliveira bf2eb01856 HHH-10264 - Values weren't cached after persist
HHH-9140 - Allow to look for id outside of context
ERROR CollectionCacheInvalidator:145 - org.hibernate.TransientObjectException: The instance was not associated with this session
	at org.hibernate.internal.SessionImpl.getIdentifier(SessionImpl.java:1511)
(cherry picked from commit f0d8fcd)

Added property to propagate error in test case

Test case without mappedBy
org.hibernate.HibernateException: Unable to resolve property:
	at org.hibernate.tuple.entity.EntityMetamodel.getPropertyIndex(EntityMetamodel.java:926)
2015-11-10 09:12:26 -06:00
Emanuele Gesuato cd2b031b6b HHH-5946 - Wrong SQL generated when composites are compared using not-equal operator 2015-11-09 23:04:52 -06:00
Janario Oliveira 80e851e7d0 HHH-9475 Cannot mix @MapKey with @Convert - Moved classes to reuse in test case; Added copy of type from referenced MapKey 2015-11-09 21:47:45 -06:00
Steve Ebersole 0cc5e8d30f HHH-10251 - Memory Leak when using Reference Cached, bytecode enhanced Immutable Entities 2015-11-09 17:05:00 -06:00
John O'Hara 26048f220d HHH-10251 : Memory Leak when using Reference Cached, bytecode enhanced Immutable Entities 2015-11-09 17:04:44 -06:00
Steve Ebersole 67e631dfb3 HHH-7572 - Develop API for load-by-multiple-ids 2015-11-09 16:37:51 -06:00
Steve Ebersole 134eb06fba HHH-7572 - Develop API for load-by-multiple-ids 2015-11-09 16:10:25 -06:00
Steve Ebersole 2b563794c7 HHH-1706 - Named parameters ignored when single apostrophe encountered within an SQL comment 2015-11-09 15:19:55 -06:00
Steve Ebersole e4d102c5b1 HHH-1706 - Named parameters ignored when single apostrophe encountered within an SQL comment 2015-11-09 09:18:42 -06:00
Matt Drees a32372d751 HHH-5764 - Support for multi-level derived ids 2015-11-09 08:09:29 -06:00
Steve Ebersole 8fd64a3b8f HHH-9807 - Better error message when @Formula and @Id are combined 2015-11-06 16:51:30 -06:00