Commit Graph

206 Commits

Author SHA1 Message Date
A. Abram White 600d949140 Copy all calendar parameters that go towards equals() comparisons.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@485809 13f79535-47bb-0310-9956-ffa450edef68
2006-12-11 18:54:00 +00:00
A. Abram White 9dcdd3a35d Improved error message.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@485804 13f79535-47bb-0310-9956-ffa450edef68
2006-12-11 18:41:30 +00:00
A. Abram White d85fbdee04 Fix calendar proxy bug.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@484900 13f79535-47bb-0310-9956-ffa450edef68
2006-12-09 03:08:52 +00:00
A. Abram White 7b91f91273 Bytecode proxy fixes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@484868 13f79535-47bb-0310-9956-ffa450edef68
2006-12-09 00:54:39 +00:00
A. Abram White db174a9512 Better error message when attempting to proxy final class.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@484815 13f79535-47bb-0310-9956-ffa450edef68
2006-12-08 21:54:27 +00:00
A. Abram White 770abf1aa8 Don't proxy final classes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@484812 13f79535-47bb-0310-9956-ffa450edef68
2006-12-08 21:52:41 +00:00
A. Abram White e54b0c1908 Move to dynamically-created bytecode proxies for second class objects, rather
than checked-in proxy classes.  This allows us to proxy custom collection,
map, and bean types.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@484693 13f79535-47bb-0310-9956-ffa450edef68
2006-12-08 18:32:07 +00:00
Pinaki Poddar db25f08565 Terminate loop when connection attempt succeeds.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@483176 13f79535-47bb-0310-9956-ffa450edef68
2006-12-06 19:02:19 +00:00
Marc Prud'hommeaux eb9a626945 Fixed bug where we weren't copying the nanoseconds when the Timestamp is cloned.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@482308 13f79535-47bb-0310-9956-ffa450edef68
2006-12-04 19:32:54 +00:00
Marc Prud'hommeaux ca45e3292a Changed syncWithManagedTransaction to return true if a transaction is already active (rather than throwing an exception), since section 5.9.2 of the JPA spec suggests that it should be legal to invoke EntityManager.joinTransaction() multiple times.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@480301 13f79535-47bb-0310-9956-ffa450edef68
2006-11-29 00:28:04 +00:00
Patrick Linskey 16f78782dd fixed bug that caused cached JPQL queries to not properly cache the candidate class.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@479942 13f79535-47bb-0310-9956-ffa450edef68
2006-11-28 08:27:14 +00:00
Patrick Linskey 07dadf5564 removed duplicate info; added category data
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@477948 13f79535-47bb-0310-9956-ffa450edef68
2006-11-21 22:53:42 +00:00
Patrick Linskey 3fdf607c58 removed external dependency so that OpenJPAVersion can be run with just the openjpa jar in the classpath
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@477414 13f79535-47bb-0310-9956-ffa450edef68
2006-11-20 23:54:16 +00:00
Patrick Linskey 54d9735689 improved error messages; made NonPersistentMetaData serializable
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475891 13f79535-47bb-0310-9956-ffa450edef68
2006-11-16 19:33:06 +00:00
Patrick Linskey 3a5185700f invoke the close() callback at the beginning of ConfigurationImpl.close(); change other ConfigurationImpl subtypes to use preClose() instead of now-final close(); add test case for close callbacks.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475115 13f79535-47bb-0310-9956-ffa450edef68
2006-11-15 04:20:30 +00:00
Patrick Linskey a5f3ae42bf realized immediately after committing that the id belongs at the generic Configuration level, not at the OpenJPAConfiguration level.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475087 13f79535-47bb-0310-9956-ffa450edef68
2006-11-15 00:45:09 +00:00
Patrick Linskey bda2015398 added openjpa.Id property, and put logic in PersistenceUnitInfoImpl to set the openjpa.Id property to the persistence unit name if no openjpa.Id property is discovered.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475084 13f79535-47bb-0310-9956-ffa450edef68
2006-11-15 00:30:24 +00:00
Patrick Linskey 301580c069 made a number of configuration-related classes serializable to facilitate alternate means of configuration population; moved away from a couple more usages of commons collections LinkedMap; added new lifecycle callback to ProductDerivation interface
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475059 13f79535-47bb-0310-9956-ffa450edef68
2006-11-14 23:42:42 +00:00
Marc Prud'hommeaux 3e8f9d931a Updated to version 0.9.7-incubating-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@474069 13f79535-47bb-0310-9956-ffa450edef68
2006-11-12 22:28:45 +00:00
Marc Prud'hommeaux 813bb89223 Updated to version 0.9.6-incubating
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@474050 13f79535-47bb-0310-9956-ffa450edef68
2006-11-12 21:36:52 +00:00
Marc Prud'hommeaux ef56f8281b Updated to version 0.9.7-incubating-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@473962 13f79535-47bb-0310-9956-ffa450edef68
2006-11-12 12:59:24 +00:00
Marc Prud'hommeaux ead07f40c0 Rolled back to 0.9.6-incubating to re-run the release process; fixed licenses in NOTICE.txt; added license headers to files where they were missing; removed sun.misc.Perf class, since we are no longer supporting JDK 1.3 (and it is only unavailable in 1.3 and lower)
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@473939 13f79535-47bb-0310-9956-ffa450edef68
2006-11-12 11:44:59 +00:00
Patrick Linskey de3f43a5cd moved to JDK1.4
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@473448 13f79535-47bb-0310-9956-ffa450edef68
2006-11-10 19:44:47 +00:00
A. Abram White fb770599b0 Fix for deeply nested subqueries, and for the JPQL IN(<subquery>) construct.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@473140 13f79535-47bb-0310-9956-ffa450edef68
2006-11-09 23:55:41 +00:00
Marc Prud'hommeaux cf56e213a9 Updated to version 0.9.7-incubating-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@472718 13f79535-47bb-0310-9956-ffa450edef68
2006-11-09 00:41:04 +00:00
Kevin W. Sutter 535d6a9f94 Simplify the usage of the WAS ExtendedJTATransaction API. We only need to check the globalId (and not the localId) for presence of a global (user) transaction. Also corrected some of the exception processing and tracing of exceptions for rollback processing.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@472327 13f79535-47bb-0310-9956-ffa450edef68
2006-11-07 23:33:50 +00:00
A. Abram White 8efffbdd4b Test for the OpenJPAQuery.setSubclasses method.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@472310 13f79535-47bb-0310-9956-ffa450edef68
2006-11-07 22:38:37 +00:00
A. Abram White 3b9fa1f25a Bugfix for when abstract base class has no discriminator value. Cleanup of
query compilation cache additions.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@472275 13f79535-47bb-0310-9956-ffa450edef68
2006-11-07 21:20:57 +00:00
Marc Prud'hommeaux 0e02efdfbf Updated version to 0.9.6-incubating in hopes of having a release
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@472238 13f79535-47bb-0310-9956-ffa450edef68
2006-11-07 20:34:03 +00:00
Patrick Linskey 7ad13de0b7 oops; added ASL header
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@472220 13f79535-47bb-0310-9956-ffa450edef68
2006-11-07 19:35:30 +00:00
Patrick Linskey eb777be3ac Moved Kodo query compilation cache into OpenJPA.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@472218 13f79535-47bb-0310-9956-ffa450edef68
2006-11-07 19:33:43 +00:00
Patrick Linskey 05f7fac863 Michael Dick's patch for OPENJPA-76, plus a tweak to make it use resources instead of files.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@472018 13f79535-47bb-0310-9956-ffa450edef68
2006-11-07 08:01:49 +00:00
A. Abram White 9a2a907261 Fix possible NPEs resulting from Patrick's last DataCacheStoreManager commit.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@471831 13f79535-47bb-0310-9956-ffa450edef68
2006-11-06 19:06:21 +00:00
A. Abram White 9623c5c6f8 Support many-one and one-one relations as primary key fields.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@471045 13f79535-47bb-0310-9956-ffa450edef68
2006-11-03 23:15:08 +00:00
Marc Prud'hommeaux b4077bd6a6 OPENJPA-74: Fixed multiple problems with named queries: 1. They were not being parsed as part of the orm.xml file, since we were incorrectly looking for an attribute named 'query' (when it really should have been a sub-element named 'query'). 2. Looking for a named query did not force resolution of all metadatas. 3. An NPE was being thrown when a JPQL query was created with a null filter
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@470996 13f79535-47bb-0310-9956-ffa450edef68
2006-11-03 21:10:39 +00:00
Patrick Linskey caa1ea4543 made in-mem match queries fail faster; added another test case for new DataCacheStoreManager work
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@469429 13f79535-47bb-0310-9956-ffa450edef68
2006-10-31 09:43:43 +00:00
A. Abram White ac59115c10 Reorder and comment terminal conditions at the beginning of
DataCacheStoreManager.flush to make them a little more clear to slow people 
like me.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@469326 13f79535-47bb-0310-9956-ffa450edef68
2006-10-31 00:11:09 +00:00
Patrick Linskey a493e790b7 Removed some dead code and unused imports.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@469315 13f79535-47bb-0310-9956-ffa450edef68
2006-10-30 23:32:19 +00:00
Patrick Linskey 0a96982e61 Fixed OPENJPA-70. Data caching + external modifications could result in stale data getting stuck in cache.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@469313 13f79535-47bb-0310-9956-ffa450edef68
2006-10-30 23:23:11 +00:00
A. Abram White 2ed7c2db2a Move build logic for adding an interface to WASManagedRuntime's inner class to
WASManagedRuntime itself.  Move caching in WASManagedRuntime to 
endConfiguration() callback to avoid threading issues.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@468504 13f79535-47bb-0310-9956-ffa450edef68
2006-10-27 19:17:32 +00:00
A. Abram White ba1d289735 Fix OPENJPA-68.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@468455 13f79535-47bb-0310-9956-ffa450edef68
2006-10-27 17:04:24 +00:00
Kevin W. Sutter 228bee2043 Seems like we have some differences in how Sun and IBM (and maybe other) JDK's process the messages returned in a NoClassDefFoundError exception. To simplify this testcase and make it pass in any environment, I'm just going to test just for the Interface Name (minus the package).
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@468434 13f79535-47bb-0310-9956-ffa450edef68
2006-10-27 16:06:34 +00:00
Patrick Linskey 1af459a496 changed test case to convert . to / when doing class name searches. This test now passes in my environment.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@468284 13f79535-47bb-0310-9956-ffa450edef68
2006-10-27 05:52:34 +00:00
Patrick Linskey ea81e82435 changed test case to include more debug info in failures. This test case does not pass on my machine.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@468283 13f79535-47bb-0310-9956-ffa450edef68
2006-10-27 05:41:03 +00:00
Kevin W. Sutter 27563987ef First step in resolving OPENJPA-63. This change removes the usage of internal WebSphere transaction-related APIs and replaces it with the public ExtendedJTATransaction interface usage.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@468064 13f79535-47bb-0310-9956-ffa450edef68
2006-10-26 17:08:05 +00:00
Marc Prud'hommeaux e2f38567a1 Upgraded to version '0.9.6-incubating-SNAPSHOT'
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@464753 13f79535-47bb-0310-9956-ffa450edef68
2006-10-17 00:05:01 +00:00
Marc Prud'hommeaux fb00d685bd Upgraded to version '0.9.5-incubating'
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@464711 13f79535-47bb-0310-9956-ffa450edef68
2006-10-16 23:00:34 +00:00
A. Abram White fe3fac6750 Remove author tag; I think someone (Steve K?) copied a class I wrote and left
the author tag intact, because I don't think I wrote this class.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@464612 13f79535-47bb-0310-9956-ffa450edef68
2006-10-16 18:30:48 +00:00
A. Abram White f27898f280 Take advantage StringUtils where appropriate.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@462617 13f79535-47bb-0310-9956-ffa450edef68
2006-10-10 22:39:15 +00:00
Marc Prud'hommeaux 0c58bedbb6 Updated version to be openjpa-0.9.5-incubating-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@454516 13f79535-47bb-0310-9956-ffa450edef68
2006-10-09 21:16:48 +00:00