Commit Graph

1778 Commits

Author SHA1 Message Date
Brett Meyer 328986f392 HHH-7889 Cleanup inconsistencies in Blob, Clob, and NClob type 2013-02-14 17:12:47 -05:00
Brett Meyer cbacb9c8d9 HHH-8006 MergeCollectionEventTest & BadMergeHandlingTest fail on MySQL 2013-02-14 12:28:40 -05:00
Brett Meyer 46ad6cf882 HHH-7992 Updated to reflect Session SPI change 2013-02-14 11:05:43 -05:00
Brett Meyer 1af005bfb1 HHH-7991 Correct all instances of
Thread.currentThread().getContextClassLoader()
2013-02-14 11:04:35 -05:00
Brett Meyer 94cbc61f04 HHH-7527 Enterprise OSGi JPA support 2013-02-14 11:04:35 -05:00
Brett Meyer 7fe238ac70 HHH-8003 Create "sqlDropString" method in Dialect to handle "if exists"
correctly
2013-02-13 23:12:16 -05:00
Brett Meyer e25211380d HHH-7999 Oracle test failures due to lack of support for identity
columns
2013-02-13 23:12:11 -05:00
Brett Meyer 44bc6e4273 HHH-8002 TransactionTimeoutTest#testTransactionTimeoutSuccess failing on
Oracle
2013-02-13 23:12:04 -05:00
Brett Meyer dd321af629 HHH-7999 Create HQLScrollFetchTest for dialects that do not support
identity columns
2013-02-13 17:41:05 -05:00
Guillaume Smet c2e4220c0f HHH-7821 - Clear the entire BatchFetchQueue on flush.
Provide a safe guard against NPE in BatchFetchQueue.getCollectionBatch() by checking that CollectionEntry.getLoadedKey() is not null before adding it to the batch.
2013-02-13 16:26:16 -05:00
Guillaume Smet d86d2671e9 HHH-7821 - Clears the batch collection fetching queue on flush.
Provides a safe guard against NPE in BatchFetchQueue.getCollectionBatch() by checking that CollectionEntry.getLoadedKey() is not null before adding it to the batch.
2013-02-13 16:25:56 -05:00
Guillaume Smet e2fc8b12db HHH-7970 - Fix broken logic in JPAOverriddenAnnotationReader.getCacheable(): if element is null, you have to consider the @Cacheable annotation
per gripe from Andreas Joseph Krogh
2013-02-13 12:02:00 -05:00
Sanne Grinovero 74251d5185 HHH-7992 - Add a base Session delegator implementation
(cherry picked from commit ec11902a92)
2013-02-12 16:19:22 -06:00
Brett Meyer 17e8bbc6b7 HHH-7829 NullPointerException when manually flushing One-To-One
relationship with orphan removal
2013-02-01 13:00:55 -05:00
Strong Liu 6c4df3477f HHH-7930 Hibernate will crash with (custom) enum types when running with a logback.xml in debug mode 2013-01-30 17:10:11 +08:00
Himavanth 0ddd884400 HHH-7933 boolean should be treated as bit in SQLServer 2013-01-28 14:55:01 -05:00
Brett Meyer eb84ff9a42 HHH-3788 FirebirdDialect: current_date() function 2013-01-28 14:55:00 -05:00
Brett Meyer 09f8237d2f HHH-995 Order.ignoreCase() only works for VARCHAR types, not CHAR types 2013-01-28 14:55:00 -05:00
Brett Meyer 3220ca5b17 HHH-3869 Improve toString on SessionStatistics 2013-01-28 14:55:00 -05:00
Brett Meyer 644efaebe4 HHH-2805 The class Order does not contain getters 2013-01-28 14:55:00 -05:00
Brett Meyer 1aec3c1378 HHH-7520 BlobProxy.invoke Javadoc is incorrect 2013-01-28 14:54:37 -05:00
Kamyar Sajjadi 51342f6ef3 HHH-7520 - now the implementation and the javadoc should be the same 2013-01-28 14:54:37 -05:00
Brett Meyer f876f4e24b HHH-7304 Minor cleanup 2013-01-28 14:54:36 -05:00
Guenther Demetz a407665819 HHH-7304 bugfix proposal 2013-01-28 14:54:36 -05:00
Guenther Demetz f58557a567 HHH-7304 testcase 2013-01-28 14:54:36 -05:00
Guenther Demetz 3aee934d53 HHH-7304 new testcase entity class 2013-01-28 14:54:36 -05:00
Brett Meyer d0093a7fa9 HHH-2951 test case 2013-01-28 14:54:36 -05:00
Nikolay Shestakov 265b3d37cf HHH-2951 Restrictions.eq when passed null, should create a NullRestriction 2013-01-28 14:54:36 -05:00
Brett Meyer 6395e57013 HHH-1917 updated comment 2013-01-28 14:54:36 -05:00
Brett Meyer 9c89ef994e HHH-1917 Bulk Delete on the owning side of a ManyToMany relation needs
to delete corresponding rows from the JoinTable

Conflicts:
	hibernate-core/src/test/java/org/hibernate/test/hql/BulkManipulationTest.java
2013-01-28 14:54:36 -05:00
Steve Ebersole 5d280a8041 HHH-5869 - Add suport for nationalized character mappings
(cherry picked from commit e7b188c924)

Conflicts:

	hibernate-core/src/main/java/org/hibernate/cfg/AvailableSettings.java

Plus, added all nationalized variants of the character-based SqlTypeDescriptors
2013-01-28 14:54:35 -05:00
Lukasz Antoniak 428866f058 HHH-7781 - Fix and test
(cherry picked from commit 03520b928f)
2013-01-28 14:53:45 -05:00
Nikolay Shestakov 6d444a7bb5 HHH-2721 PostgreSQLDialect: function md5() always returns a string value 2013-01-28 14:53:45 -05:00
Brett Meyer 7abdde7a62 HHH-7911 NPE in TwoPhaseLoad#initializeEntity 2013-01-28 14:53:44 -05:00
Brett Meyer 91998e042e HHH-6643 Overrode getNotExpression in DB2Dialect 2013-01-28 14:53:44 -05:00
Brett Meyer 31480aa1c8 HHH-7797 Deprecating mistakenly removed Dialect methods 2013-01-28 14:53:44 -05:00
Brett Meyer c4ef270967 HHH-2448 Generate identical column aliases among cluster 2013-01-28 14:53:44 -05:00
Brett Meyer b4122f6a9f HHH-6643 Corrected intermittent test failure 2013-01-28 14:53:44 -05:00
Nikolay Shestakov d5c651ccf5 HHH-3458 Register postgres random() function as "rand" in PostgresSQLDialect 2013-01-28 14:53:44 -05:00
Brett Meyer bfcca64997 HHH-6643 Criteria doesn't support a chaining of 2 not restrictions (sql
= not not criterion)
2013-01-28 14:53:44 -05:00
Brett Meyer 03c010e519 HHH-7866 Cleanup and added a few more checks 2013-01-28 14:53:05 -05:00
Sanne Grinovero 3c9c226159 HHH-7866 Avoid redundant log level checking in StandardQueryCache 2013-01-28 14:53:05 -05:00
Lukasz Antoniak 6455107c6e HHH-7561 - Fix and test ( from Lukasz ) 2013-01-28 14:53:05 -05:00
Lukasz Antoniak de4517b0d5 HHH-6627 HHH-7752 - Test cases 2013-01-28 14:53:04 -05:00
Lukasz Antoniak 5bf8d84379 HHH-465 - Support for NULLS FIRST/LAST
Conflicts:
	hibernate-core/src/main/java/org/hibernate/cfg/Settings.java
	hibernate-core/src/main/java/org/hibernate/criterion/Order.java

Conflicts:
	hibernate-core/src/main/java/org/hibernate/cfg/SettingsFactory.java
	hibernate-core/src/main/java/org/hibernate/criterion/Order.java
