Commit Graph

1574 Commits

Author SHA1 Message Date
Brett Meyer 84e21fb18d HHH-8085 QueryCacheTest.testGetByCompositeId fails on db2-97 -- DB2 SQL
Error: SQLCODE=-613
2013-03-21 09:52:25 -04:00
Brett Meyer 9f58f29502 HHH-8092 Configuration#generateSchemaUpdateScript does not create unique
constraints
2013-03-21 09:34:12 -04:00
Brett Meyer 4f0344dbbe HHH-1904 Identifier too long
Conflicts:
	hibernate-core/src/main/java/org/hibernate/mapping/Table.java
2013-03-20 16:33:19 -04:00
Brett Meyer d9673b8a70 HHH-8082 HQLScrollFetchTest.testScroll hangs on DB2-97 2013-03-19 18:27:47 -04:00
timpeeters 4657d306fc HHH-8076 Make javax.security and javax.validation optional
Currently the OSGi manifest creation via Gradle automatically imports all packages that are used by hibernate-core. Although this saves you from having to list all the imports manually, it does mean that some optional dependencies suddenly become mandatory dependencies. I've updated the hibernate-core Gradle build file to make the hibernate-core dependencies on javax.security and javax.validation optional. This way you are not forced to have these dependencies available in your OSGi container. More information in HHH-7941.
2013-03-15 09:58:03 -04:00
Brett Meyer 4d20fb5334 HHH-8073 Corrected column alias creation 2013-03-14 17:41:01 -04:00
Brett Meyer a7b4e9f8fd HHH-8061 Added a supportsExpectedLobUsagePattern check 2013-03-14 15:52:10 -04:00
Brett Meyer 48e7c211cd HHH-4412 Corrected multiple test issues found in matrix CI 2013-03-14 14:12:57 -04:00
Brett Meyer a9a8ecb221 HHH-7910 Corrected thread checking logic 2013-03-14 11:57:50 -04:00
Strong Liu 073d673895 HHH-7978 - Document new feature from HHH-5869 2013-03-13 14:40:28 +08:00
Brett Meyer 809a4d15e7 HHH-5732 Corrected test failing on SQL Server 2013-03-11 17:21:52 -04:00
Brett Meyer 2d1596086e HHH-4412 Corrected multiple test issues found in matrix CI 2013-03-11 15:41:22 -04:00
Brett Meyer 03d48893cf HHH-7910 Transaction timeout can cause non-threadsafe session access by
reaper thread

Conflicts:
	hibernate-entitymanager/src/test/java/org/hibernate/ejb/test/transaction/TransactionJoiningTest.java
2013-03-08 13:10:07 -05:00
Brett Meyer 9684a0afa5 HHH-7890 Quoting identifiers breaks @UniqueConstraint 2013-03-07 11:55:02 -05:00
Brett Meyer ad6c4d06b0 HHH-5732 @OrderColumn not updated if @OneToMany has mappedby defined 2013-03-06 18:02:14 -05:00
Steve Ebersole 5fc07a1fa3 HHH-5732 - @OrderColumn not updated if @OneToMany has mappedby defined 2013-03-06 18:02:08 -05:00
Brett Meyer c2e37d73af HHH-8022 Comments and copyrights 2013-03-06 10:24:13 -05:00
Lukasz Antoniak c69fde0c6d HHH-8022 - Reading REF CURSOR 2013-03-06 10:24:10 -05:00
Brett Meyer 9edc30f9f0 HHH-4412 Cleanup and copyrights
Conflicts:
	hibernate-core/src/main/java/org/hibernate/cfg/annotations/QueryBinder.java
