Commit Graph

219 Commits

Author SHA1 Message Date
Albert Lee 4cc061e5dc OPENJPA-369, apply same changes in trunk to the 1.0.x branch.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@581356 13f79535-47bb-0310-9956-ffa450edef68
2007-10-02 19:21:50 +00:00
Kevin W. Sutter b045de88c0 OPENJPA-370. Committing Teresa's patch with a few minor updates (per my JIRA Issue remarks).
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@581039 13f79535-47bb-0310-9956-ffa450edef68
2007-10-01 19:08:19 +00:00
Kevin W. Sutter 6692d0e490 OPENJPA-370. Committing Teresa's patch with a few minor updates (per my JIRA Issue remarks).
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@580995 13f79535-47bb-0310-9956-ffa450edef68
2007-10-01 15:47:09 +00:00
Michael Dick 4435558335 OPENJPA-382
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@578870 13f79535-47bb-0310-9956-ffa450edef68
2007-09-24 16:25:12 +00:00
Michael Dick 62e56cd910 OPENJPA-380
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@578271 13f79535-47bb-0310-9956-ffa450edef68
2007-09-21 20:56:55 +00:00
Michael Dick 134fcf10cc OPENJPA-369
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@577877 13f79535-47bb-0310-9956-ffa450edef68
2007-09-20 18:57:05 +00:00
Michael Dick 05fb97ded7 OPENJPA-353 for 1.0.x branch
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@576948 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 15:25:14 +00:00
Patrick Linskey da603826e0 OPENJPA-335
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@575492 13f79535-47bb-0310-9956-ffa450edef68
2007-09-13 23:19:13 +00:00
Kevin W. Sutter 73513a2af5 OPENJPA-360. Remove code dependencies on DB2 libraries from unit tests.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@575008 13f79535-47bb-0310-9956-ffa450edef68
2007-09-12 16:45:59 +00:00
Catalina Wei 04b3212698 OPENJPA-360 SQL FOR UPDATE OF incorrectly generated for DB2 UDB version8.1 or earlier and DB2 ISeries V5R3 or earlier.
These  DB2 version also require the "optimize for <n> row" clause appear before FOR UPDATE clause.
Due to this requirement, the OPTIMIZE clause will  appear before FOR UPDATE clause for all DB2 versions.
Also fixed the affected testcases.
Same fix retrofit to OpenJPA 1.0.x branch.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@574653 13f79535-47bb-0310-9956-ffa450edef68
2007-09-11 17:59:38 +00:00
Kevin W. Sutter f1c4c68d90 OPENJPA-347. Committing this performance regression update to the 1.0.x branch.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@571535 13f79535-47bb-0310-9956-ffa450edef68
2007-08-31 18:35:44 +00:00
Marc Prud'hommeaux 9cc19220d5 Changed maintenance branch version to be 1.0.1-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@570490 13f79535-47bb-0310-9956-ffa450edef68
2007-08-28 17:16:08 +00:00
Kevin W. Sutter cfbc213134 OPENJPA-326. Porting the change for the 1.0.0 branch.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.0@568756 13f79535-47bb-0310-9956-ffa450edef68
2007-08-22 21:54:11 +00:00
Patrick Linskey 4b9b0fc4a3 OPENJPA-293. Allow user configuration of error vs. warning if managed classes are not enhanced.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.0@568721 13f79535-47bb-0310-9956-ffa450edef68
2007-08-22 18:21:03 +00:00
Patrick Linskey 6ba6ce4e7e OpenJPA used to rely on being able to implicitly specify a value for a @GeneratedValue field when using an IDENTITY generation strategy. Now that we do not allow that behavior, OpenJPA was failing to generate IDs properly in some cases. Fixed.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.0@568363 13f79535-47bb-0310-9956-ffa450edef68
2007-08-22 01:33:40 +00:00
Patrick Linskey ef56ba1406 OPENJPA-293. Better validation that the persistent types to subclass have properly been found.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.0@568337 13f79535-47bb-0310-9956-ffa450edef68
2007-08-22 00:06:16 +00:00
Marc Prud'hommeaux a5eee82878 Specify that the surefire plugin should pass -Xmx500m to the forked tests so we have ample memory to run all our tests
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.0@568317 13f79535-47bb-0310-9956-ffa450edef68
2007-08-21 22:52:05 +00:00
Patrick Linskey 93986d5587 OPENJPA-317 -- correction to a method name to better reflect what it does.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.0@568306 13f79535-47bb-0310-9956-ffa450edef68
2007-08-21 22:13:37 +00:00
Marc Prud'hommeaux 1f15d9f34d Bumping release number from 1.0.0-SNAPSHOT to 1.0.0
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.0@568075 13f79535-47bb-0310-9956-ffa450edef68
2007-08-21 11:36:14 +00:00
Patrick Linskey 56f6b43790 OPENJPA-317. Some more API Javadoc cleanup, plus a bit of last-minute renaming and method visibility changes for clarity.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567986 13f79535-47bb-0310-9956-ffa450edef68
2007-08-21 07:03:48 +00:00
Patrick Linskey ebcec6e55b OPENJPA-317. Moved away from requiring Type at the end of enums, in favor of alignment with existing OpenJPA config settings.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567900 13f79535-47bb-0310-9956-ffa450edef68
2007-08-21 01:37:39 +00:00
Patrick Linskey e26e15496e OPENJPA-317. Added ResultSetType and FetchDirection enums. Used FetchDirection instead of FetchDirectionType because FetchDirection seemed much more natural.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567893 13f79535-47bb-0310-9956-ffa450edef68
2007-08-21 01:09:20 +00:00
Patrick Linskey ede9dcbd61 OPENJPA-293. More-eager failures.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567889 13f79535-47bb-0310-9956-ffa450edef68
2007-08-21 00:54:44 +00:00
Patrick Linskey dda1e8ef6f OPENJPA-293. Allow runtime redefinition to be disabled via a configuration setting. We really should sweep through the code and change ImplHelper to take a Configuration as an argument, but that won't change the behavior; it'll just make some of the validations more eager.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567886 13f79535-47bb-0310-9956-ffa450edef68
2007-08-21 00:45:23 +00:00
Patrick Linskey 8dd6857f67 OPENJPA-314, OPENJPA-315
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567875 13f79535-47bb-0310-9956-ffa450edef68
2007-08-20 23:19:05 +00:00
Patrick Linskey 6de7e5f581 Imports cleanup.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567856 13f79535-47bb-0310-9956-ffa450edef68
2007-08-20 22:24:03 +00:00
Patrick Linskey 007154980b OPENJPA-317. Removed comment; added exception to test case method definition for extensibility
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567851 13f79535-47bb-0310-9956-ffa450edef68
2007-08-20 22:08:40 +00:00
Patrick Linskey 778ab2a393 OPENJPA-317. Changed OpenJPA published API pre-1.0. Reduced the scope of the dependencies in OpenJPAEntityManager and the other published interfaces; converted JDK1.4-style symbolic constant usage to new enums; changed some method names for clarity and consistency; removed old javax.resource dependencies; updated @published and @nojavadoc tags. The published interfaces should now only reference other published interfaces in method signatures, and it should be possible to build javadoc for just the published interfaces.
Removed getDelegate() calls from the published interfaces, as they expose internals. They are still available on the impl classes themselves, or the SPI ifaces when available.