2013-01-28 14:19:58 -05:00
Brett Meyer dc3222a4e3 HHH-7797 Simplified UniqueKey creation and corrected a couple of
@UniqueConstraint bugs.
Conflicts:
	hibernate-core/src/main/java/org/hibernate/cfg/Configuration.java
2013-01-25 14:41:00 -05:00
Steve Ebersole 61f548db6f HHH-7928 - Regression caused by HHH-6361
(cherry picked from commit cb1b9a05af)

Conflicts:

	hibernate-core/src/test/java/org/hibernate/test/event/collection/detached/BadMergeHandlingTest.java
2013-01-24 12:44:40 -06:00
Scott Marlow d339e94491 HHH-7928 reproduced the tck failure caused by HHH-6361 2013-01-19 22:28:31 -05:00
Steve Ebersole 18f8aa75de HHH-7928 - Regression caused by HHH-6361
(cherry picked from commit 991342f2c2)
2013-01-16 14:55:06 -06:00
Brett Meyer f70234c5ee HHH-7902 Replace JDBC proxies with a set of contracts/helpers
HHH-7902 Merged JdbcResourceRegistry into JdbcCoordinator.  Parts of
LogicalConnection moved into JdbcCoordinator as well.

HHH-7902 Replaced Statement#close and ResultSet#close calls with
JdbcCoordinator#release

HHH-7902 Enforced the use of StatementPreparer, instead of Connection

HHH-7902 ResultSetExtractor.  Replaced all instances of execute,
executeQuery, executeUpdate, etc.

HHH-7902 Refactored AbstractReturningDelegate to give access to
jdbcCoordinator

HHH-7902 Corrected test failures

HHH-7902 Removed resource registry use from JdbcIsolation workers

HHH-7902 Corrected a few bugs in JdbcCoordinator and ResultSetExtractor.

HHH-7902 ResultSetExtractor -> ResultSetReturn.  Reworked proxy tests to
test the new APIs.
2013-01-14 13:49:15 -05:00
Steve Ebersole 0ffe6e7115 HHH-7912 - Define edge-case behavior for Session.evict 2013-01-08 21:40:33 -06:00
Steve Ebersole 78d1a9f5be HHH-7912 - Define edge-case behavior for Session.evict
(cherry picked from commit c8b20660ed)
2013-01-08 21:40:33 -06:00
Brett Meyer 12fb24ec40 HHH-7797 Deprecating mistakenly removed Dialect methods
Conflicts:
	hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java
2013-01-07 12:21:02 -05:00
Steve Ebersole 4d7adb8d1e HHH-7872 - Improved L2 cache storage of "reference" data
(cherry picked from commit 9c3998dade)
2012-12-19 09:25:22 -06:00
Steve Ebersole 8b6606c60e HHH-7872 - Improved L2 cache storage of "reference" data
(cherry picked from commit 2ff69d24c4)
2012-12-18 20:23:51 -06:00
Steve Ebersole ff14688d7c HHH-7746 - Investigate alternative batch loading algorithms
(cherry picked from commit 06b0faaf57)

Conflicts:

	hibernate-core/src/main/java/org/hibernate/cfg/Settings.java
	hibernate-core/src/main/java/org/hibernate/internal/util/collections/ArrayHelper.java
	hibernate-core/src/main/java/org/hibernate/loader/Loader.java
2012-12-18 20:18:46 -06:00
Steve Ebersole 30b3bd1564 HHH-7667 - Investigate expanding bytecode enhancement support 2012-12-18 14:28:39 -06:00
Steve Ebersole 5506a48bea HHH-7667 - Investigate expanding bytecode enhancement support 2012-12-18 14:28:39 -06:00
Steve Ebersole 93f4fe0668 HHH-7667 - Investigate expanding bytecode enhancement support 2012-12-18 14:28:39 -06:00
Steve Ebersole 5dadc5afd2 HHH-7667 - Investigate expanding bytecode enhancement support 2012-12-18 14:28:39 -06:00
brmeyer 29ae3debc6 HHH-7797 Corrected failing test that was exposed by src changes 2012-12-18 10:09:53 -05:00
brmeyer e629feee8a HHH-7797 Use unique indexes on nullable columns for DB2. Correctly
handle @UniqueConstraint table annotations on second passes.
2012-12-18 10:09:43 -05:00
brmeyer 2cd062058c HHH-7797 minor refactoring 2012-12-18 10:09:37 -05:00
brmeyer 98149d2534 HHH-7797 Finished auditing dialects. Cleanup and javadocs. Completed
uniqueness test.
2012-12-18 10:09:21 -05:00
brmeyer fa09bc2866 HHH-7797 initial test case 2012-12-18 10:09:09 -05:00
Brett Meyer 7254d465ae HHH-7797 Initial attempt at using UniqueDelegate within metamodel 2012-12-18 10:09:01 -05:00
brmeyer 1416126a00 HHH-7797 Finished first take on UniqueDelegate and rolled into .cfg and
.mapping
2012-12-18 10:08:54 -05:00
brmeyer 0a2b639808 HHH-7797 UniqueDelegate & DefaultUniqueDelegate 2012-12-18 10:08:36 -05:00
Brett Meyer 2ae841db66 HHH-7797 Block "unique" syntax on a column if a constraint can/will be
used
2012-12-18 10:08:28 -05:00
Gail Badner 349d4ab36f HHH-7771 : Deprecate obsolete Type, AssociationType, and TypeFactory methods 2012-12-13 12:14:25 +08:00
Gail Badner 005cc6cd2a HHH-7771 : Deprecate obsolete Type, AssociationType, and TypeFactory methods 2012-12-13 12:14:14 +08:00
Gail Badner c6ef23a51c HHH-7860 : Log a warning when embed-xml attribute is used in mappings 2012-12-12 15:15:29 -08:00
Brett Meyer 1782a9dc84 HHH-7856 Deprecate TableHiLoGenerator and TableGenerator 2012-12-12 16:59:43 -05:00
Scott Marlow 8b365d8ef5 HHH-7747 check if the code attribute is null when building the StackMapTable 2012-12-11 15:06:26 -05:00
Dustin Schultz 834bb03c96 HHH-7747 - Fixes CNFE regression for runtime field level class
enhancing. Also removes the usage of ClassPool.getDefault() and
creates a new ClassPool on each usage.

HHH-7747 - Add the entity class to the ClassPool to support modular
classloading like OSGI. Remove unused import in FieldTransformer.

HHH-7747 - Enhanced test to ensure that class enhancement sees all
classes of an entity. Added test to ensure that StackMapTables are
non-null for Javassist added methods.
2012-12-11 15:06:20 -05:00
Scott Marlow 2dc09fad41 HHH-7850 BulkAccessorFactory Java 7 verify error resolved by JASSIST-163 BulkAccessorFactory.java.diff2 patch from Shigeru Chiba. 2012-12-11 09:51:55 -05:00
brmeyer c1e29a23fd HHH-7849 Cleaner fix. Added additional regression test.
Conflicts:
	hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/criteria/components/ComponentCriteriaTest.java
