Commit Graph

412 Commits

Author SHA1 Message Date
Michael Dick 89b030c3d1 OPENJPA-380
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@578260 13f79535-47bb-0310-9956-ffa450edef68
2007-09-21 20:38:31 +00:00
Kevin W. Sutter 7524219f6a OPENJPA-369. Committed Albert's changes for the Java 2 Security updates for the Solaris platform.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@577029 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 19:44:06 +00:00
Pinaki Poddar c8ca563046 OPENJPA-24: Relaxing access to connect() for extensibility.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@576582 13f79535-47bb-0310-9956-ffa450edef68
2007-09-17 20:47:52 +00:00
Kevin W. Sutter 884d6b5460 OPENJPA-367. Committing Albert's patch (since he doesn't have his committer karma quite yet...).
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@576552 13f79535-47bb-0310-9956-ffa450edef68
2007-09-17 18:12:46 +00:00
Patrick Linskey 44c08403ac NPE check. Checking in on behalf of Abe.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@575752 13f79535-47bb-0310-9956-ffa450edef68
2007-09-14 16:33:09 +00:00
Patrick Linskey 809cb37003 OPENJPA-335. 'svn merge -c 575492 ../branches/1.0.x'
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@575495 13f79535-47bb-0310-9956-ffa450edef68
2007-09-13 23:24:12 +00:00
Pinaki Poddar 6d5fe3bb8a OPENJPA-357, OPENJPA-358: Adding @since tag/comments to new additions to FetchGroup inclusion
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@574289 13f79535-47bb-0310-9956-ffa450edef68
2007-09-10 16:01:40 +00:00
Patrick Linskey d022b18ad5 OPENJPA-130. Committing Ignacio's patch, with a few whitespace and method name tweaks.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@574143 13f79535-47bb-0310-9956-ffa450edef68
2007-09-10 06:11:29 +00:00
Pinaki Poddar f33cb3d9eb Fix for FetchGroup inclusion and recursion depth calculation.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@573750 13f79535-47bb-0310-9956-ffa450edef68
2007-09-07 23:08:02 +00:00
Patrick Linskey 8fc5924617 OPENJPA-344. Increase the footprint of metadata that is gathered during the MetaDataCacheMaintenance storage process.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@572758 13f79535-47bb-0310-9956-ffa450edef68
2007-09-04 17:55:39 +00:00
Patrick Linskey a3b0778071 Improve error messages when processing metadata / JPQL queries.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@572492 13f79535-47bb-0310-9956-ffa450edef68
2007-09-04 02:05:15 +00:00
Kevin W. Sutter 8500feee82 OPENJPA-343. Modified the call to setRollbackOnly to check for a valid Transaction status first. If the Transaction is not in a valid state, then we will log a trace message indicating such failure. Processing will continue though.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@571523 13f79535-47bb-0310-9956-ffa450edef68
2007-08-31 16:55:51 +00:00
Kevin W. Sutter 4dae2231cc OPENJPA-339. Committing Albert's Java 2 Security changes. Hopefully, this is the last batch of changes... :-)
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@571522 13f79535-47bb-0310-9956-ffa450edef68
2007-08-31 16:53:43 +00:00
Kevin W. Sutter 5affd1274f OPENJPA-347. This change brings the performance back to the expected levels. I have also updated the "BidiSQL" testcase to ensure that regressions like this get caught during normal testing.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@571461 13f79535-47bb-0310-9956-ffa450edef68
2007-08-31 13:42:29 +00:00
Patrick Linskey a61ecf0ff0 Removed now-illegal assertNotReadOnly() calls
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@571325 13f79535-47bb-0310-9956-ffa450edef68
2007-08-30 21:48:57 +00:00
Pinaki Poddar 44db5768cd Allow dynamic configuration property. Changes include
1. Add getter/setter for boolean 'dynamic' field of Value 
2. Add Value.assertChangeable() that Value subclasses must invoke prior to set
new internal state
3. Changes Configuration readOnly state from a boolean to a simple 3-step state 
variable INIT_STATE_LIQUID/FREEZING/FROZEN. This is done to allow lazy
instantiation of some PluginValues after the BrokerFactory freezes configuration.
4. Removes assertNotReadOnly() check from Configuration implementations' setX() 
methods.
5. Removes dynamic Value related methods from Configuration API and its
implementations