Added covariant return types to JDBCFetchPlan.

Changed BrokerFactoryListener interface to not encode event types in the listener signature.

Moved some methods from OpenJPAPersistence to JPAFacadeHelper.

We will need to grow these published interfaces to provide access to some things in the internal interfaces. However, these interfaces will remain stable moving forward within the constraints of the OpenJPA deprecation policies.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567838 13f79535-47bb-0310-9956-ffa450edef68
2007-08-20 21:32:54 +00:00
Michael Dick 6cd259f310 OPENJPA-143
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@566788 13f79535-47bb-0310-9956-ffa450edef68
2007-08-16 17:59:57 +00:00
Pinaki Poddar 8d1dacad82 Adding support for change of configuration properties after the configuration has been frozen.
Three methods have been added to Configuration:
  i) Configuration.getDynamicValues() returns list of Values that are dynamically modifiable.
 ii) Configuration.isDynamic(String property) affirms if the named property is dynamically modifiable.
iii) Configuration.modifyDynamic(String property, Object value) modifies the named property value even when Configuration.isReadOnly().

  Currently, OpenJPAConfigurationImpl.getDynamicValues() return 3 simple IntValue properties {dataCacheTimeout, fetchBatchSize, lockTimeout) 
 
  


git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@566494 13f79535-47bb-0310-9956-ffa450edef68
2007-08-16 05:52:17 +00:00
Marc Prud'hommeaux ecc36a0f37 Build system work in preparation for 1.0.0 release; fixed some missing license headers; added maven ARAT plugin
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@565955 13f79535-47bb-0310-9956-ffa450edef68
2007-08-14 22:39:55 +00:00
Kevin W. Sutter 5c9642d5f4 OPENJPA-244. Committing Albert's changes for Java 2 Security (minus the white space).
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@564408 13f79535-47bb-0310-9956-ffa450edef68
2007-08-09 22:27:17 +00:00
Patrick Linskey 63c3748900 OPENJPA-165
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@563702 13f79535-47bb-0310-9956-ffa450edef68
2007-08-07 23:47:19 +00:00
Patrick Linskey 86e47000db OPENJPA-86
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@563697 13f79535-47bb-0310-9956-ffa450edef68
2007-08-07 23:12:56 +00:00
Patrick Linskey d260d34d69 Oops; fixing NPE caused by previous short-circuiting.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@563664 13f79535-47bb-0310-9956-ffa450edef68
2007-08-07 21:32:06 +00:00
Patrick Linskey fa39addf82 Prevent this class from attempting to build its schema when using a database that doesn't support XML datatypes.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@563661 13f79535-47bb-0310-9956-ffa450edef68
2007-08-07 21:16:55 +00:00
Kevin W. Sutter 9382677eb1 OPENJPA-272. Committing the changes to allow @GeneratedValue to detect and report if initial values and/or setters were called on fields marked with @GeneratedValue. New testcases were also provided.
Also had to update an existing testcase (TestSharedMappedSuperclassIdValue) and associated Entities because it was breaking the contract put in place.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@562987 13f79535-47bb-0310-9956-ffa450edef68
2007-08-05 23:34:06 +00:00
Kevin W. Sutter c34fb4e80e OPENJPA-281. Committing the patch that I posted earlier this week. These changes do the proper eager loading of @Basic types. Along with a new testcase and updated AllFieldTypes.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@562986 13f79535-47bb-0310-9956-ffa450edef68
2007-08-05 23:30:08 +00:00
Kevin W. Sutter 890d16047e Just a couple of new testcases that I used to debug some problems recently. Turned out to be non-issues, but I thought the testcases still might be worthwhile to have in our bucket.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@562985 13f79535-47bb-0310-9956-ffa450edef68
2007-08-05 23:20:10 +00:00
Michael Dick a8fc8dfa76 OPENJPA-295 improved testcase
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@562244 13f79535-47bb-0310-9956-ffa450edef68
2007-08-02 20:33:18 +00:00
Marc Prud'hommeaux 17ecf6753a Fixed test case to first check to see if any CREATE TABLE statement was issued at all. If not, then the database might already have created the TemporalFieldTypes table, in which case the validation assertions of the temporal column types will fail.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@562206 13f79535-47bb-0310-9956-ffa450edef68
2007-08-02 17:58:37 +00:00
Michael Dick a1d28857fa OPENJPA-303 committing on behalf of Albert
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@561405 13f79535-47bb-0310-9956-ffa450edef68
2007-07-31 17:32:01 +00:00
David J. Wisneski 7ca46cf69d OPENJPA-240 XMLMapping Query - refactoring JAXB XML annotaion parser
Help Catalina committing OPENJPA-240.r560665.patch for refactoring JAXB XML annotation parser.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@561376 13f79535-47bb-0310-9956-ffa450edef68
2007-07-31 16:19:24 +00:00
Patrick Linskey 0243702b35 OPENJPA-293. Fixed problem with transactional state maintenance that was preventing lifecycle tests from passing.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@560601 13f79535-47bb-0310-9956-ffa450edef68
2007-07-28 19:53:13 +00:00
Patrick Linskey 8c1710ed63 OPENJPA-297
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@560304 13f79535-47bb-0310-9956-ffa450edef68
2007-07-27 16:26:52 +00:00
Patrick Linskey 747226b1d6 OPENJPA-293. All tests pass, but only because we don't currently test Java 5 + redefinition (only Java 5 + no redef). We need a new version of serp (1.13.1) to support that configuration; the new version has not yet made it into ibiblio.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@560016 13f79535-47bb-0310-9956-ffa450edef68
2007-07-26 22:08:37 +00:00
Patrick Linskey 3ddd88b576 Removed unneeded imports.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@559521 13f79535-47bb-0310-9956-ffa450edef68
2007-07-25 16:49:44 +00:00
Patrick Linskey dbf7ab273e Simple test case for lifecycle listener support.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@559515 13f79535-47bb-0310-9956-ffa450edef68
2007-07-25 16:30:59 +00:00
Patrick Linskey b50530274b Simple test case for in-memory remote commit provider.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@559503 13f79535-47bb-0310-9956-ffa450edef68
2007-07-25 16:04:27 +00:00
Patrick Linskey 092729c11c Test case for selecting enum values into a new managed instance.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@559353 13f79535-47bb-0310-9956-ffa450edef68
2007-07-25 08:32:38 +00:00