2012-12-10 14:18:31 -05:00
brmeyer d6de1d509a HHH-7849 Formatting 2012-12-10 14:17:18 -05:00
mgrenonville 419e440629 HHH-7849 Unable to join on an embedded field 2012-12-10 14:17:07 -05:00
Shawn Clowater 1286c2319c Changed the error handling for LazyInitializationException to go through the throwLazyInitializationException method so that the collection role is reported. 2012-12-07 12:23:34 -05:00
Barney 48afb82ea1 HHH-7826 - Generate 'unique' constraints in stable order 2012-12-07 11:41:09 -05:00
brmeyer f3dbacdf44 HHH-7839 Documentation bug at
SimpleNaturalIdLoadAccess.getReference(Object naturalIdValue)
2012-12-07 11:28:32 -05:00
brmeyer 08640663d4 HHH-7840 org.hibernate.id.IncrementGenerator very slow 2012-12-07 11:21:30 -05:00
Steve Ebersole 37bb7bb45e HHH-1168 - Problem combining locking and paging on Oracle
(cherry picked from commit 21ade0c798)
2012-11-30 12:18:56 -06:00
Steve Ebersole 08d5d994dc HHH-1168 - Problem combining locking and paging on Oracle
(cherry picked from commit 6e71a0907e)
2012-11-29 12:35:00 -06:00
Strong Liu a3a024ec34 HHH-7612 - rollback the chage in 4.1 branch 2012-11-28 23:24:49 +08:00
Steve Ebersole 87dd786b9a HHH-7825 - org.hibernate.type.descriptor.java.DataHelper is incompatible with FireBird JDBC
(cherry picked from commit caf2ee420c)
2012-11-26 17:51:18 -06:00
Steve Ebersole a4f6f3069d HHH-1168 - Problem combining locking and paging on Oracle
(cherry picked from commit dd280b8c27)
2012-11-26 13:20:46 -06:00
Steve Ebersole 70e7a1ff40 HHH-7823 - BatchFetchQueue.clear() does not clear batchLoadableCollections 2012-11-26 09:08:25 -06:00
Lukasz Antoniak d9e1a1c6e8 HHH-7612 - Fix and test
(cherry picked from commit 14d1c626a5)
2012-11-24 18:13:11 +01:00
Brett Meyer 4e154d66bd HHH-7819 Correct test issues found in CI hibernate-core-master-matrix
job
2012-11-21 14:41:24 -05:00
Brett Meyer a976af5b11 HHH-7819 Correct test issues found in CI hibernate-core-master-matrix
job
2012-11-21 14:41:13 -05:00
Steve Ebersole 94385b8656 HHH-7816 - DDL opertations will incorrectly commit current transaction on Oracle XA
(cherry picked from commit 5d2f21a01e)
2012-11-20 16:04:49 -06:00
Steve Ebersole e9405fe031 HHH-1168 - Problem combining locking and paging on Oracle
(cherry picked from commit 4b2871cfba)

Conflicts:

	hibernate-core/src/main/java/org/hibernate/internal/StoredProcedureOutputsImpl.java
	hibernate-core/src/main/java/org/hibernate/loader/Loader.java
	hibernate-core/src/main/java/org/hibernate/loader/collection/DynamicBatchingCollectionInitializerBuilder.java
	hibernate-core/src/main/java/org/hibernate/loader/entity/DynamicBatchingEntityLoaderBuilder.java
	hibernate-entitymanager/src/main/java/org/hibernate/ejb/QueryImpl.java
2012-11-20 13:57:11 -06:00
brmeyer 00849bce2e HHH-7785 Reverting a few more Dialect supportsNotNullUnique changes 2012-11-14 11:02:32 -05:00
brmeyer e733e7dd79 HHH-7785 Reverting supportsNotNullUnique change in HSQL 2012-11-13 11:47:29 -05:00
Steve Ebersole b69c554f9e HHH-7643 - java.io.NotSerializableException org.hibernate.type.EnumType
(cherry picked from commit 2158bec47c)
2012-11-12 14:22:17 -06:00
Steve Ebersole 695213568d HHH-7780 - many envers tests are failing
(cherry picked from commit 07fc1627cd)
2012-11-12 13:54:26 -06:00
Steve Ebersole 26a42cb365 HHH-7777 - Deprecate XmlRepresentableType
(cherry picked from commit 5ef8a667ff)
2012-11-12 12:14:34 -06:00
Steve Ebersole 83e122773d HHH-7782 - Deprecate PersistentElementHolder, PersistentIndexedElementHolder, PersistentListElementHolder and PersistentMapElementHolder
(cherry picked from commit ec942edb48)
2012-11-12 09:33:22 -06:00
Steve Ebersole 778c82b512 HHH-7777 - Deprecate XmlRepresentableType
(cherry picked from commit bcd15dc0eb)
2012-11-12 08:56:48 -06:00
Strong Liu 0d2a967fc3 HHH-7773 - Backout HHH-7544 (Pull Request 379) 2012-11-11 23:26:53 +08:00
Steve Ebersole 0251d13adc HHH-7769 - Define short-names for built-in MultiTableBulkIdStrategy impls 2012-11-08 15:15:20 -06:00
Steve Ebersole 0ef75629b9 HHH-7768 - Names of invalid named queries incorrectly concatenated
(cherry picked from commit dffb86c52d)
2012-11-08 13:11:21 -06:00
Steve Ebersole 67b973dc52 HHH-7767 - JoinWalker creates ".." substring in association path
(cherry picked from commit 209763faa8)
2012-11-08 11:59:00 -06:00
Alex Kalashnikov 0f442db095 HHH-7767 JoinWalker creates ".." substring in association path
(cherry picked from commit 9f462834da)
2012-11-08 11:58:59 -06:00
Steve Ebersole e5f0db2455 HHH-7377 - NullPointerException in conjunction with natural IDs after Session.clear()
(cherry picked from commit 785e2d869e)
2012-11-08 10:00:44 -06:00
Steve Ebersole 502542d2b6 HHH-7757 - NOT IN row-value syntax ignores NOT
(cherry picked from commit 78483e6389b73416bc38ee54dd6a92bc2a4843a9)
2012-11-06 13:13:02 -06:00
Steve Ebersole f916d49aee HHH-7645 - Enum property defined within orm.xml using enum-type string does not work
(cherry picked from commit 4294e0faee)

Conflicts:

	hibernate-core/src/main/java/org/hibernate/mapping/SimpleValue.java
2012-11-06 11:33:13 -06:00
Steve Ebersole 76b2cd201f HHH-7748 - EnumType crashes because of unsupported JDBC API in Oracle
(cherry picked from commit 432dab3465)
2012-11-06 08:27:28 -06:00
Strong Liu d93b2bf9ab HHH-7725 - fixing failing test that not clean up statistic before using it 2012-11-01 14:05:27 +08:00
brmeyer 1fdba5d906 HHH-7725 unclosed Statement 2012-10-31 17:15:23 -04:00
brmeyer f16a55f99c HHH-5267 NPE when updating a detached entity with a one-to-one
association changed to null that is mapped with delete-orphan
2012-10-31 13:54:49 -04:00
Steve Ebersole cac22a3926 HHH-7725 - Make handling multi-table bulk HQL operations more pluggable
(cherry picked from commit 1b5088a911)
2012-10-31 12:42:50 -05:00
Steve Ebersole 87fe888ad5 HHH-7725 - Make handling multi-table bulk HQL operations more pluggable 2012-10-31 11:45:55 -05:00
Steve Ebersole 54d29f715b HHH-7725 - Make handling multi-table bulk HQL operations more pluggable
(cherry picked from commit 0ab36bed8c)
2012-10-31 11:29:15 -05:00
Steve Ebersole dbf5c3dcea HHH-7725 - Make handling multi-table bulk HQL operations more pluggable
(cherry picked from commit 9f0bbe10a6)
2012-10-31 11:29:15 -05:00
Steve Ebersole e32d7f277c HHH-7725 - Make handling multi-table bulk HQL operations more pluggable
(cherry picked from commit c94752d243)
2012-10-31 11:29:14 -05:00
Steve Ebersole e3239ae188 HHH-7725 - Make handling multi-table bulk HQL operations more pluggable
(cherry picked from commit df809231c5)
2012-10-31 11:29:14 -05:00
Steve Ebersole 2729d462c7 HHH-7725 - Make handling multi-table bulk HQL operations more pluggable
(cherry picked from commit 3e69b7bd53)
2012-10-31 11:29:13 -05:00
Steve Ebersole 1d9e45bc32 HHH-1570 - criteria-api: filtering by key-many-to-one causes invalid sql
(cherry picked from commit 3e3b439e02)
2012-10-30 12:27:29 -05:00
brmeyer 9a8d6955b0 HHH-7728 added null checks 2012-10-30 12:21:19 -04:00
Thorsten Schäfer a4f99386fb HHH-7728 Adapt hashcode to equals method 2012-10-30 12:21:15 -04:00
Thorsten Schäfer e66d98cd48 HHH-7728 Include schema and catalog in equals 2012-10-30 12:21:10 -04:00
Thorsten Schäfer 980554f97a HHH-7728 Add equals method in the table class 2012-10-30 12:21:06 -04:00
Erik-Berndt Scheper 7036538d9c HHH-6361 - Fixed ManyToManyAssociationClassCompositeIdTest broken by
CollectionType changes
2012-10-29 18:00:52 -04:00
brmeyer c57a31ad0c HHH-6361 formatting 2012-10-29 18:00:46 -04:00
Erik-Berndt Scheper 2dd97343dd HHH-6361: Patch ensuring that collection events have the correct stored
snapshot after merging a detached entity into the persistencecontext
2012-10-29 18:00:42 -04:00
brmeyer 30e1c10802 HHH-6361 Cleaned up test case 2012-10-29 18:00:37 -04:00
Erik-Berndt Scheper 1d2d6404ae HHH-6361: Testcase demonstrating that collection events may contain wrong stored snapshot after merging a detached entity into the persistencecontext 2012-10-29 18:00:31 -04:00
brmeyer e2bdf24e33 HHH-7733 NativeSQLQueriesTest failing on Postgres 2012-10-29 14:33:42 -04:00
brmeyer c74069a235 HHH-7734: SerializableTypeTest#testNewSerializableType failing for
Oracle 11G R1
2012-10-29 14:31:51 -04:00
brmeyer dd8c7c0cd7 HHH-7732 QueryTest#testMemberOfSyntax failing on Oracle 2012-10-29 14:31:30 -04:00
brmeyer 02ef55bcc3 HHH-7730 SchemaExportManagedConnectionTest#testGenerateDdlToFile
failing on Oracle & Sybase
2012-10-29 14:31:02 -04:00
brmeyer 8f463a752f HHH-5836 Mapping collection of entities with same name and notnull
constraints from two different entities results in duplicate property
mapping of Backref
2012-10-29 11:37:16 -04:00
Steve Ebersole 8dbe1b61dc HHH-1775 - collection batch fetching 2012-10-26 14:19:34 -05:00
brmeyer 85fa6bc141 HHH-7721 SQLFunctionRegistry findSQLFunction does not honor case
sensitivity
2012-10-26 14:46:57 -04:00
Steve Ebersole a9bc598042 HHH-1775 - collection batch fetching
Conflicts:

	hibernate-core/src/main/java/org/hibernate/engine/spi/BatchFetchQueue.java
