Commit Graph

1167 Commits

Author SHA1 Message Date
Steve Ebersole 3800a0e695 HHH-7206 - Manage natural-id synchronization without flushing 2012-04-03 15:54:46 -05:00
Galder Zamarreño 5fa28e87ea HHH-7179 Complete support for Natural Id caching for Infinispan 2012-04-02 11:10:36 +02:00
Steve Ebersole 9c207b1128 HHH-7210 - Natural-id cache put stats not being correctly updated on insert for "asynch" cache providers 2012-03-30 12:02:25 -05:00
Steve Ebersole ce4e2eda87 HHH-7209 - Add varargs versions of Restrictions.and/or 2012-03-29 14:46:02 -05:00
Steve Ebersole fd9d168d19 HHH-7193 - Transaction Rollback not clearing statement batch on Prepared Statement causes issues with statement caching 2012-03-29 13:03:56 -05:00
Shawn Clowater b09e2729c0 HHH-7193
Added clearBatch() to the releaseStatements() of AbstractBatchImpl in order to prevent batches from rolled back transactions being applied.

Added StatementCacheTest to illustrate the issue.

Added a validator dependency for c3p0 tests since I needed to have the batch semi aborted.
2012-03-29 13:03:56 -05:00
Emmanuel Bernard d159dcef6f HHH-7200 SessionFactoryObservers should be notified of the close event in reverse order of the create event 2012-03-27 15:44:16 +02:00
Shawn Clowater b2c4585921 HHH-7194
Fixed NullPointerException when using nested Subqueries in the CriteriaAPI when trying to determine the entity name and test that demonstrates the issue.
2012-03-26 22:36:03 -05:00
Steve Ebersole ff394e4a6a HHH-6915 - Restrictions.ilike(String propertyValue, Object value) does not correctly initialize LikeExpresison 2012-03-26 21:13:16 -05:00
Steve Ebersole cf181b41b5 HHH-7199 - proper JTA and auto-commit interaction for envers testsuite 2012-03-26 20:09:18 -05:00
Strong Liu d3b640cb75 HHH-7197 reimport imports 2012-03-26 16:17:45 +08:00
Strong Liu d2852e3c4d a little improvment on the build script 2012-03-23 16:02:45 +08:00
Steve Ebersole e24451637d HHH-7190 - Cache JDBC proxy class defintions 2012-03-22 09:04:44 -05:00
Steve Ebersole 624855c438 HHH-5732 - @OrderColumn not updated if @OneToMany has mappedby defined 2012-03-21 11:19:35 -05:00
Steve Ebersole 23f49f19b5 HHH-1657 - hql update generate wrong sql with joined subclass hierarcy 2012-03-20 21:52:49 -05:00
Steve Ebersole 4f64b56a88 HHH-7160 - NaturalIdXrefDelegate#cache() needs to remove obsolete entries in shared cache when NaturalId values changed 2012-03-20 13:34:19 -05:00
Steve Ebersole fb0b90bd2d HHH-7191 - NaturalIdCache improperly declared 2012-03-20 13:34:18 -05:00
Steve Ebersole 1877315ee3 HHH-7090 - Temporary session closing affects original session 2012-03-20 08:40:50 -05:00
Strong Liu 38c4f02cea HHH-7107 org.hibernate.test.locking.LockModeTest hangs on Sybase 15.5 and DB2-97 2012-03-20 13:21:42 +08:00
Steve Ebersole 5d6d9b87c1 HHH-7020 - Connection leak with nested sessions 2012-03-19 19:09:44 -05:00
Steve Ebersole 5a1d523b4d HHH-7090 - Temporary session closing affects original session 2012-03-19 17:34:15 -05:00
Hardy Ferentschik 60c1b23c7b HHH-6271 Introducing Byteman in order to really test that a certain log message gets never called. 2012-03-19 23:19:46 +08:00
Hardy Ferentschik fa1183f3f9 HHH-6271 Unifying error logger in XMLHelper and standalone ErrorLogger. Removing the former and integrating some features of the latter into ErrorLogger.
Also using a deferred logging approach.
2012-03-19 23:19:45 +08:00
Hardy Ferentschik 6c0ebd40a5 HHH-6271 Adding some more tests 2012-03-19 23:19:45 +08:00
Hardy Ferentschik 8373871c30 HHH-6271 Javadocs and some generics fixes 2012-03-19 23:19:45 +08:00
Hardy Ferentschik ddcd060441 HHH-6271 Adding explicit test showing that orm version 1 works 2012-03-19 23:19:45 +08:00
Hardy Ferentschik 9272a905a0 HHH-6271 Fixing a typo in class name 2012-03-19 23:19:45 +08:00
Hardy Ferentschik 99be673a32 HHH-6271 Formatting and adding consistent licence header. Removing $Id which is a legacy from svn.
No functional changes
2012-03-19 23:19:44 +08:00
Steve Ebersole ee9b3585c5 HHH-7020 - Connection leak with nested sessions 2012-03-15 10:18:05 -05:00
Strong Liu e049fd6296 uid is a oracle keyword 2012-03-15 16:48:20 +08:00
Strong Liu b145388625 HHH-7174 org.hibernate.test.tm.CMTTest.testConcurrentCachedQueries fails due to test cases interdependent 2012-03-15 16:41:09 +08:00
Steve Ebersole ef41cdd6dd HHH-7133 - NaturalIdLoadAccess not correctly working on mutable NaturalId's 2012-03-14 17:56:10 -05:00
Steve Ebersole 8ffdc614d7 HHH-7133 - NaturalIdLoadAccess not correctly working on mutable NaturalId's 2012-03-14 15:11:29 -05:00
Steve Ebersole 77393f77f9 HHH-7167 - The new natural id code introduced in 4.1.1 depends on the order the entity persisters are loaded which leads to fatal errors 2012-03-14 14:25:27 -05:00
Steve Ebersole c7afef512e HHH-7158 - Regression: null values on NaturalId's at persist-time are causing subsequent NPE's and wrong behaviour 2012-03-14 13:36:47 -05:00
Steve Ebersole e532dc5e7d HHH-7165 - count() query on classes using EmbeddedId should not use id column tuple on Dialects which dont support non-distinct tuple counts 2012-03-14 12:05:28 -05:00
Strong Liu 90d02e669b HHH-7169 - fix failling tests 2012-03-14 14:26:07 +08:00
Steve Ebersole 87941b89aa HHH-7169 - Use ClassLoaderService to load JDBC driver classes 2012-03-13 14:51:04 -05:00
Steve Ebersole c3fc7f3214 HHH-7165 - count() query on classes using EmbeddedId should not use id column tuple on Dialects which dont support non-distinct tuple counts 2012-03-13 12:27:48 -05:00
Steve Ebersole 41dd7079e0 HHH-7165 - count() query on classes using EmbeddedId should not use id column tuple on Dialects which dont support non-distinct tuple counts 2012-03-13 12:27:48 -05:00
Strong Liu b51b2ff4cb HHH-7156 Make Hibernate ORM compile and run tests using JDK 7 (and JDK 6) 2012-03-13 21:58:48 +08:00
Steve Ebersole dceda48ff1 HHH-7162 - Use concise artifact syntax in build scripts 2012-03-09 13:40:26 -06:00
Zbyněk Roubalík 3e99b2c440 HHH-7159 Database keywords causes failure of some tests in org.hibernate.test.collection.custom 2012-03-08 15:40:44 +01:00
Steve Ebersole 05c3679373 HHH-7138 - Hibernate implements JPA @OneToMany collection versioning incorrectly 2012-03-07 20:40:42 -06:00
Strong Liu 94e79944b8 HHH-5927 remove logging guard and correct javadoc 2012-03-06 23:28:22 +08:00
Strong Liu b4659173a8 1. remove commons-collections dependency.
2. moved org.hibernate.internal.util.collections.ConcurrentReferenceHashMap from envers module to core, and change it to doesn't allow null key / value.
3. Using ConcurrentReferenceHashMap this to replace old ReferenceMap (from commons-collections) which used in StatefulPersistenceContext.
4. copied org.hibernate.internal.util.collections.BoundedConcurrentHashMap from infinispan code base.
5. deprecate properties QUERY_PLAN_CACHE_MAX_STRONG_REFERENCES and QUERY_PLAN_CACHE_MAX_SOFT_REFERENCES
6. add two new properties QUERY_PLAN_CACHE_PARAMETER_METADATA_MAX_SIZE and QUERY_PLAN_CACHE_MAX_SIZE
7. remove LRUMap, SimpleMRUCache and SoftLimitMRUCache
2012-03-06 23:28:22 +08:00
Strong Liu 01fe115adf HHH-6100 unqualify entity name and minor improvement 2012-03-06 23:04:32 +08:00
Strong Liu ae5d030ae1 HHH-6100 Bug fix related to CriteriaQuery (JPA) when using XML mappings 2012-03-06 23:04:31 +08:00
Steve Ebersole 7a9cdb5379 HHH-7147 - ServiceRegistry is starting services twice 2012-03-05 15:06:25 -06:00
Steve Ebersole 3d3ac538d8 HHH-7138 - Hibernate implements JPA @OneToMany collection versioning incorrectly 2012-03-05 15:06:10 -06:00
Steve Ebersole 36c135ab66 HHH-4417 - Add annotation support for UserCollectionType 2012-03-05 10:24:47 -06:00
Steve Ebersole 497f700c16 HHH-7138 - Hibernate implements JPA @OneToMany collection versioning incorrectly 2012-03-03 16:51:58 -06:00
Steve Ebersole ba6ad4d072 HHH-7138 - Hibernate implements JPA @OneToMany collection versioning incorrectly 2012-03-02 17:09:43 -06:00
Laird Nelson a3b02e404d Fixed bug https://hibernate.onjira.com/browse/HHH-6883. 2012-03-02 14:06:51 -06:00
Steve Ebersole d7d9f0dfb2 HHH-4417 - Add annotation support for UserCollectionType 2012-03-02 13:17:14 -06:00
Steve Ebersole 0732db14b8 HHH-7097 - Entity load event doesn't result in naturalId->pk caching 2012-03-02 12:47:01 -06:00
Steve Ebersole a889b6cca1 HHH-7097 - Entity load event doesn't result in naturalId->pk caching 2012-03-01 13:22:09 -06:00
Steve Ebersole 7678917313 Merge branch 'HHH-7097' of https://github.com/edalquist/hibernate-core 2012-03-01 10:45:15 -06:00
Steve Ebersole 9bbcf5a6d0 HHH-7095 - Handle RegionFactory.buildNaturalIdRegion throwing UnsupportedOperationException 2012-03-01 10:40:59 -06:00
Steve Ebersole 93b0955641 Merge branch 'HHH-7095' of https://github.com/edalquist/hibernate-core 2012-03-01 10:34:38 -06:00
Steve Ebersole 9768dacb6f Merge branch 'HHH-7094' of https://github.com/edalquist/hibernate-core 2012-03-01 10:30:10 -06:00
Steve Ebersole 9f4fd48603 HHH-7085 - Entities marked as @Immutable that have a @NaturalId fail to be inserted with NPE 2012-03-01 10:01:23 -06:00
Eric Dalquist f1a54aeadf HHH-7085 Use the in-flight state for naturalId caching
Pass the current state Object[] from the event into the SPC to use
for naturalId caching
2012-03-01 10:01:22 -06:00
Eric Dalquist b5ba7bef42 HHH-7085 Add delete to immutable test 2012-03-01 10:01:22 -06:00
Eric Dalquist 571266aa3d HHH-7085 Add unit test that demonstrates error
Add unit test for @Immutable entity that has an @NaturalId
2012-03-01 10:01:21 -06:00
Steve Ebersole d66d335f29 HHH-7023 - Deprecate HQL-specific (JDBC-style) positional parameters 2012-02-29 18:00:15 -06:00
Steve Ebersole 982aad716f HHH-7129 - Throw exception when metadata attempts to spread @NaturalId across an entity hierarchy 2012-02-29 15:32:54 -06:00
Strong Liu 1278d12000 minor change and reformat partial code 2012-02-26 23:37:33 +08:00
Lukasz Antoniak 4e2d7d123d HHH-7117 - Fix and test 2012-02-24 21:35:17 +01:00
Strong Liu 84f3821c03 HHH-7102 Misleading error message is shown when no RegionFactory is manually set 2012-02-23 16:55:02 +08:00
Eric Dalquist c0b66d5298 HHH-7097 Cache naturalId mapping on load event 2012-02-21 11:15:21 -06:00
Eric Dalquist e18cba8761 HHH-7095 Handle UnsupportedOperationException from RegionFactory.buildNaturalIdRegion
Disable 2L naturalId caching if an UnsupportedOperationException is thrown
2012-02-21 10:49:11 -06:00
Eric Dalquist ec86bf9d1f HHH-7094 Call autoFlushIfRequired before naturalId query execution 2012-02-21 10:40:59 -06:00
Steve Ebersole 2107411faf HHH-7046 - Polymorphic query by natural ID broken 2012-02-15 17:18:41 -06:00
Steve Ebersole 7861fdee44 HHH-7067 - Update build to work with Gradle m8 2012-02-15 16:33:45 -06:00
Sanne Grinovero 40146b2920 avoid declaring unthrown exception 2012-02-15 15:17:45 +00:00
Sanne Grinovero ebd78e9bb1 Convert grammars to use StringBuilder as well 2012-02-15 15:17:45 +00:00
Sanne Grinovero 37dafa2a5a Replace many StringBuffer occurrences with StringBuilder 2012-02-15 15:17:45 +00:00
Sanne Grinovero a8dee131e4 Incorrect buffer size estimate for string concatenation in InterbaseDialect 2012-02-15 15:17:45 +00:00
Sanne Grinovero b3bb6d6dd6 remove dead code from boolean operand 2012-02-15 15:17:45 +00:00
Sanne Grinovero 10df95bbcd SimpleProjection should reuse commonly generated Strings 2012-02-15 15:17:45 +00:00
Sanne Grinovero f9ab0eb6ae HHH-7066 More code taking advantage from the Clob extraction 2012-02-15 15:17:45 +00:00
Sanne Grinovero 98082feb11 HHH-7066 use a larger buffer by default 2012-02-15 15:17:45 +00:00
Sanne Grinovero 818dd5959d HHH-7066 Extract a constant for the suggested default read buffer size 2012-02-15 15:17:45 +00:00
Sanne Grinovero 2710576f45 HHH-7066 optimize for a special but not unlikely case 2012-02-15 15:17:45 +00:00
Sanne Grinovero 18185e58f0 HHH-7066 make sure buffer size is at least 1 2012-02-15 15:17:44 +00:00
Sanne Grinovero f51779d2f7 HHH-7066 byte arrays to String conversion benefits from initial buffer size 2012-02-15 15:17:44 +00:00
Sanne Grinovero 98d0b8398d HHH-7066 Use known length from Clob to allocate StringBuffer 2012-02-15 15:17:44 +00:00
Sanne Grinovero 6497ff6a52 HHH-7066 Allocate smaller buffer if possible 2012-02-15 15:17:44 +00:00
Sanne Grinovero 939d7fc4c9 Remove defenses against non-JDBC4 class existance 2012-02-15 15:17:44 +00:00
Sanne Grinovero b7d80b8e6d whitespace and formatting fixes 2012-02-15 15:17:44 +00:00
Strong Liu c83b540218 HHH-3718 rolling back changes 2012-02-14 18:53:28 +08:00
nrodrigues e6df116a49 HHH-6946 - Add support for the AS400 (iSeries) system to
StandardDialectResolver
2012-02-14 16:50:59 +08:00
Michael Rudolf 22a6283e6d HHH-3718 - Do not initialize proxy upon call to ID getter when using
AccessType.FIELD
2012-02-14 16:37:42 +08:00
Adam Bryzak 506f61fa66 Fixed boolean literals in Derby versions 10.7+ 2012-02-14 08:53:03 +10:00
Steve Ebersole 209abeafa8 HHH-7047 - Fix problems created by HHH-7044 2012-02-09 09:44:19 -06:00
George Gastaldi e1a78dfd4a HHH-7041: Fixed error in Pattern regexp and removed static from protected methods 2012-02-08 23:07:10 -06:00
George Gastaldi 0ada357889 HHH-7041: Fix for messing up DISTINCT clause 2012-02-08 18:21:21 -06:00
Gail Badner edda5ec7f4 HHH-7034 : java.sql.SQLTimeoutException should be mapped to org.hibernate.QueryTimeoutException 2012-02-08 11:24:34 -06:00
Steve Ebersole 199d08210d HHH-6974 - Add caching to new "load access" api for natural id loading 2012-02-08 09:08:31 -06:00