2013-03-06 09:49:10 -05:00
Janario Oliveira 4970d80007 HHH-4412 - Created native query to insert, delete, update 2013-03-06 09:32:11 -05:00
Brett Meyer 42b7f1b050 HHH-8037 Pulled duplicate code into StringHelper 2013-03-05 20:40:53 -05:00
Barney b65d41c940 HHH-8037 - Empty SQL statements with custom UniqueDelegate 2013-03-05 20:40:49 -05:00
Brett Meyer 04c38f189b HHH-8025 Implemented eqOrIsNull and neOrIsNotNull criteria 2013-02-28 16:43:53 -05:00
Brett Meyer c4eff66948 HHH-8025 Revert "HHH-2951 Restrictions.eq when passed null, should create a NullRestriction"
This reverts commit 265b3d37cf.
2013-02-28 15:41:50 -05:00
Brett Meyer 5f38be4659 HHH-8010 Support app-managed EntityManagerFactory and SessionFactory creation by OSGi bundles 2013-02-28 09:22:37 -05:00
Brett Meyer fa804c1577 HHH-8026 corrected test 2013-02-27 15:35:15 -05:00
Brett Meyer f7363509bd HHH-8026 Duplicate constraint names with unique=true 2013-02-27 15:22:17 -05:00
Brett Meyer 101b3debcd HHH-8029 Improve SimpleNationalizedTest 2013-02-22 13:57:39 -05:00
Steve Ebersole be61e54416 HHH-7990 - Bootstrapping Hibernate fails if javax.validation API is on classpath but no provider 2013-02-22 12:52:02 -06:00
Steve Ebersole 09620e3cae HHH-7990 - Bootstrapping Hibernate fails if javax.validation API is on classpath but no provider 2013-02-22 12:51:37 -06:00
Steve Ebersole 3bb451b10b HHH-7990 - Bootstrapping Hibernate fails if javax.validation API is on classpath but no provider
(cherry picked from commit 898bab28ca)
2013-02-22 12:23:33 -06:00
Lukasz Antoniak 477b239994 HHH-7608 - Fix and test 2013-02-19 17:34:04 -05:00
Lukasz Antoniak 5a7ed73b1c HHH-4150 - Fix and test
Conflicts:
	hibernate-core/src/main/antlr/hql.g
2013-02-19 17:30:58 -05:00
Lukasz Antoniak a89a9f33b2 HHH-2045 - HQL empty IN list 2013-02-19 17:11:41 -05:00
Kamyar Sajjadi 2ee27348d0 HHH-7952 Typo in Javadoc For TableGenerator/TableHiLoGenerator 2013-02-19 15:59:36 -05:00
Brett Meyer b51d9649e2 HHH-7889 Created SQL ClobTypeDescriptor#STREAM_BINDING_EXTRACTING for
Sybase remapping.  Reverting back to Lob extraction ignoring
useStreamForLobBinding
2013-02-19 15:25:17 -05:00
Brett Meyer 1e5fdfc689 HHH-8018 Reverted back to BLOB_BINDING for extraction until investigated 2013-02-18 14:43:51 -05:00
Brett Meyer d315f6532f HHH-8017 Correct SybaseDialect's getNullColumnString 2013-02-18 11:49:29 -05:00
Strong Liu a6c46408df HHH-8015 Spring 3.2.1 cannot be deployed on JBoss AS7 with Hibernate 4.1.6 due to class loader issues. 2013-02-18 23:39:23 +08:00
Lukasz Antoniak 52f2edfa45 HHH-8007 - Fix and test 2013-02-15 10:14:43 -05:00
Brett Meyer 68b45f48bb HHH-8005 Sybase 15 - nullable column are not nullable (when created by
SchemaExport)
2013-02-14 18:43:09 -05:00
Brett Meyer f1a4d17e2b HHH-6841 Applied @SkipForDialects to a couple of tests 2013-02-14 18:12:28 -05:00
Brett Meyer b7d545e778 HHH-4084 Corrected test for 4.1 2013-02-14 17:40:40 -05:00
Brett Meyer 97770fe6a9 HHH-4084 Corrected test compiling error 2013-02-14 17:37:56 -05:00
Nikolay Shestakov 7c6d65f938 fix review remark 2013-02-14 17:22:31 -05:00
Nikolay Shestakov 5cc0864562 HHH-4084 @UniqueConstraint(columnNames="") causes StringIndexOutOfBoundsException 2013-02-14 17:22:28 -05:00
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