2012-10-26 13:07:30 -05:00
brmeyer 188e9f4587 HHH-7724 JpaLargeBlobTest failing on multiple DBs 2012-10-26 11:27:08 -04:00
brmeyer 7f34fdb665 HHH-7359 accidentally committed TRACE log levels 2012-10-24 23:10:02 -04:00
brmeyer 54a088186c HHH-7359 Added a new method to MessageHelper to intelligently handle
property-ref issues in logging.  Rolled it out to as many MessageHelper
users as possible.
2012-10-24 22:52:40 -04:00
brmeyer 06463d169c HHH-7359 Corrected trace logging of HibernateProxy objects 2012-10-24 22:52:33 -04:00
brmeyer 757c18bf73 HHH-7513 Corrected trace logging for one-to-one cascading 2012-10-24 22:52:26 -04:00
brmeyer 375c72175a HHH-7513 Corrected trace logging for collections using property-refs 2012-10-24 22:52:20 -04:00
Dmitry Geraskov 847bbc2a36 HHH-7711 Added test for SchemaExport 2012-10-23 18:41:04 -04:00
Dmitry Geraskov eaa18d286b HHH-7711 Generate ddl to file even if scriptToConsole and
exportToDatabase are
set to false
2012-10-23 18:40:39 -04:00
brmeyer b6763565e4 HHH-7693 Formatting and duplicate code 2012-10-22 13:34:49 -04:00
Bryan Turner 0916baf2f8 HHH-7692 Use Postgres82Dialect for 9 and 9.1. 2012-10-22 13:32:57 -04:00
Bryan Turner 0695e22d41 HHH-7693 Use SQLServer2008Dialect for 2012. 2012-10-22 13:30:15 -04:00
brmeyer 47972c92e6 HHH-7698: In efficient LOB creations backed by streams
https://hibernate.onjira.com/browse/HHH-7698
2012-10-19 17:29:00 -04:00
Steve Ebersole d118c24776 HHH-7698 - In efficient LOB creations backed by streams 2012-10-19 17:28:46 -04:00
Galder Zamarreño e5d3b2b34c HHH-7640 Improve single node Infinispan 2LC performance
* Use an Infinispan cache to maintain pending puts, which avoids
the need to control it's memory consumption in the critical path
of putFromLoad.
* This cache is shared by all regions, and it's configured with
aggressive expiration settings to avoid piling up pending put
operations.
* Added a 2LC stress test that tests behaivour and performance
of 2LC under multiple situations, such as entity inserts, updates,
find via PK, find via query and deletes.
* Some other minor performance enhancements, such as avoiding
classloader aware cache wrapper if using 2LC locally.
* Remove cache adapter to reduce construction of useless objects.
* Cache flagged caches in order to avoid recomputing decorated
caches all the time, which reduces memory consumption.
* Skip locking for timestamp updates and separate timestamp region
implementations for local vs clustered scenarios.
2012-10-18 15:47:29 +02:00
brmeyer aeb48af15d HHH-7674 DB locks not cleared on
LazyLoadingTest#testLazyCollectionLoadingWithClearedSession
2012-10-10 22:03:09 -04:00
Steve Ebersole 3078cfa43f HHH-7683 - Optimize performance of AbstractLazyInitializer.prepareForPossibleSpecialSpecjInitialization()
(cherry picked from commit c9fd71fe57)
2012-10-10 13:22:39 -05:00
brmeyer c5a7916010 HHH-6655 trim function on DB2 is broken 2012-10-09 11:51:27 -04:00
brmeyer b130e7e430 HHH-4459 Query with Composite Primary Key parameter crashes when query
cache is on
2012-10-08 22:26:00 -04:00
Steve Ebersole 95bc0194ec HHH-5209 - org.hibernate.hql.ast.QuerySyntaxException when running a JPQL query with a MEMBER OF on an @ElementCollection
(cherry picked from commit 199ee7860e)
2012-10-03 08:21:09 -05:00
Brett Meyer 13ed16a114 Revert "HHH-4098 VARBINARY should be BLOB in DB2400Dialect"
This reverts commit 6a741706a3.
2012-09-27 11:30:30 -04:00
brmeyer 6a741706a3 HHH-4098 VARBINARY should be BLOB in DB2400Dialect 2012-09-26 21:34:55 -04:00
brmeyer 0fbf7202c0 HHH-6972 Support PostgreSQL and Oracle LOBs 2012-09-26 17:34:23 -04:00
Oleh Faizulin 59453919c7 HHH-7644 Correct memory leak 2012-09-26 15:48:18 -04:00
brmeyer 90a3859c27 HHH-6043 PostLoad method invoked before collection initialised 2012-09-26 00:24:49 -04:00
brmeyer 64ef9bcfc4 HHH-4635 Oracle ORA-24816 inserting and updating data for entities
containg LOB attributes
2012-09-24 12:20:50 -04:00
Sanne Grinovero 703c8358db HHH-7633 Cache System#identity for IdentityMap reuse 2012-09-21 15:05:29 +02:00
Steve Ebersole 839334db31 HHH-7631 - Improve performance of UpdateTimestampsCache
(cherry picked from commit f85e9247e9)
2012-09-21 07:04:21 -05:00
Shawn Clowater 807578ed18 HHH-7603 Changed AbstractPersistentCollection so that it would behave in a similar manner as 4.1.6 when using the default lazy load behavior for collections. With the changes for HHH-7603 the AbstractPersistentCollection was throwing a NPE instead of a LIE in a very particular case.
Added test that simulates a use case from Hibernate Search 4.1.1 as far as I can tell.
2012-09-20 01:53:22 -04:00
Ivan Sopov fc1637f816 fix for HHH-7487 org.hibernate.type.EnumType incorrectly logs binded values, trace logging was done as it is done in BasicBinder with the String.format 2012-09-20 01:41:12 -04:00
brmeyer 2113039a22 HHH-6972 Support PostgreSQL and Oracle LOBs 2012-09-20 01:24:26 -04:00
Sergiu Dumitriu 4ecd795be4 HHH-7541: When using HSQLDB, inserting any CLOB value larger than 16Mb always fails with an exception
Fixed.
2012-09-19 10:30:41 -04:00
brmeyer 3518055f7b HHH-7309 Natural-id not cached in shared cache after insert 2012-09-19 08:42:07 -04:00
Guenther Demetz e644e45367 HHH-7309 bug-fix 2012-09-19 08:42:01 -04:00
Guenther Demetz d74fa1573b HHH-7309 testcase 2012-09-19 08:41:51 -04:00
brmeyer f3899eabc2 HHH-7569 Correct test-only failures in hibernate-core-master-matrix CI
job
2012-09-19 05:29:42 -04:00
brmeyer 45f2d91a2a HHH-6972 Support PostgreSQL and Oracle LOBs 2012-09-19 04:22:50 -04:00
brmeyer 6269121718 HHH-6682 add support for oracle "bitand" function to Oracle Dialect 2012-09-18 01:44:05 -04:00
brmeyer c0043e1ee9 HHH-4635 Oracle ORA-24816 inserting and updating data for entities
containg LOB attributes
2012-09-18 01:43:53 -04:00
brmeyer 141d21d878 HHH-6682 add support for oracle "bitand" function to Oracle Dialect 2012-09-17 06:01:45 -04:00
brmeyer 419d76b17f HHH-6452 PostgreSQL Dialect does not fully implement NOWAIT locking 2012-09-17 03:56:48 -04:00
Gail Badner 1871e9336e HHH-1283 : Join fetched collections using Query.scroll() is correct only for first entity
(cherry picked from commit 3a72b45325)
2012-09-13 13:33:25 -07:00
Gail Badner 608f6a2a11 HHH-1283 : Join fetched collections using Query.scroll() is correct only for first entity
(cherry picked from commit 8eb7d8cf64)
2012-09-13 13:33:24 -07:00
Gail Badner 9953644cdf HHH-1283 : Added tests that reproduce the issue
(cherry picked from commit cb1069a3d3)
2012-09-13 13:33:24 -07:00
brmeyer b48a5ddfba HHH-7586 Re-architect Type or TypeFactory dynamic descriptors 2012-09-12 10:27:35 -04:00
brmeyer b9aeb998a7 HHH-7586 Re-architect SimpleValue's reflection for dynamic descriptors 2012-09-12 10:18:22 -04:00
brmeyer 95047afc63 HHH-7584 Sybase dialects attempting to use BLOB types 2012-09-12 10:16:51 -04:00
brmeyer 3d356c2800 HHH-7569 Correct multiple failures/issues in
hibernate-core-master-matrix CI job
2012-09-12 10:14:23 -04:00
brmeyer 501b5d0a0b HHH-7569 Turned down AST logging due to stackoverflow 2012-09-12 10:13:32 -04:00
brmeyer daa01df922 HHH-7569 Correct multiple failures/issues in
hibernate-core-master-matrix CI job
2012-09-12 10:13:21 -04:00
brmeyer 1cc3a9ffeb HHH-7579 Oracle does not support "unique not null" 2012-09-12 10:10:47 -04:00
brmeyer aa068fb264 HHH-5376 Tests contain invalid SQL 2012-09-12 10:10:38 -04:00
brmeyer 992e1387ef HHH-7578 Sybase does not support "unique not null" 2012-09-12 10:10:11 -04:00
brmeyer 3f34271a57 HHH-7577 Dialect's supportsNotNullUnique not working when false 2012-09-12 10:09:25 -04:00
John Hardin 5a3e1b076c HHH-7398 -- Added testTimeout() and modified AbstractBatchImpl.buildBatchStatement() accordingly.
(cherry picked from commit 7e0559ecdb)
2012-09-05 14:18:29 -05:00
Steve Ebersole 053b676684 HHH-7568 - Add JPA1.0 compound key compatability when orm descriptor file used to override annotations.
(cherry picked from commit 6a48cccd5d)
2012-09-05 12:42:29 -05:00
Jeremy Whiting 0c271ac77a HHH-7568 Added test case to check removal of compound key association items. Changed the detection of JoinColumns to work when orm/hbm xml is used. Added change to configure a property when JoinColumns annotation is used on entity definition.
(cherry picked from commit 961caf770a)
2012-09-05 12:42:29 -05:00
Steve Ebersole bcc76ece6d HHH-1123 - Cannot put more than 1000 elements in a InExpression
(cherry picked from commit 40574b9d8a)
2012-09-05 11:44:33 -05:00
brmeyer 6c7ef9e0da HHH-1123 Cannot put more than 1000 elements in a InExpression(cherry picked from commit 970bd8679e) 2012-09-05 11:44:33 -05:00
Shawn Clowater 33255de38e HHH-7308
Change the beforeCompletion() method of the TransactionObserver() to call the beforeTransactionCompletion() method regardless of whether or not the session is open like the afterCompletion() method does when calling the afterTransactionCompletion() and also cleaned up the log message around session having after transaction events as this sort of logging had been previously moved to the close() method of SessionImpl.
(cherry picked from commit 6ac746fffc)
2012-09-05 09:39:12 -05:00
Strong Liu 77512d01a7 HHH-7371 Natural-id: ObjectNotFoundException when found entity is marked as deleted 2012-09-05 17:21:36 +08:00
Strong Liu a608bc3b87 HHH-7300 - TypeDefs won't be found depending of files read-order 2012-09-05 17:07:52 +08:00
Janario Oliveira 9ffc45dc34 HHH-7115 definition of returned class inside SerializableToBlobType 2012-09-05 15:19:12 +08:00
Guenther Demetz a61a7f40e7 HHH-7059 The DerbyDialect deprecation warning should appear no more,
when using one of the version-specific dialects
2012-09-05 14:48:01 +08:00
nrodrigues 43e0bc01d6 HHH-7532 - Override getForUpdateString with correct syntax 2012-09-05 14:39:31 +08:00
Dustin Schultz c5eeaf71c1 HHH-7544
Fixes java.lang.VerifyError by building StackMapTables at appropriate
places.
2012-09-05 11:55:22 +08:00
Steve Ebersole ca9079f654 HHH-7566 - Activating JOIN fetch profile involving self-referential associations causes StackOverflowError
(cherry picked from commit 4e22fb9044)
2012-09-04 16:09:29 -05:00
Steve Ebersole b43198a5a6 HHH-7203 - IdentityGenerator fails with JOINED Inheritance when inserting entity to PosgtreSQL
(cherry picked from commit 54f4335416)
2012-09-04 15:02:56 -05:00
Steve Ebersole a1c219ee96 HHH-7567 - Better checking when @Enumerated involved
(cherry picked from commit 4450b127b2)
2012-09-04 12:19:36 -05:00
Steve Ebersole ca3cc50a2f HHH-5188 - Use provided enum type ordinal/string when reading
(cherry picked from commit 076eccb7a2)

