1379 Commits

Author SHA1 Message Date
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