Commit Graph

1778 Commits

Author SHA1 Message Date
amkad 0aa4d6cfb5 Changed test to reproduce HHH-4261 2013-07-10 11:42:54 -04:00
amkad 3a07c28c08 Fixed @Any and @ManyToAny support in overridden JPA annotation reader HHH-4261 2013-07-10 11:42:52 -04:00
Brett Meyer 95d113f8d2 HHH-8318 @SkipForDialect added 2013-07-09 13:06:26 -04:00
JohnOhara 750903fc1d HHH-8106 Fixed bug with Enhancement Task 2013-07-03 10:27:37 -04:00
Brett Meyer ded1303b30 HHH-8210 JdbcCoordinatorImpl logs excessive warnings with some
connection pools
2013-06-27 22:49:09 -04:00
Brett Meyer 77fd4d6a89 HHH-8319 checkstyle 2013-06-21 10:52:58 -04:00
justinsubert 5abe02f92d HHH-8319
Conflicts:
	hibernate-core/src/main/java/org/hibernate/dialect/MySQL5Dialect.java
2013-06-21 10:52:54 -04:00
Steve Ebersole ac56d4eaae HHH-8318 - Problem determining qualifier to use for column names from HQL query parser in certain circumstances 2013-06-20 23:34:48 -04:00
Brett Meyer 8a63228c3b HHH-8318 updated test case 2013-06-20 23:34:47 -04:00
Brett Meyer 1b076074b0 HHH-8318 test case 2013-06-20 23:34:47 -04:00
Strong Liu 363a3b2b58 HHH-8312 - named parameters binding are not correct when used within subquery 2013-06-15 16:43:06 +08:00
Lukasz Antoniak 0ee13cfa08 HHH-8301 - SQLServer2005LimitHandler skips column alias generation
(cherry picked from commit 6a71cbb991)
2013-06-11 10:16:59 -07:00
Brett Meyer b02364a737 HHH-8255 made a few hibernate-core imports optional in the manifest
Conflicts:
	hibernate-core/hibernate-core.gradle
2013-06-07 13:11:17 -04:00
Brett Meyer 4a419ed611 HHH-8275 union-subclass generates bad alter table for unique constraint 2013-06-03 17:29:25 -04:00
Brett Meyer 7fad06da4a HHH-8269 DenormalizedTable FK constraint names can be too long 2013-05-25 20:29:25 -04:00
Brett Meyer ad2639f01b HHH-8083 @OrderColumn not updated on @OneToMany cascade
Conflicts:
	hibernate-core/src/main/java/org/hibernate/action/internal/CollectionUpdateAction.java
2013-05-22 13:06:18 -04:00
Brett Meyer 6f6e3c62b2 HHH-6813 Corrected EntityType#getRHSUniqueKeyPropertyName() and added
regression test.
2013-05-20 11:19:06 -04:00
Brett Meyer 335ddeaefc HHH-8254 throw HibernateException when transaction is rolledback by a
reaper thread
Conflicts:
	hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/transaction/TransactionJoiningTest.java
2013-05-17 13:37:00 -04:00
Brett Meyer e361ad49fe HHH-6813 @Id @OneToOne cause NullPointerException during query 2013-05-16 18:51:12 -04:00
george-007 c1eff0f8b9 Update DefaultInitializeCollectionEventListener.java 2013-05-16 11:54:32 -04:00
Brett Meyer 920ba3641f HHH-2664 full join not working 2013-05-15 00:35:23 -04:00
Brett Meyer b48f83b055 HHH-6813 @Id @OneToOne cause NullPointerException during query 2013-05-10 13:09:35 -04:00
Brett Meyer 66c15d39fd HHH-8226 2013-05-07 16:06:34 -04:00
Brett Meyer 17c6204091 HHH-8217 Make generated constraint names short and non-random
Conflicts:
	hibernate-core/src/main/java/org/hibernate/cfg/AnnotationBinder.java
	hibernate-core/src/main/java/org/hibernate/cfg/Configuration.java
	hibernate-core/src/main/java/org/hibernate/mapping/Constraint.java
	hibernate-core/src/main/java/org/hibernate/mapping/UniqueKey.java
2013-05-07 15:18:21 -04:00
Brett Meyer 8e3fd81046 HHH-7995 Added support for TypeContributors in OSGi. Integrated with
envers
2013-04-30 12:50:02 -04:00
Steve Ebersole aecd5a444b HHH-7998 - Add TypeContributions contract
Conflicts:
	hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java
	hibernate-core/src/main/java/org/hibernate/metamodel/internal/MetadataImpl.java
	hibernate-core/src/main/java/org/hibernate/metamodel/spi/TypeContributor.java