Conflicts:

	hibernate-core/src/main/java/org/hibernate/type/EnumType.java
	hibernate-testing/src/main/java/org/hibernate/testing/junit4/ExtraAssertions.java
2012-09-03 22:18:28 -05:00
Steve Ebersole 30162bf5ee HHH-7563 - Fallback for JBossAppServerJtaPlatform.locateUserTransaction() to look at "java:jboss" if "java:comp" not available
(cherry picked from commit d743b9b0ba7950d2ab6fa635dd384e06b9811c74)
2012-08-31 11:22:53 -05:00
Didier Villevalois 6713d24d6b HHH-7134 - Detection of wrong circularity when two tables with same name in different schemas
Fixes FKSecondPass processing to take catalog and schema in accounts. Corresponding test class is
org.hibernate.test.cfg.WrongCircularityDetectionTest.
2012-08-31 00:41:17 +08:00
Steve Ebersole 5e9c828512 HHH-7557 - Map entries get deleted
(cherry picked from commit 45f6414f92c9cec920fd84adfd92e1e2347366d0)
2012-08-30 10:47:55 -05:00
Gail Badner d33d481b52 HHH-7545 : Aliases for a collection key and element column can collide causing one to be excluded
(cherry picked from commit 5327ac5396)
2012-08-23 12:09:20 -07:00
Steve Ebersole cde9ee1572 HHH-7524 - Enabling AvailableSettings.ENABLE_LAZY_LOAD_NO_TRANS results in leaking DB-connections
(cherry picked from commit 52336f4150)
2012-08-16 11:29:48 -05:00
Steve Ebersole 128869ad7e HHH-7524 - Enabling AvailableSettings.ENABLE_LAZY_LOAD_NO_TRANS results in leaking DB-connections
(cherry picked from commit d8651c3ba7)
2012-08-15 10:59:08 -05:00
Strong Liu eeda71b217 HHH-7509 NPE regression in second level cache 2012-08-09 14:50:33 +08:00
Scott Marlow 15cc02be33 HHH-7509 fix NPE in second level cache 2012-08-08 21:58:58 -04:00
Strong Liu 4d6ae731a9 HHH-7508 Debug logging throws MissingFormatArgumentException when using non standard Optimizer 2012-08-08 21:14:39 +08:00
Strong Liu cc7d8d8e08 HHH-7385 change to use gradle 1.1 2012-08-08 17:53:17 +08:00
Steve Ebersole b810f1049f HHH-7457 - Enable loading of collections thats been detached from session
(cherry picked from commit 467258cffa)
2012-08-07 15:00:48 -05:00
Ståle W. Pedersen 98caa8e44b HHH-7457
enabled hibernate to reattach a collection that hasnt been loaded to the session.
note: this can cause data to be loaded outside a transaction. use with caution.
(cherry picked from commit a1c9ed7756)
2012-08-07 15:00:31 -05:00
Steve Ebersole 98e7fc5d5f HHH-7305 - NPE in LogicalConnectionImpl when multi tenancy is used without providing a release mode manually
(cherry picked from commit a385792178)
2012-08-07 14:05:12 -05:00
Janario Oliveira f5e6ada7d8 HHH-6608 Replaced dot of path to property of many-to-one inside a component 2012-08-06 23:58:40 -03:00
Janario Oliveira edeecef3cf HHH-7108 TypeDef with Enum, included inside of EnumType its own properties to create itself 2012-08-06 23:37:20 -03:00
Steve Ebersole 1fe4baecb9 HHH-7502 - Problems with multi-tenancy and 2nd level cache
(cherry picked from commit 45118e729d)
2012-08-06 18:30:37 -05:00
Strong Liu 4cdf83d1be HHH-2808 CLONE -Impossible to define caching for a subclass's collection in hibernate.cgf.xml 2012-08-06 14:39:03 +08:00
Tair Sabirgaliev 7bcdddfc88 Test: order of <mapping .../> affects caching configuration 2012-08-06 14:38:52 +08:00
Strong Liu 7b5b3c214a HHH-7446 bug-fix 2012-08-06 13:09:39 +08:00
Guenther Demetz 1c57d51a0d HHH-7446 bug-fix 2012-08-06 13:09:31 +08:00
Guenther Demetz 3e1d39b10c HHH-5281 test-case 2012-08-06 13:09:19 +08:00
Strong Liu 30ea6c9025 HHH-6662, HHH-7445 - Fix and test 2012-08-03 18:21:32 +08:00
Strong Liu 00a83af879 HHH-7498 some tests were targeting to the H2 only but now runs on db matrix 2012-08-03 18:19:40 +08:00
Strong Liu c8de4a1d4e HHH-7501 java.lang.ClassCastException: oracle.jdbc.driver.T4CStatement cannot be cast to java.sql.PreparedStatement 2012-08-03 18:18:41 +08:00
Strong Liu b6b9bb8cad HHH-7498 some tests were targeting to the H2 only but now runs on db matrix 2012-08-03 00:39:19 +08:00
Strong Liu 582fe1ad63 HHH-7498 some tests were targeting to the H2 only but now runs on db matrix 2012-08-02 23:00:13 +08:00
Strong Liu 5103f10795 HHH-7498 some tests were targeting to the H2 only but now runs on db matrix 2012-08-02 22:59:12 +08:00
Strong Liu 8815b7a200 HHH-7498 some tests were targeting to the H2 only but now runs on db matrix 2012-08-02 17:42:58 +08:00
Strong Liu 695ffd2d37 HHH-6068 force this test on H2 2012-08-02 16:04:42 +08:00
Steve Ebersole f6fc21a133 HHH-6204 - JoinColumn on non key field fails to populate collection 2012-08-02 13:36:20 +08:00
Eric Dalquist e813d329bc HHH-7468 Recreate toString value holder after deserialization 2012-08-02 13:33:53 +08:00
Strong Liu ab708a7ed9 HHH-2394 remove last comma in the array, seems some jdks do not support it 2012-07-12 23:55:17 +08:00
Strong Liu cef5f9a7cd HHH-2394 Add support for SqlFragmentAlias.entity element 2012-07-12 23:30:01 +08:00
Rob Worsnop 5cb8d3a8b3 HHH-2394 Add support for SqlFragmentAlias.entity element 2012-07-12 22:59:22 +08:00
Rob Worsnop 82c99ccf6f HHH-2394 Removed unused imports 2012-07-12 22:59:22 +08:00
Rob Worsnop 542bc5c83c HHH-2394 Allowed usage of {alias} marker. 2012-07-12 22:59:22 +08:00
Rob Worsnop 1cd8db2ac3 HHH-2394 Got filters working with secondary tables 2012-07-12 22:59:21 +08:00
Rob Worsnop 05dcc209ae HHH-2394 Implemented @SqlFragmentAlias 2012-07-12 22:58:11 +08:00
Rob Worsnop cfe7db063a consolidate src/test and src/matrix 2012-07-12 22:58:11 +08:00
Rob Worsnop dc4e87340d HHH-2394 refactored unit tests 2012-07-12 22:58:11 +08:00
Rob Worsnop 2aa89290f7 HHH-2394 Added test cases 2012-07-12 22:58:11 +08:00
Rob Worsnop 09547a9051 HHH-2394 Remove conditions that blocked filters on sub-classes (for annotations) 2012-07-12 22:58:10 +08:00
Rob Worsnop 63f2639101 HHH-2394 Derive table name from correct filter (fixed typo) 2012-07-12 22:58:10 +08:00
Rob Worsnop ee01d80677 HHH-2394 Prefixes won't work; need table set explicitly 2012-07-12 22:58:10 +08:00
Rob Worsnop dbff4c1839 HHH-2394 Got filters working on sub-classes. 2012-07-12 22:58:09 +08:00
Strong Liu 1d2877838b HHH-7447 ValueHolder used in NaturalIdCacheKey is not Serializable 2012-07-12 22:53:07 +08:00
Strong Liu 9324c7ab1e HHH-7447 ValueHolder used in NaturalIdCacheKey is not Serializable 2012-07-12 22:38:39 +08:00
Strong Liu 97ac8311d4 HHH-7426 Setting cacheable='true' in orm.xml does not enable caching of entity in 2lc 2012-07-12 15:00:44 +08:00
Lukasz Antoniak c46daa4cf0 HHH-7440, HHH-7368, HHH-7369, HHH-7370 - Redesign dialect-specific LIMIT clause appliance 2012-07-10 21:19:32 +02:00
Strong Liu 65d1724433 HHH-7310 Resolution of types registered in type registry does not work properly for Properties of @Embeddable types 2012-07-11 01:21:46 +08:00
Philippe Marschall 3e4786220c HHH-5929 PooledLoOptimizer is not thread-safe
All Optimizers in OptimizerFactory are thread safe by having the
 #generate(AccessCallback) method synchronized. The only exception is
