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
John Verhaeg
6b4b91ccc7
HHH-7439: Added list and map to unidirectional one-to-many test
2012-07-09 11:56:26 -05:00
Gail Badner
cc7cfb5c40
HHH-7436 : Add FailureExpected test for unidirectional many-to-many
2012-07-06 13:13:11 -07: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
Strong Liu
4a6ea053cc
HHH-6491 Binding @SqlResultSetMapping
2012-07-05 01:59:18 +08:00
Gail Badner
bc3964ba98
HHH-7427 : Ensure version column is non-nullable
2012-07-03 16:19:03 -07:00
Gail Badner
6f23941c29
HHH-7322 : Support for bidirectional one-to-many/many-to-one
2012-07-03 12:38:35 -07:00
Strong Liu
1a3c584991
HHH-6491 Binding @SqlResultSetMapping
2012-07-03 14:03:14 +08:00
Strong Liu
10a6425770
HHH-6491 Binding @SqlResultSetMapping
2012-06-29 00:21:26 +08:00
Strong Liu
c1e40df164
HHH-6491 Binding @SqlResultSetMapping
2012-06-28 23:45:27 +08:00
Strong Liu
1679b1d3fc
HHH-6354 ManyToOne natural id binding
2012-06-27 22:46:02 +08:00
Strong Liu
1ab72cfdb6
HHH-6354 component attribute natural id binding
2012-06-27 22:46:01 +08:00
Strong Liu
473790c1e4
HHH-6354 binding natural id on basic attribute
2012-06-27 22:46:01 +08:00
Strong Liu
1b1af382de
HHH-7384 binding natural id cache
...
HHH-6354 Implement natural ID mapping
2012-06-27 22:46:01 +08:00
Strong Liu
b2e0b5032d
HHH-7384 add natural id to the hbm mapping xsd
2012-06-27 22:46:01 +08:00
Strong Liu
080446c89c
HHH-7384 add natural id to the hbm mapping xsd
2012-06-27 22:46:01 +08:00
Gail Badner
7e6ea21908
HHH-7092 : Create default name for foreign and unique key constraints
2012-06-26 14:32:59 -07:00
Gail Badner
c01104fbae
HHH-6436 : Add org.hibernate.metamodel.relational.Column.isIdentity()
2012-06-19 14:41:00 -07: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
Gail Badner
f26e13173d
HHH-7392 : Provide support for nullable many-to-one attributes
2012-06-14 14:27:31 -07:00
Gail Badner
22365060d5
HHH-7383 : Change Constraint interface and implementations to return unmodifiable collections instead of Iterable
2012-06-12 16:44:17 -07: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
55abc2e357
Fixed files truncated by merge from master
2012-06-08 14:32:09 -05:00
Gail Badner
758c2491b5
Added test code truncated by merge
2012-06-08 12:09:17 -07:00
Steve Ebersole
986b66eb18
Initial merge from master to metamodel
2012-06-07 16:12:32 -05: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
Gail Badner
503949b563
HHH-7322 : Integrate one-to-many cascade and fetch mode to persisters
2012-06-06 12:42:55 -07:00
Gail Badner
92c7b2d04f
HHH-7373 : Remove commented out code from unit test
2012-06-05 13:37:00 -07:00
Gail Badner
48cd1e2f81
HHH-7373 : Basic collection element nullability is incorrect
2012-06-05 12:44:11 -07:00
John Verhaeg
188049a5a0
HHH-7372: Added tests to test laziness for other collection types. Also renamed test to better reflect its purpose.
2012-06-05 14:14:49 -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
Gail Badner
a23ec12e9c
HHH-6409 : Add tests and make corrections to Value.getAlias() implementations
2012-06-01 18:20:51 -07: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
860efbdff4
HHH-6846 lock timeout is in milliseconds
2012-05-30 23:27:37 +08:00
Strong Liu
0c1569c4f4
HHH-6846 lock timeout is in milliseconds
2012-05-30 23:25:33 +08:00
John Verhaeg
d7910f6e2e
Reverting test HBM file back to use DTD to allow for testing with both old and new metamodels
2012-05-30 09:43:47 -05: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
Strong Liu
5e3eb49ba3
HHH-7356 javax.persistence.lock.timeout hint is ignored by @NamedQuery
2012-05-29 17:32:59 +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
Hardy Ferentschik
74300e6120
HHH-7351 Fixed wrong usage of index.getAnnotations and updates tests
2012-05-25 17:01:45 +02:00
Gail Badner
f4cb1846e4
HHH-7349 : Collections mapped with lazy=true are non-lazy
2012-05-24 12:02:42 -07:00
Gail Badner
a76187ec29
HHH-7349 HHH-7344 : Element collection mapped with lazy=true is non-lazy; correct headers for metamodel tests
2012-05-24 11:14:03 -07: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
John Verhaeg
46ddcd8414
HHH-7328: Modified Binder to ensure referenced entity names are package-qualified
2012-05-23 10:50:32 -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
Gail Badner
7ecdb53e31
HHH-7344 : Move src/matrix tests that use the new metamodel into src/test
2012-05-22 18:07:25 -07: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
Gail Badner
a82751cceb
HHH-7327 : Caching access type should be determined using AccessType.fromExternalName(cacheElement.getUsage())
2012-05-18 16:40:15 -07:00
Gail Badner
aed88afe63
HHH-7322 : Remove test files that were inadvertantly added
2012-05-18 13:57:58 -07:00
Gail Badner
01ba4b71c7
HHH-7322 : Add support for one-to-many associations to new metamodel
2012-05-18 13:39:53 -07:00
Gail Badner
61f28dc3c0
HHH-7322 : Add support for one-to-many associations to new metamodel
2012-05-18 13:39:53 -07:00
Steve Ebersole
481af0f37c
HHH-7325 - Allow disabling XML validations via setting
2012-05-18 14:59:40 -05:00
Hardy Ferentschik
5a0f6628c9
HHH-7037 Adding 'AttributeBinding locateAttributeBinding(List<Value> values)' to AttributeBindingContainer in order to locate a attribute binding by its relational values
2012-05-18 19:32:21 +02:00
Hardy Ferentschik
2cd5752ffe
HHH-7037 Adding toString implementation EntityHierarchyImpl (mainly for debugging)
...
Formatting, Javadocs and removal of obsolete methods
2012-05-18 19:32:21 +02:00
Steve Ebersole
a046cc7a95
HHH-7325 - Allow disabling XML validations via setting
2012-05-18 12:18:42 -05:00
Strong Liu
c341a3ba2c
add timeout check to avoid hangs
2012-05-17 16:19:53 +08:00
Steve Ebersole
93882f49dd
HHH-6054 - Support for discriminator-based multi-tenancy
2012-05-16 09:53:14 -05:00
root
556ca03e21
HHH-6054 - Support for discriminator-based multi-tenancy
2012-05-15 12:28:50 -05: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
John Verhaeg
4eb057f4de
HHH-7224: Added metamodel support for Orderable and Sortable sources
2012-05-08 11:23:14 -05: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
John Verhaeg
ce2f359d05
HHH-6504: Added support for index attribute for maps.
2012-04-24 13:35:36 -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
Emmanuel Bernard
75d684149d
Fix style and add credit where it is due
2012-04-18 18:11:47 +02:00
Guenther Demetz
7abdf80ebe
Natural-id : NullPointerException after persisting null String value, if using @NaturalIdCache
2012-04-18 12:15:23 +08:00
Bryan Varner
88e231f50b
Sanity check (to return NONE) prevents null pointer exception on the switch() statment.
2012-04-18 10:55:21 +08:00
Steve Ebersole
a33943694c
HHH-7088 - Implement secondary table support in new metamodel code
2012-04-17 17:31:38 -05:00
Steve Ebersole
72e5cf42cf
HHH-7088 - Implement secondary table support in new metamodel code
2012-04-17 17:20:09 -05:00
Strong Liu
a67c1afe10
HHH-7253 NPE thrown by NaturalIdResolutionCache
2012-04-17 11:18:36 +08:00
Steve Ebersole
d3a7e989f3
HHH-7240 - Develop identifier handling in new metamodel
2012-04-16 13:55:02 -05:00
Steve Ebersole
5946391477
HHH-7240 - Develop identifier handling in new metamodel
2012-04-13 16:34:11 -05:00
Steve Ebersole
a39b1a3a92
HHH-7242 - referenced attributes (property-ref) need to be resolved into relational Value references
2012-04-13 16:22:55 -05:00
Strong Liu
5671de517d
HHH-5043 Incorrect handling of hibernate.default_schema in SchemaUpdate
2012-04-14 00:32:56 +08:00
Steve Ebersole
686cdbb2c8
HHH-7242 - referenced attributes (property-ref) need to be resolved into relational Value references
2012-04-12 17:34:04 -05:00
John Verhaeg
6dceff93a6
HHH-6504: Added basic metamodel support for maps (and corrected a few implementation issues with list support). Still need to address remaining types of map key specifications (other than <map-key>).
2012-04-12 11:09:13 -05:00
Steve Ebersole
5b2cfd3c7c
HHH-7240 - Develop identifier handling in new metamodel
2012-04-11 15:59:11 -05:00
Steve Ebersole
2760c25a2c
HHH-7240 - Develop identifier handling in new metamodel
2012-04-11 13:12:31 -05:00
Steve Ebersole
4f72149eca
HHH-7240 - Develop identifier handling in new metamodel
2012-04-10 23:53:03 -05:00
John Verhaeg
d8f9372fbf
HHH-6502: Added support for lists to persister that deals with new metamodel.
2012-04-10 14:59:57 -05:00
Strong Liu
9e53118c4e
HHH-2697 - Can't use := for variable assignment within a SQL-Statement
2012-04-10 15:49:19 +08:00
John Verhaeg
1ced2784d5
HHH-6502: Added support for lists to new metamodel up to Binder processing. Still need to modify persisters.
2012-04-09 12:37:25 -05:00
Strong Liu
5068b8e808
HHH-7195 Table does not handle quoted catalog
2012-04-09 19:27:09 +08:00
Strong Liu
3f6e6339d9
HHH-7068 - Cursor state not valid error from AS400
2012-04-09 18:58:35 +08:00
nrodrigues
4270b4777f
HHH-7068 - Fix for "Cursor state not valid" error from AS400 on queries
...
with setFirstResult.
2012-04-09 18:41:07 +08:00
Gunnar Morling
ef78e5c385
Fixing typos in exception message
2012-04-07 23:49:44 +03:00
Karel Maesen
edcc34a291
HHH-6507 Adds TypeContributingIntegrator.
2012-04-05 08:51:16 -05:00
Steve Ebersole
13252afcff
HHH-6915 - Restrictions.ilike(String propertyValue, Object value) does not correctly initialize LikeExpresison
2012-04-03 16:23:37 -05:00
Steve Ebersole
3800a0e695
HHH-7206 - Manage natural-id synchronization without flushing
2012-04-03 15:54:46 -05:00
Gail Badner
1d5392d3d6
HHH-6556 : Bind unsaved value for identifier/version property
2012-04-03 12:19:33 -07: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
John Verhaeg
b636beccc0
HHH-6552: Modified HibernateMappingProcessor.processImports() to auto-add imports when applicable for all entity elements
2012-03-28 14:54:33 -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
John Verhaeg
714588342d
HHH-7142: Added logic in Binder to force binding of unbound referenced attributes
2012-03-22 10:59:08 -05: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
Gail Badner
a50a5ccfb8
HHH-7124 : Update many-to-one foreign key in test
2012-03-20 13:40:06 -07:00
Gail Badner
35081296d3
HHH-7124 : Bind many-to-one foreign key
2012-03-20 13:13:16 -07: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
John Verhaeg
ebbaf80b5f
HHH-7188: Changed Binder to push/pop context in appropriate places for root and sub entities
2012-03-19 15:17:51 -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
Gail Badner
f42efc1598
HHH-7183 : Bind HibernateTypeDescriptor fields once
2012-03-16 17:23:21 -07: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
Gail Badner
0b3baf5812
HHH-7142 : Add test case for many-to-one on property-ref
2012-03-14 18:01:51 -07: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
fa2de2351a
HHH-7164 - Finish out SessionFactoryBuilder api
2012-03-09 18:00:43 -06:00
Gail Badner
a2e844c381
HHH-7163 : Refactor code for binding PluralAttributeBinding
2012-03-09 11:47:57 -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
Gail Badner
6bab3a3141
HHH-7123 HHH-7124 : Many-to-one attribute domain and relational models
2012-03-07 21:26:52 -08:00
Steve Ebersole
05c3679373
HHH-7138 - Hibernate implements JPA @OneToMany collection versioning incorrectly
2012-03-07 20:40:42 -06:00
Gail Badner
0eebaf4fe1
HHH-7123 HHH-7124 : Many-to-one attribute domain and relational models
2012-03-07 13:38:41 -08:00
Hardy Ferentschik
3e22da0552
HHH-7037 adding custom sql for collections
2012-03-07 16:33:22 +01:00
Hardy Ferentschik
0eb42b3891
HHH-7037 adding caching and custom persisters
2012-03-07 15:31:57 +01:00
Hardy Ferentschik
f31dd33b5f
HHH-7037 creating a new util package
2012-03-07 15:29:20 +01: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
Hardy Ferentschik
3aaed02a2e
HHH-7037 pushing attribute nature into MappedAttribute and creating empty source impls for *toMany sources
2012-03-05 17:06:50 +01:00
Hardy Ferentschik
1657f9f605
HHH-7037 formatting, javadocs
2012-03-05 17:06:50 +01:00
Hardy Ferentschik
211d72b0c1
HHH-7037 formatting
2012-03-05 17:06:50 +01:00
Hardy Ferentschik
f40dba0870
HHH-7037 javadoc
2012-03-05 17:06:50 +01:00
Hardy Ferentschik
430d25d9b9
HHH-7037 Some cleanup of old tests
2012-03-05 17:06:50 +01:00
Hardy Ferentschik
41aa7dd6e8
HHH-7037 Deleting unused code
2012-03-05 17:06:49 +01: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
John Verhaeg
8fcf6a171e
Just correcting some formatting issues
2012-03-02 10:41:17 -06:00
John Verhaeg
8f010234db
Just correcting some formatting issues
2012-03-02 10:26:39 -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
John Verhaeg
47c5e4c535
Just correcting some formatting issues
2012-03-01 11:58:58 -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
John Verhaeg
ec2450bf21
HHH-7136: Moved Binder and associated HibernateTypeHelper class to parent package. Also removed several leftover System.out.println statements from previous local debugging.
2012-03-01 09:57:32 -06:00
John Verhaeg
85e2d48431
HHH-7048: Finished changes to ensure resolution of all entities and types during binding. Refactored quite a bit of code while I did this, addressing some TODOs such as using consistent method names and cleaning up redundant and duplicate code. Still have some cleanup to do regarding the break out of the HibernateTypeHelper class. Also removed some large blocks of unused code, so this may need to be added back in if it's to be used in the future.
2012-03-01 09:28:50 -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
Gail Badner
c98806d454
HHH-7125 : Missing break after ONE_TO_ONE/MANY_TO_ONE and ONE_TO_MANY/MANY_TO_MANY cases in ConfiguredClass.createMappedAttribute()
2012-02-29 01:04:14 -08:00
Gail Badner
86daf7f28f
HHH-7120 : Test case for binding PluralAttributeBinding for sets of basic elements with property-ref
2012-02-28 15:09:43 -08:00
Gail Badner
136540b4c4
HHH-6503 HHH-6525 : Integrate basic non-indexed collectiosn into persisters
2012-02-27 22:01:35 -08:00
Gail Badner
5c59a8c93e
HHH-7100 : ColumnAttributeSourceImpl.isNullable() returns true for collection key and basic element columns
2012-02-27 15:02:13 -08:00
Gail Badner
09002e9872
HHH-6525 : Integrate Set-style plural attributes into persisters
2012-02-27 12:50:54 -08:00
Gail Badner
bd0fcdd2f7
HHH-6525 : Integrate Set-style plural attributes into persisters
2012-02-27 12:36:38 -08:00
Strong Liu
1278d12000
minor change and reformat partial code
2012-02-26 23:37:33 +08:00
Gail Badner
c4d48cfcb6
HHH-6525 : Integrate Set-style plural attributes into persisters
2012-02-24 20:10:39 -08:00
Gail Badner
12b0e98ee0
HHH-7052 : Bind PluralAttributeBinding for sets of basic elements
2012-02-24 20:09:27 -08:00
Gail Badner
da484df5da
HHH-7052 : Bind PluralAttributeBinding for sets of basic elements
2012-02-24 19:36:38 -08:00
Gail Badner
bdced91a06
HHH-7052 : Bind PluralAttributeBinding for sets of basic elements
2012-02-24 19:35:37 -08:00
Lukasz Antoniak
4e2d7d123d
HHH-7117 - Fix and test
2012-02-24 21:35:17 +01:00
Gail Badner
d9d8ab67ff
HHH-7118 : Extract code to create Caching holder into org.hibernate.metamodel.internal.source.hbm.Helper.createCachingHolder()
2012-02-24 12:11:49 -08:00
Gail Badner
5ca5b2287f
HHH-7052 : Bind PluralAttributeBinding
2012-02-23 01:16:58 -08: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
Gail Badner
3f62381d94
HHH-7052 : Bind PluralAttributeKeyBinding
2012-02-22 00:59:49 -08:00
Gail Badner
edf4b377ba
HHH-7052 : Bind PluralAttributeKeyBinding
2012-02-21 20:27:54 -08:00
Gail Badner
f839cd22ef
HHH-7052 : Bind PluralAttributeKeyBinding
2012-02-21 20:27:54 -08:00
Steve Ebersole
8afab9f255
HHH-7088 - Implement secondary table support in new metamodel code
2012-02-21 19:55:53 -06:00
Steve Ebersole
f76524786c
HHH-7088 - Implement secondary table support in new metamodel code
2012-02-21 15:02:01 -06:00
Steve Ebersole
b6902ad211
HHH-7098 - Have JandexHelper handle "undefined" values as null
2012-02-21 11:21:45 -06: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
Gail Badner
315b06ebda
HHH-7088 - Fix NPE in TableSourceImpl constructor
2012-02-20 17:02:54 -08:00
Steve Ebersole
3eccabb79a
HHH-7088 - Implement secondary table support in new metamodel code
2012-02-20 18:01:50 -06:00
Steve Ebersole
9c0d625235
HHH-7075 - Use the term 'composition' and 'composite' to refer to components/embeddables
2012-02-17 10:38:20 -06:00
Steve Ebersole
71539da942
HHH-7076 - Split 'type resolution' back out into separate class
2012-02-17 08:53:50 -06:00
Gail Badner
4923ba3553
HHH-7050 : Add TableSpecification.getLogicalName()
2012-02-16 23:13:06 -08:00
Gail Badner
2115f1f79c
HHH-7050 : back out of changes
2012-02-16 16:33:43 -08:00
Steve Ebersole
f5679281e0
HHH-7076 - Split 'type resolution' back out into separate class
2012-02-16 17:41:30 -06:00
Steve Ebersole
9adb996520
HHH-7075 - Use the term 'composition' to refer to components/embeddables
2012-02-16 10:46:52 -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