git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@571294 13f79535-47bb-0310-9956-ffa450edef68
2007-08-30 20:19:44 +00:00
Patrick Linskey 849e10a391 OPENJPA-344. Build is failing because of this change; changing to use initCause() on the hypothesis that the 1.4 phase of the build does not support a Throwable argument to the constructor.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@571042 13f79535-47bb-0310-9956-ffa450edef68
2007-08-30 05:09:56 +00:00
Patrick Linskey e89b51c4c6 OPENJPA-344. Enable serialization of metadata and query compilation caches. This implementation requires that the user run a tool to build the cache, and set a configuration property to tell OpenJPA where the serialized data is stored.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@570948 13f79535-47bb-0310-9956-ffa450edef68
2007-08-29 22:07:44 +00:00
Marc Prud'hommeaux 614c53df58 Merging changes from 1.0.x branch into trunk (from branch point 567935:HEAD)
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@570908 13f79535-47bb-0310-9956-ffa450edef68
2007-08-29 19:37:59 +00:00
Patrick Linskey ba7de16762 Changed OpenJPAVersion to load version information from a resource (like how we load svn data) so that current version info (as of the last mvn compile) will be available for code built and run from source.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@570487 13f79535-47bb-0310-9956-ffa450edef68
2007-08-28 17:00:16 +00:00
Marc Prud'hommeaux c70bee2898 Changed trunk version to be 1.1.0-SNAPSHOT (was 1.0.0-SNAPSHOT)
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@570465 13f79535-47bb-0310-9956-ffa450edef68
2007-08-28 16:03:23 +00:00
Patrick Linskey ad0bbc5105 Made field final
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@570322 13f79535-47bb-0310-9956-ffa450edef68
2007-08-28 06:18:58 +00:00
Michael Dick 62b3725596 OPENJPA-339 committing on behalf of Albert
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@570288 13f79535-47bb-0310-9956-ffa450edef68
2007-08-28 01:05:18 +00:00
Patrick Linskey b0cddf4e2d OPENJPA-256. Applied patch supplied by Bernd.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@568164 13f79535-47bb-0310-9956-ffa450edef68
2007-08-21 15:21:50 +00:00
Patrick Linskey 7977291bea OPENJPA-293. Fixed bug with property access and booleans and 'is' accessors.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567911 13f79535-47bb-0310-9956-ffa450edef68
2007-08-21 02:21:44 +00:00
Patrick Linskey 3d22005bad Fixed bug I introduced with new configuration setting earlier.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567908 13f79535-47bb-0310-9956-ffa450edef68
2007-08-21 02:16:23 +00:00
Patrick Linskey fb1c554c4b Fixed bug I introduced with new configuration setting earlier.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567904 13f79535-47bb-0310-9956-ffa450edef68
2007-08-21 01:46:38 +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 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
Kevin W. Sutter 6316c57e97 OPENJPA-323. Committing message updates per Teresa's patch. Thanks, Teresa!
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567748 13f79535-47bb-0310-9956-ffa450edef68
2007-08-20 16:50:20 +00:00
Srinivasa Segu 784de8a57c OPENJPA-322.Copying over the TimeZone to the proxy. 446787 seems to have accidentally removed this.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567170 13f79535-47bb-0310-9956-ffa450edef68
2007-08-17 23:20:43 +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
David J. Wisneski c014c92538 Help Catalina committing OPENJPA-313.2.patch
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@566006 13f79535-47bb-0310-9956-ffa450edef68
2007-08-15 02:24:50 +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
Michael Dick 99ecf9564b OPENJPA-311
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@564688 13f79535-47bb-0310-9956-ffa450edef68
2007-08-10 17:33:08 +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 60f59740f5 OPENJPA-293. Corrected PCEnhancer to use FieldMetaData.getDeclaredType() instead of getType() in some situations.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@564093 13f79535-47bb-0310-9956-ffa450edef68
2007-08-09 05:56:02 +00:00
Patrick Linskey 0b1b37dbba feedback from Bill Pugh of FindBugs fame
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@563357 13f79535-47bb-0310-9956-ffa450edef68
2007-08-07 00:19:53 +00:00
Marc Prud'hommeaux a5010b4a78 OPENJPA240 fixed to use JavaVersions.isEnumeration rather than Class.isEnum (which is not available in JDK 1.4)
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@563175 13f79535-47bb-0310-9956-ffa450edef68
2007-08-06 15:52: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
Marc Prud'hommeaux a361f6a148 Changed exception message to show the version id (e.g., 1.0.0-SNAPSHOT-r12345), rather than redundant version status string that had been output (e.g., 1.0.0-SNAPSHOT-SNAPSHOT).
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@562615 13f79535-47bb-0310-9956-ffa450edef68
2007-08-03 23:38:34 +00:00
Michael Dick 4150e7f566 OPENJPA-295
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@562530 13f79535-47bb-0310-9956-ffa450edef68
2007-08-03 17:35:54 +00:00
Marc Prud'hommeaux 97b94f6aa9 OPENJPA256 this class differs from most plugins in that the plugin type is the standard java interface Map.class (rather than an openjpa-specific interface), which means that the ClassLoader used to load the implementation will be the system class loader; this presents a problem if OpenJPA is not in the system classpath, so work around the problem by catching the IllegalArgumentException (which is what we wrap the ClassNotFoundException in) and try again, this time using this class' ClassLoader.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@562011 13f79535-47bb-0310-9956-ffa450edef68
2007-08-02 03:51:38 +00:00
Kevin W. Sutter f61968f302 OPENJPA-285. I am going ahead with the integration of Kevan's patches for the two memory leaks found in OpenJPA while testing Geronimo. I will post more details in the Issue.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@561970 13f79535-47bb-0310-9956-ffa450edef68
2007-08-01 21:55:44 +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 2bc4c4a552 Code cleanup.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@561176 13f79535-47bb-0310-9956-ffa450edef68
2007-07-30 22:54:54 +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