PooledLoOptimizer who's #generate(AccessCallback) method is not
synchronized.

 - make PooledLoOptimizer#generate(AccessCallback) synchronized

 https://hibernate.onjira.com/browse/HHH-5929
 https://hibernate.onjira.com/browse/HHH-6829
2012-07-11 00:29:32 +08:00
Strong Liu a86997c7ba HHH-7442 rename org.hibernate.internal.util.Value 2012-07-10 23:28:20 +08:00
Strong Liu 507e609176 HHH-7431 Reduce NaturalIdCacheKey Memory Footprint 2012-07-10 23:10:34 +08:00
Eric Dalquist a92d402cc5 HHH-7431 Don't pre-calc toString
Remove toString pre-calculation to avoid excess memory usage.
2012-07-06 11:15:17 -05:00
Steve Ebersole d51a0d0c78 HHH-4394 - @OrderBy usage on a joined classes (when using join table) produces incorred SQL syntax. 2012-06-15 17:13:42 -05:00
Lukasz Antoniak 41bac11115 HHH-7311 - Fix and test 2012-06-12 07:22:49 +02:00
Strong Liu 1f78c9685e HHH-7382 refact: unify the configuration implementation loading strategy 2012-06-12 01:12:37 +08:00
Strong Liu 74b9ebc09a HHH-7381 license header 2012-06-11 21:54:39 +08:00
Strong Liu 451dcd5f19 HHH-7381 Refact: split CacheImpl from SessionFactoryImpl into a session factory scope service 2012-06-11 21:53:42 +08:00
Strong Liu aac6510098 HHH-7380 bug when initialize MULTI_TENANT_IDENTIFIER_RESOLVER and CUSTOM_ENTITY_DIRTINESS_STRATEGY 2012-06-11 17:46:54 +08:00
Steve Ebersole 0196ad20f8 consolidate src/test and src/matrix 2012-06-07 14:07:08 -05:00
Steve Ebersole 67c5000885 HHH-7374 - Support KEY, ENTRY and VALUE qualifiers in WHERE clause 2012-06-06 17:22:58 -05:00
Strong Liu ab8930d925 HHH-7298 sybase ase 15.7 doesn't support lock timeout in statement level 2012-06-04 11:00:11 +08:00
Steve Ebersole e26b8be6a5 HHH-6707 - One-to-One mapping with foreign key in target table and foreign key being the primary key fails with Oracle 2012-06-01 11:59:42 -05:00
Strong Liu c02de61f24 HHH-7298 seems DB2 do not support set lock timeout from statement level 2012-06-01 17:31:43 +08:00
Strong Liu 0996a970ab HHH-7298 org.hibernate.test.dialect.functional.SQLServerDialectTest#testLockNowaitSqlServer catches wrong exception 2012-06-01 15:52:00 +08:00
Strong Liu c0b4b7a577 HHH-7298 regression, org.hibernate.ejb.test.lock.LockTest 2012-05-31 18:58:00 +08:00
Strong Liu ba5a139bd1 HHH-5396 JPQL KEY(), ENTRY() and VALUE() does not recognize alias refs 2012-05-31 11:17:16 +08:00
Steve Ebersole 44fcd0a156 HHH-5396 - JPQL KEY(), ENTRY() and VALUE() does not recognize alias refs 2012-05-30 16:22:29 -05:00
Strong Liu 2b213dabc3 HHH-7298 regression, org.hibernate.ejb.test.lock.LockTest 2012-05-31 01:11:29 +08:00
Shawn Clowater 29103357a9 HHH-7292 - Changed the EntityEntry to check the CustomDirtynessStrategy first to determine if the entity needs to continue with the dirty check. Previously if the entity had mutable properties then it would bypass the custom dirty check.
To maintain legacy functionality still checking the mutable properties before checking the instrumented dirtyFlg (if applicable)