2013-04-30 10:54:16 -04:00
Brett Meyer d0098f3caa HHH-8162 Make unique constraint handling on schema update configurable
Conflicts:
	hibernate-core/src/main/java/org/hibernate/cfg/AvailableSettings.java
	hibernate-core/src/main/java/org/hibernate/cfg/Configuration.java
	hibernate-core/src/test/java/org/hibernate/test/annotations/join/JoinOrderingTest.java
2013-04-24 17:31:58 -04:00
Brett Meyer a30347552c HHH-7995 Auto-discovery of Hibernate extension points in OSGi 2013-04-22 15:19:23 -04:00
Steve Ebersole cf8113d54a HHH-7880 - SessionFactory.openStatelessSession() does not respect tenant identifier from CurrentTenantIdentifierResolver 2013-04-15 14:46:49 -05:00
Brett Meyer b455b2ddc9 HHH-8183 Added setting to enable synonyms
Conflicts:
	hibernate-core/src/main/java/org/hibernate/cfg/AvailableSettings.java
2013-04-15 13:25:26 -04:00
Baptiste Mathus e2afe7f55d Adding SYNONYM in the list of searched types. 2013-04-15 13:25:26 -04:00
Steve Ebersole 812d3f6bf0 HHH-7974 - Session.getTenantIdentifier() not callable without active transaction
(cherry picked from commit d9aa9d3cd2)
2013-04-15 11:29:33 -05:00
Nikolay Shestakov 06e6c04e39 HHH-7908 Logging level checking
Conflicts:
	hibernate-core/src/main/java/org/hibernate/type/descriptor/sql/BasicExtractor.java
2013-04-12 09:47:50 -04:00
Lukasz Antoniak 0958313ebc HHH-7478 - Fix and test 2013-04-11 18:16:31 -04:00
Nikolay Shestakov 8730320ad6 using ConcurrentHashMap for decrease synchronization 2013-04-11 17:59:59 -04:00
Jeremy Whiting afeabdc7b0 HHH-8180 Checks for logging level. Logging level check moved to variable
outside for loop.

Conflicts:
	hibernate-core/src/main/java/org/hibernate/loader/Loader.java
2013-04-11 17:54:29 -04:00
Lukasz Antoniak ed9d7f2fa2 HHH-7357 - Constraint violation exception while inserting NULL to not nullable column 2013-04-11 16:37:41 -04:00
Lukasz Antoniak b838344eeb HHH-7605 - Event cache descriptive error messages 2013-04-11 16:19:46 -04:00
Lukasz Antoniak cbd1d1e0c2 HHH-8103 - Oracle LOBs with SequenceIdentityGenerator 2013-04-11 15:33:14 -04:00
Brett Meyer 486cac2174 HHH-8178 Natural IDs generate one UniqueKey for all columns 2013-04-11 14:19:51 -04:00
Brett Meyer e63dc96b13 HHH-8175 Test fixes for postgresplus92 2013-04-11 14:19:47 -04:00
Lukasz Antoniak 8d82be8d30 HHH-2403 - Test cleanup
(cherry picked from commit 35bd192556)
2013-04-11 09:15:00 +02:00
Brett Meyer cde3d876d8 HHH-8084 LobMergeTest fails on oracle 2013-04-10 15:13:23 -04:00
Brett Meyer 838e71a0ee HHH-8092 Added comment about unique constraints in schema update. 2013-04-05 12:16:27 -04:00
Brett Meyer 8d4b4857b7 HHH-7993 Support jar scanning in OSGi 2013-04-04 15:01:37 -04:00
Brett Meyer e750fe7755 HHH-8136 Correct "to_char" function in HSQL 2013-04-03 11:16:31 -04:00
Brad Koehn 2758b8b494 HHH-7714 Add support for EntityMode.MAP to JPA Criteria API 2013-03-29 09:14:47 -05:00
Strong Liu b2fe7423a6 HHH-7869 code format 2013-03-26 16:37:27 +08:00
Strong Liu ba2dc24c42 HHH-7869 simple improvement, using generic 2013-03-26 16:37:10 +08:00
Strong Liu 8850c1fa91 HHH-7869 bad performance problem with org.hibernate.internal.util.StringHelper#firstIndexOfChar 2013-03-26 16:37:03 +08:00
Brett Meyer 941579da74 HHH-6496 Added LOG 2013-03-25 16:30:00 -04:00
Kamyar Sajjadi 18b0325e51 HHH-6496 - Changed line 200 returning real object instead of proxy 2013-03-25 16:22:00 -04:00
Lukasz Antoniak 62cea68007 HHH-7984 - Oracle callable statement closing
Conflicts:
	hibernate-core/src/main/java/org/hibernate/loader/Loader.java
	hibernate-core/src/main/java/org/hibernate/loader/entity/DynamicBatchingEntityLoaderBuilder.java
2013-03-25 13:48:55 -04:00
Brett Meyer f83d29be90 HHH-1904 Hash the natural id unique key names 2013-03-21 15:57:43 -04:00
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
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