Added a Date property to the "Thing" test entity to verify that with mutable properties that the CustomDirtynessStrategy is still called.
2012-05-30 11:56:45 -05:00
Steve Ebersole c8431ce5d9 HHH-5881 - Add getter for "namedParameters" to QueryKey 2012-05-30 11:04:00 -05:00
Strong Liu 0c1569c4f4 HHH-6846 lock timeout is in milliseconds 2012-05-30 23:25:33 +08:00
Strong Liu ed266c593a HHH-6256 persistence.xml-specified javax.persistence.lock.timeout is ignored
HHH-6846 Support for Query.setHint(javax.persistence.lock.timeout)
2012-05-29 18:15:59 +08:00
Strong Liu 4266cd3585 HHH-7356 javax.persistence.lock.timeout hint is ignored by @NamedQuery 2012-05-29 17:44:09 +08:00
Guenther Demetz 2036d1479f hhh-7112 2012-05-29 17:04:44 +08:00
Strong Liu 32d36f6ea9 HHH-7356 add failure expected test 2012-05-29 16:58:28 +08:00
Lukasz Antoniak 51aa114224 HHH-7093 - Oracle does not support row value constructor syntax 2012-05-25 20:57:47 +02:00
Lukasz Antoniak af554fe59b HHH-7093 - ValidityAuditStrategy behaviour depending on row value constractor feature 2012-05-23 21:32:47 +02:00
Steve Ebersole 09d2c0d3a2 HHH-7306 - Allow use of CurrentTenantIdentifierResolver in normal session opening 2012-05-23 11:22:46 -05:00
Steve Ebersole e1062cfa22 HHH-7348 - AbstractMultiTenantConnectionProvider not closing connections 2012-05-23 09:39:36 -05:00
Strong Liu 7ed323a51f HHH-7345 rollback hibernate.properties 2012-05-23 22:08:43 +08:00
Strong Liu 9b501805c6 HHH-7345 add derby to the matrix testing suite 2012-05-23 21:31:35 +08:00
Strong Liu d92e91bb4d HHH-7346 Tests fail on Postgresql due to failure in typecasts 2012-05-23 21:28:57 +08:00
Strong Liu 1f467c01a4 HHH-7323 this test changes the Database Collation but not changed it back, which causes some other tests fail 2012-05-23 18:13:02 +08:00
Steve Ebersole db347c9de7 HHH-7074 - the replacement annotations of @Entity are not working 2012-05-22 16:13:21 -05:00
Emmanuel Bernard 04b62e1a54 HHH-7084 Do not use ClassLoaderServiceImpl classloader as parent classloader for synthetic ClassLoader 2012-05-21 10:59:09 +02:00
Strong Liu c341a3ba2c add timeout check to avoid hangs 2012-05-17 16:19:53 +08:00
Lukasz Antoniak 42b2939e7c HHH-6849 - JavaDoc update 2012-05-14 20:20:57 +02:00
Lukasz Antoniak f938a9d10e Typo in a comment 2012-05-13 20:51:19 +02:00
Lukasz Antoniak bff4a06214 HHH-6310 HHH-6728 HHH-7019 HHH-6950 - SQLServer getLimitString() correction 2012-05-13 20:33:14 +02:00
Strong Liu cf8bca6200 fixing test case, was a typo 2012-05-14 01:41:14 +08:00
Sanne Grinovero 3e9dadc6d9 memory adjustment 2012-05-13 11:24:22 +01:00
Sanne Grinovero 16d11f8422 Replace CollectionHelper.EMPTY_X with java.util.Collections.EMPTY_X 2012-05-13 11:24:02 +01:00
Gail Badner ce74c6aa3a HHH-7317 : Boolean values bound to parameters in SQL predicate cause failures using DB2 with deferPrepares = true 2012-05-11 15:55:34 -07:00
Gail Badner c533f215c5 HHH-7316 : Collection removal actions added by DefaultAutoFlushEventListener.onAutoFlush() are not removed when flush is not needed 2012-05-10 17:11:32 -07:00
Steve Ebersole 3cddb27d60 HHH-7198 - SQLServer2005Dialect.getLimitString turns tablenames to lowercase -> SQLGrammarException: when mapping tables with capital letters 2012-05-04 10:49:08 -05:00
Steve Ebersole 8e45457728 HHH-7298 - regression, org.hibernate.ejb.test.lock.LockTest 2012-05-03 11:02:41 -05:00
Steve Ebersole 070ee532f5 HHH-7298 - regression, org.hibernate.ejb.test.lock.LockTest 2012-05-03 11:02:41 -05:00
Strong Liu 2f0609819b HHH-7198 HHH-3961 2012-05-03 17:01:49 +08:00
Guenther Demetz 76ed4d44eb fixed testcases 2012-05-03 17:01:49 +08:00
Guenther Demetz 27f8a4bf93 HHH-7198 SQLServer2005Dialect.getLimitString turns tablenames
to lowercase
2012-05-03 17:01:48 +08:00
Guenther Demetz ea4125b026 Testcases for
HHH-3961 SQLServerDialect, support nowait in LockMode.UPGRADE_NOWAIT 
HHH-7198 SQLServer2005Dialect.getLimitString turns tablenames to
lowercase -> SQLGrammarException
2012-05-03 17:01:48 +08:00
Guenther Demetz d81f65715b Pull-request for HHH-3961 2012-05-03 17:01:48 +08:00
Gail Badner 4e907b6e4c HHH-6848 : Performance Optimization of in memory merge algorithm (Wim Ockerman) 2012-05-02 20:24:09 -07:00
Gail Badner 62192827cc HHH-6848 : Performance Optimization of in memory merge algorithm (Wim Ockerman) 2012-05-02 20:24:09 -07:00
Gail Badner 71a0698226 HHH-6848 : Performance Optimization of in memory merge algorithm (Wim Ockerman) 2012-05-02 20:24:09 -07:00
Steve Ebersole 6ca09342f8 HHH-7296 - NPE in JtaTransaction#markRollbackOnly 2012-05-02 22:26:17 -05:00
Bryan Varner 5c0d449082 Cleaned up the dialect error conversion a little bit for PostgresSQL. I was doing more than I needed to.
Updated the LockTest to enable another nowait test for postgresql.
2012-05-02 17:17:42 -05:00
Bryan Varner cb1c485774 Yes, much cleaner... 2012-05-02 17:17:42 -05:00
Bryan Varner d28cb4c39f Added a test case for HHH-7251 2012-05-02 17:17:42 -05:00
Bryan Varner eb66fed976 HHH-7251 PostgreSQL dialects now convert proper HibernateExceptions for Deadlock / lock timeout (not available with NOWAIT query). 2012-05-02 17:17:42 -05:00
Guenther Demetz 0bca4ab9d9 testcase for HHH-7245 (Inline natural-id synchronization doesn't
consider objects loaded from shared cache)
2012-05-02 16:15:24 -05:00
Guenther Demetz 94cb6b82b5 HHH-7245 2012-05-02 16:14:10 -05:00
Guenther Demetz f5e6a44f7e HHH-7279 2012-05-02 15:54:32 -05:00
Guenther Demetz 94341fdc44 HHH-7278 testcases 2012-05-02 15:54:32 -05:00
Guenther Demetz bd5e97c201 HHH-7278 2012-05-02 15:54:32 -05:00
Steve Ebersole 23aa8875d8 HHH-7265 - ConcurrentModificationException in SynchronizationRegistryImpl.notifySynchronizationsAfterTransactionCompletion due to SynchronizationRegistryImpl.clearSynchronizations clearing SynchronizationRegistryImpl.synchronizations 2012-05-02 14:14:48 -05:00
Gail Badner 48665213ff HHH-7265 : added SessionOwner and SessionBuilderImplementor 2012-05-02 14:14:48 -05:00
Gail Badner 3a5b231187 HHH-7265 : ConcurrentModificationException in SynchronizationRegistryImpl.notifySynchronizationsAfterTransactionCompletion 2012-05-02 14:14:48 -05:00
Steve Ebersole a495479816 HHH-7239 - have session remove itself from list of transaction observers on close 2012-05-02 12:42:50 -05:00
Shawn Clowater 287c0eba88 Temporary fix until the SPIs can be reworked. Remove the transaction observer on Session close and added some checks to ensure the session is still open when the listeners fire. 2012-05-01 19:37:05 -05:00
Steve Ebersole a2bbe3cb53 HHH-7282 - Move org.hibernate.cache.internal.Timestamper to hibernate-testing module 2012-04-27 10:51:50 -05:00
Steve Ebersole ebe578931c HHH-6405 - setFetchMode ignored in certain cases when using criteria queries 2012-04-27 08:48:09 -05:00
Strong Liu 01621d3bb5 HHH-7283 hibernate is not compilable on JDK7 2012-04-27 17:27:34 +08:00
Strong Liu 016ce8649e HHH-7281 Tests fail on Postgresql due to failure in typecasting 2012-04-27 16:44:59 +08:00
Steve Ebersole bfc8e6ec81 HHH-1512 - Problem to lock a row in a DB2 database with LockMode UPGRADE 2012-04-26 13:18:05 -05:00
Steve Ebersole cedd3122d2 HHH-7276 - Regression allows entity to be looked up by previous natural id 2012-04-25 11:34:32 -05:00
Shawn Clowater 7fa7a51016 HHH-7239
Adding unit tests for the transaction coordinator when using shared transaction context.
One test to show that Sessions are leaked to the transaction observer, one to show that afterTransactionCompletion is not called on any session other than the main and finally one to show that the original session cannot be reused if child sessions were autoclose or flushBeforeCompletion.
2012-04-24 14:48:24 -05:00
Steve Ebersole e3e4968960 HHH-7250 - Bug in SharedCache handling of Natural-id 2012-04-24 13:54:24 -05:00
Steve Ebersole 279f545740 HHH-7272 - Have ClassLoaderServiceImpl use Class.forName rather than ClassLoader.loadClass 2012-04-24 12:23:34 -05:00
Steve Ebersole 98306dd4c1 HHH-7272 - Have ClassLoaderServiceImpl use Class.forName rather than ClassLoader.loadClass 2012-04-24 12:22:18 -05:00
Steve Ebersole 946f0297bb HHH-7237 - Inline natural-id synchronization doesn't consider reattached objects 2012-04-24 11:23:22 -05:00
Guenther Demetz 76504f128f HHH-7237 - Inline natural-id synchronization doesn't consider reattached objects 2012-04-23 21:55:14 -05:00
Guenther Demetz 572e78dce4 HHH-7237 - Inline natural-id synchronization doesn't consider reattached objects 2012-04-23 21:51:17 -05:00
Steve Ebersole d1a7495218 HHH-7235 - Support null NaturalId values in loadEntityIdByNaturalId query 2012-04-23 14:26:45 -05:00
Steve Ebersole 37b645999c HHH-7225 - NullPointerException after persisting null entity value as natural-Id 2012-04-23 13:27:14 -05:00
Steve Ebersole 60e92614be HHH-6405 - setFetchMode ignored in certain cases when using criteria queries 2012-04-23 12:05:56 -05:00
David Mansfield f12f2324c6 HHH-6405 setFetchMode ignored for some association types when using criteria queries
Re-unifie the two methods getJoinType in the CriteriaJoinWalker, using if/else to delegate to the correct super.getJoinType(...) method as appropriate.  This allows the proper handling for setFetchMode specified in the criteria translator to be applied correctly.
2012-04-23 11:04:39 -05:00
David Mansfield ed0a9fbc00 HHH-6405 test case for setFetchMode ignored using criteria queries 2012-04-23 11:04:39 -05:00
Lukasz Antoniak cfa729d8b3 HHH-6790 - Sequence per entity for enhanced SequenceStyleGenerator 2012-04-21 12:32:42 +02:00
Steve Ebersole 70847a2331 HHH-7266 - Move away from use of Enhydra developed DataSource for JTA testing 2012-04-20 17:08:53 -05:00
Hardy Ferentschik 9a709fdfa0 Some updates of text and links 2012-04-20 17:38:07 +02:00