Commit Graph

401 Commits

Author SHA1 Message Date
Albert Lee ba5d11b43b OPENJPA-532 This patch enables command runnable to process once when no persistence unit is found by the tool commands. This allows command option(s) which does not require pu definition to function properly.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@634150 13f79535-47bb-0310-9956-ffa450edef68
2008-03-06 04:12:11 +00:00
Albert Lee b4d72d5843 After OPENJPA-9, -help option in scripts is not working anymore. This is caused by Configurations.runAgainstAllAnchors returns true if no error is encountered (including no operation) during function execution. Since the check of the -help option is in the command's run method and if no anchor is found, the help check is skipped.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@633921 13f79535-47bb-0310-9956-ffa450edef68
2008-03-05 16:38:46 +00:00
Albert Lee c4af04617e OPENJPA-359 Improve Timestamp resolution for use by versioning.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@631028 13f79535-47bb-0310-9956-ffa450edef68
2008-02-25 22:59:29 +00:00
Michael Dick ec7bd83e1a OPENJPA-518 Committing code changes suggested by Adam Toback
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@629492 13f79535-47bb-0310-9956-ffa450edef68
2008-02-20 15:02:30 +00:00
Patrick Linskey 325aa77bc1 New test cases, currently disabled.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@627979 13f79535-47bb-0310-9956-ffa450edef68
2008-02-15 09:19:55 +00:00
Patrick Linskey 92d1334e52 OPENJPA-498. Resolve this by not removing if the prop is not set; the prop in question is only ever set internally anyways when EMF pooling is enabled.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@613332 13f79535-47bb-0310-9956-ffa450edef68
2008-01-19 00:55:19 +00:00
Patrick Linskey 6f29454e48 Small log clarification.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@609775 13f79535-47bb-0310-9956-ffa450edef68
2008-01-07 20:56:22 +00:00
Patrick Linskey ab88266f2a OPENJPA-470. Added test case for custom sequence implementations, and updated docs with the current parentheses limitation.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@605679 13f79535-47bb-0310-9956-ffa450edef68
2007-12-19 20:19:49 +00:00
Patrick Linskey 485372b3f6 Change Services.getImplementorClasses(Class) and Services.getImplementorClasses(Class,ClassLoader) to filter out implementations that are not assignable to the Class argument. This allows the Services call to be more fault-tolerant in environments with odd classloader configurations.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@603666 13f79535-47bb-0310-9956-ffa450edef68
2007-12-12 16:32:28 +00:00
Marc Prud'hommeaux c97cd70b3e Added nested stack trace to the MissingResourceException as an additional diagnostic for issues around ProductDerivations.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@599239 13f79535-47bb-0310-9956-ffa450edef68
2007-11-29 01:17:47 +00:00
Patrick Linskey 5018dfaa88 OPENJPA-126: EntityManager serializability. Also includes a fix to make LoadListener.afterRefresh() work. Committing directly (not via remote queue) as I'm about to lose my internet connection for a while. Hopefully, my local testing is accurate.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@597155 13f79535-47bb-0310-9956-ffa450edef68
2007-11-21 17:40:54 +00:00
Patrick Linskey 634bdc5c92 OPENJPA-9
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@595508 13f79535-47bb-0310-9956-ffa450edef68
2007-11-16 00:51:07 +00:00
Patrick Linskey 3ca7d9d4d6 OPENJPA-428. Clarification that 'openjpa.Id' is a configuration property, not a JPA property.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@592102 13f79535-47bb-0310-9956-ffa450edef68
2007-11-05 17:41:50 +00:00
Patrick Linskey 98ef3d9063 OPENJPA-407. Assorted performance improvements found while working on this issue. This change does not include any SQL caching work.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@590150 13f79535-47bb-0310-9956-ffa450edef68
2007-10-30 16:56:47 +00:00
Albert Lee 1af3d93ca7 OPENJPA-415 remove AbstractResultList.finalize() method.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@588089 13f79535-47bb-0310-9956-ffa450edef68
2007-10-25 00:04:51 +00:00
Albert Lee cc5e5a36fa OPENJPA-402 Complete .class file read in ZipFileMetaDataIterator
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@584420 13f79535-47bb-0310-9956-ffa450edef68
2007-10-13 16:12:35 +00:00
Marc Prud'hommeaux abff87ef35 OPENJPA345 The last patch had the side effect that the artifact zip doesn't contain most of the required dependency jars (e.g., commons-lang), since the transitive dependencies are not followed to pick up these jars. Resolved this by explicitly listing the required jars in the openjpa-all dependencies. Also moved most of the dependency version numbers into the parent pom.xml dependencyManagement section to ensure that all dependency versions are the same.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@581536 13f79535-47bb-0310-9956-ffa450edef68
2007-10-03 09:10:54 +00:00
Kevin W. Sutter 5a48e90100 OPENJPA-387. Committing the latest patch from Daniel (with slight modifications by me).
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@581082 13f79535-47bb-0310-9956-ffa450edef68
2007-10-01 21:44:51 +00:00
Patrick Linskey bb527a1e88 OPENJPA-369. Committing Albert's 1.5-supporting changes.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@580451 13f79535-47bb-0310-9956-ffa450edef68
2007-09-28 18:23:48 +00:00
Kevin W. Sutter 6f43ce7d40 OPENJPA-385. Committing changes for both 1.0.x and 1.1.0 to properly skip and optionally log malformed .class files.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@580087 13f79535-47bb-0310-9956-ffa450edef68
2007-09-27 16:36:48 +00:00
Srinivasa Segu 91917c406c OPENJPA-379. Creating the statement with the resultSetType, resultSetConcurrency specified consistent with the Kodos internal pool.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@577991 13f79535-47bb-0310-9956-ffa450edef68
2007-09-21 05:54:55 +00:00
Pinaki Poddar cea8ab57d1 OPENJPA-305: Add originalValue for Value and modify Configuration equality/hashCode to base on Value equality/hashCode
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@577164 13f79535-47bb-0310-9956-ffa450edef68
2007-09-19 05:39:17 +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
Kevin W. Sutter 3d8748c427 OPENJPA-361. Committing Albert's patch for the incorrect GREG_OFFSET (Gregorian Offset).
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@574398 13f79535-47bb-0310-9956-ffa450edef68
2007-09-10 23:01:39 +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
Srinivasa Segu 1242abf2d5 OPENJPA-363
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@574077 13f79535-47bb-0310-9956-ffa450edef68
2007-09-09 21:11:40 +00:00
Craig Russell 7d9724ac00 OPENJPA-355 Fix checking for log levels; patch submitted by Adrian Co"
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@573653 13f79535-47bb-0310-9956-ffa450edef68
2007-09-07 18:10:43 +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
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 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 8e629a1071 Fixed typo.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@570312 13f79535-47bb-0310-9956-ffa450edef68
2007-08-28 05:45:18 +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 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
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
Patrick Linskey e59b9deab9 OPENJPA-293. Updated to latest serp dependency now that it's in the maven repository. Needed for interface-ordering issues in JDK1.5 + redefinition.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@565999 13f79535-47bb-0310-9956-ffa450edef68
2007-08-15 01:48:13 +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
Pinaki Poddar 3c17af7351 Fatal Bootstarp exception raised by any ProductDerivation will abandon bootstrapping process
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@562584 13f79535-47bb-0310-9956-ffa450edef68
2007-08-03 21:17:24 +00:00
Kevin W. Sutter 872d00888d OPENJPA-304. Changes to DepthFirstAnalysis and associated classes and testcases to resolve IBM JDK and Sun JDK differences.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@561363 13f79535-47bb-0310-9956-ffa450edef68
2007-07-31 15:43:39 +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 7a6a81d713 Attempt to resolve high-load UUIDGenerator problem. I was not able to reproduce the issue, but code inspection seems to indicate that this fix should work.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@559540 13f79535-47bb-0310-9956-ffa450edef68
2007-07-25 17:56:20 +00:00
Pinaki Poddar f12af8d977 Adding BootstrapException that ProductDerivations recognize during beforeConfigurationConstruct()/load()
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@557798 13f79535-47bb-0310-9956-ffa450edef68
2007-07-19 22:32:26 +00:00
Craig Russell b8bb8404a9 OPENJPA-235 break-nullable-patch contributed by Markus Fuchs
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@557089 13f79535-47bb-0310-9956-ffa450edef68
2007-07-17 23:56:45 +00:00
Marc Prud'hommeaux 8b5a7f68a0 OPENJPA-244 Fixed some formatting inconsistencies with the patch for OPENJPA-244
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@553010 13f79535-47bb-0310-9956-ffa450edef68
2007-07-03 22:42:39 +00:00
Michael Dick 0c517d163e OPENJPA-244 committing on behalf of Albert
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@552996 13f79535-47bb-0310-9956-ffa450edef68
2007-07-03 21:55:29 +00:00
Patrick Linskey 21909df2ec Guarantee that remote commit events are fired against OpenJPA internal data structures before externally-registered listeners. This means that externally-registered listeners can rely on the OpenJPA data structures being up-to-date by the time that they are fired.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@552850 13f79535-47bb-0310-9956-ffa450edef68
2007-07-03 14:26:09 +00:00
Marc Prud'hommeaux 85b2e766ca OPENJPA-239 Patch to support the generation of annotation mappings using the reverse mapping tool
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@552358 13f79535-47bb-0310-9956-ffa450edef68
2007-07-01 19:37:04 +00:00
Patrick Linskey 39f1071085 OPENJPA-262
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@550185 13f79535-47bb-0310-9956-ffa450edef68
2007-06-24 09:16:57 +00:00
Marc Prud'hommeaux 0091bcabe3 Added a 'java14.jar' property that can be used to specify the location of the JDK 1.4 runtime jar, against which we will compile the JDK 1.4-specific modules. This can be used to ensure that JDK 1.5-specific methods and classes don't slip into the JDK 1.4 modules.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@546768 13f79535-47bb-0310-9956-ffa450edef68
2007-06-13 07:50:11 +00:00
Patrick Linskey 5463700d6c OPENJPA-235
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@544918 13f79535-47bb-0310-9956-ffa450edef68
2007-06-06 18:49:30 +00:00
Marc Prud'hommeaux 3599a48964 Moving version to 1.0.0-SNAPSHOT as a result of mailing list vote
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@541929 13f79535-47bb-0310-9956-ffa450edef68
2007-05-26 19:18:37 +00:00
Marc Prud'hommeaux 0e19b714ac Changed version from 0.9.8-incubating-SNAPSHOT to 0.9.8-SNAPSHOT to reflect move from incubation to TLP
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@540829 13f79535-47bb-0310-9956-ffa450edef68
2007-05-23 03:36:05 +00:00
Marc Prud'hommeaux e041fe0d4d OPENJPA-237 Copy aliases array so it can't get modified by reference
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@540199 13f79535-47bb-0310-9956-ffa450edef68
2007-05-21 16:35:28 +00:00
Marc Prud'hommeaux a92785fea6 OPENJPA-194 Changed openjpa-all-VERSION.jar to be just openjpa-VERSION.jar, and changes openjpa-project-VERSION.zip to be apache-openjpa-VERSION.zip
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@536693 13f79535-47bb-0310-9956-ffa450edef68
2007-05-09 22:23:54 +00:00
Marc Prud'hommeaux 640cddad04 Updated license headers to be in accordance with http://www.apache.org/legal/src-headers.html
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@528881 13f79535-47bb-0310-9956-ffa450edef68
2007-04-14 21:50:17 +00:00
Michael Dick 4ea1c3f738 adding license to java files
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@527728 13f79535-47bb-0310-9956-ffa450edef68
2007-04-11 23:52:54 +00:00
Michael Dick 7fd119e840 updating trunk version
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@526476 13f79535-47bb-0310-9956-ffa450edef68
2007-04-07 19:54:18 +00:00
Patrick Linskey dc797ab923 OPENJPA-160. Non-finalizing implementation is automatically selected when createContainerEntityManagerFactory() is invoked; clarified some method signatures.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@513183 13f79535-47bb-0310-9956-ffa450edef68
2007-03-01 06:31:50 +00:00
Kevin W. Sutter 7303bcd5d5 Slight update for the changes introduced via svn revision 506230 (OPENJPA-138). Instead of just skipping the "null ClassLoader" (which indicates the SystemClassLoader), we'll use the static ClassLoader.getSystemClassLoader() method in order to populate the cache.
This change will help the non-container-managed environment (whereas the original change only benefitted the container-managed environment).

This was discussed on the dev mailing list between Patrick, Marc, and myself.

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@512357 13f79535-47bb-0310-9956-ffa450edef68
2007-02-27 18:48:19 +00:00
Patrick Linskey 7db81e3d6c OPENJPA-158 -- reduced log level to TRACE for a variety of enhancement and metadata related messages
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@512107 13f79535-47bb-0310-9956-ffa450edef68
2007-02-27 01:59:42 +00:00
A. Abram White 65bd1f02e3 Second attempt at serializing to full properties, including defaults, rather
than just user-defined properties.  This ensures that on deserialization we
get the proper settings despite not running product derivations.  Previous
attempt caused problems on SunONE.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@510638 13f79535-47bb-0310-9956-ffa450edef68
2007-02-22 20:11:00 +00:00
Patrick Linskey 0b8bf2818c OPENJPA-156. Applied Michael Dick's patch (thanks). Updated symbolic constant to use OpenJPA norms, changed references to external symbolic constants to use constants from the map impl being used, and reduced if-else statements for readability.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@509793 13f79535-47bb-0310-9956-ffa450edef68
2007-02-20 22:51:50 +00:00
A. Abram White 4efc5d6997 Revert "full properties caching" changes made to ConfigurationImpl -- they're
causing problems on some appservers.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@508445 13f79535-47bb-0310-9956-ffa450edef68
2007-02-16 15:23:09 +00:00
A. Abram White 7a2330ce3b Compare Configuration instances on their full properties, including defaults.
Also serialize the full properties because product derivations aren't re-run
on deserialize, so we need to know the complete defaults, etc.  We still track
the user-given properties separately so they can be used in factory pooling.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@507643 13f79535-47bb-0310-9956-ffa450edef68
2007-02-14 17:53:13 +00:00
Kevin W. Sutter e14378f7f3 OPENJPA-138. Some updates to help with performance of OpenJPA in an application server environment. Details can be found in the OPENJPA-138 Issue.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@506230 13f79535-47bb-0310-9956-ffa450edef68
2007-02-12 02:33:05 +00:00
Marc Prud'hommeaux 2ac1bcccbb OPENJPA-118: Implemented patch provided by David Ezzio for broken openjpa.AutoDetach behavior
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502022 13f79535-47bb-0310-9956-ffa450edef68
2007-01-31 22:27:29 +00:00
Pinaki Poddar 74823f7cd0 Rollback redundant change of removing "Id" before warning for unrecognized configuration keys.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@501139 13f79535-47bb-0310-9956-ffa450edef68
2007-01-29 18:31:27 +00:00
Srinivasa Segu 5dddb15cb3 Fixed register/removeListener methods to not re-add once initialized.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@498865 13f79535-47bb-0310-9956-ffa450edef68
2007-01-23 00:15:15 +00:00
A. Abram White e2665ce5dd Use the current thread's classloader in addition to the configuration class'
loader when loading globals.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@497634 13f79535-47bb-0310-9956-ffa450edef68
2007-01-18 23:21:41 +00:00
Patrick Linskey 97b23ebb90 Resolve jar scanning issue by avoiding certain probably-buggy ZipInputStream methods
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@496912 13f79535-47bb-0310-9956-ffa450edef68
2007-01-17 01:57:07 +00:00
Pinaki Poddar f5e4742f17 Ignore "Id" property while reporting unrecognized configuration properties.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@492645 13f79535-47bb-0310-9956-ffa450edef68
2007-01-04 17:19:33 +00:00
Srinivasa Segu 8264feb2d6 Check for null to handle the current thread's Context ClassLoader being null
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@489777 13f79535-47bb-0310-9956-ffa450edef68
2006-12-22 22:06:17 +00:00
A. Abram White 8b6406724b Always merge new MetaDataFactory settings with any previous settings
because many of its properties are often set implicitly and aren't meant to
erase other settings.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@489520 13f79535-47bb-0310-9956-ffa450edef68
2006-12-22 00:21:17 +00:00
Patrick Linskey 264356a23f created methods for interacting with product prefixes; moved configuration loading mechanisms to these new methods
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@487919 13f79535-47bb-0310-9956-ffa450edef68
2006-12-16 23:58:54 +00:00
A. Abram White 74589c8ae1 Use most derived available classloader when loading plugins so that we can
load application classes when the application uses a derived loader.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@486424 13f79535-47bb-0310-9956-ffa450edef68
2006-12-13 00:16:33 +00:00
Pinaki Poddar 4a03860c2f Not using the cached version of zip file.
For deploy-undeploy-redeply, the iterator was holding stale reference
to the cached zip content. The 'close' flag is no more required,
the zip file is closed as dictated by the user of the iterator.
  


git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@482831 13f79535-47bb-0310-9956-ffa450edef68
2006-12-05 23:57:57 +00:00
Kevin W. Sutter dbcdfb9ff9 Include the original exception that caused the ClassFormatError to be thrown.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@482191 13f79535-47bb-0310-9956-ffa450edef68
2006-12-04 14:43:30 +00:00
Kevin W. Sutter 970f647622 Resolving JIRA report OPENJPA-63 for better pessimistic lock support for DB2. Instead of the usual "for update" clause, db2 dictionary will now use "with rr use and keep update locks" clause.
A couple of additional changes were necessary to properly detect the version of DB2 currently in use.

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@482189 13f79535-47bb-0310-9956-ffa450edef68
2006-12-04 14:42:09 +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
Marc Prud'hommeaux 15cb2cdf7c Added back the ability to call getPackageName() on the Message object.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@477446 13f79535-47bb-0310-9956-ffa450edef68
2006-11-21 00:42:53 +00:00
Marc Prud'hommeaux 66f6d907d5 Removed dependency on Class.getPackage() for finding localizer.properties files, since that method can sometimes return null.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@477436 13f79535-47bb-0310-9956-ffa450edef68
2006-11-21 00:29:53 +00:00
Patrick Linskey 32ced33fd5 removed debugging code
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@477270 13f79535-47bb-0310-9956-ffa450edef68
2006-11-20 17:46:46 +00:00
Marc Prud'hommeaux dd5c64694d Null check.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@476305 13f79535-47bb-0310-9956-ffa450edef68
2006-11-17 20:34:28 +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 330654d226 use Configuration.getId() as the default diagnostic context, if no diagnostic context is specified in the log configuration property.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475094 13f79535-47bb-0310-9956-ffa450edef68
2006-11-15 01:28:38 +00:00
Patrick Linskey 72741efc85 moved metadata properties about openjpa.Id property
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475093 13f79535-47bb-0310-9956-ffa450edef68
2006-11-15 01:27:51 +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 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
Patrick Linskey 54cb8933e3 moving to JDK1.4 LinkedHashMap instead of LinkedMap where possible.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@474974 13f79535-47bb-0310-9956-ffa450edef68
2006-11-14 20:57:02 +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
Patrick Linskey fd57bd62dd localizer optimizations for normal usage patterns
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@473057 13f79535-47bb-0310-9956-ffa450edef68
2006-11-09 20:13:27 +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
A. Abram White 42e0745224 Fix line over 80 chars.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@472617 13f79535-47bb-0310-9956-ffa450edef68
2006-11-08 20:05:28 +00:00
Kevin W. Sutter 286c870c34 Replace the UUIDGenerator with an implementation based on the Apache Commons Id implementation. This change removes the LGPL implication from the original implementation.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@472597 13f79535-47bb-0310-9956-ffa450edef68
2006-11-08 19:10:56 +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 a568c52040 reverted the move to serp 1.12. Once it's in ibiblio, we can reassess the need to move to 1.12.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@471948 13f79535-47bb-0310-9956-ffa450edef68
2006-11-07 00:24:41 +00:00
A. Abram White 607b863ec2 Update serp version.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@471080 13f79535-47bb-0310-9956-ffa450edef68
2006-11-04 00:38:22 +00:00
Marc Prud'hommeaux 22226fc0f4 Fixed docs to not say that the package includes connection pooling.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@470622 13f79535-47bb-0310-9956-ffa450edef68
2006-11-03 01:09:12 +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
Marc Prud'hommeaux d1554f3d54 Delete the sun.misc.Perf class before it is packaged in the jar.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@465740 13f79535-47bb-0310-9956-ffa450edef68
2006-10-19 19:17:49 +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 c8b5b2746e Validate product derivations before caching them so we don't end up with runtime
errors when clients use JPA without jdo.jar or JDO without jpa.jar.  Give a 
more succinct warning when some product derivations are uninstantiable, with
more detailed information available via the ProductDerivations class's main().



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@463829 13f79535-47bb-0310-9956-ffa450edef68
2006-10-13 21:07:17 +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
Marc Prud'hommeaux 2fbc438887 Updated to final 0.9.0-incubating release number
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@454452 13f79535-47bb-0310-9956-ffa450edef68
2006-10-09 18:40:10 +00:00
A. Abram White d490f545c4 Make the inability to instantiate an auxiliary enhancer non-fatal. Also cache
auxiliary enhancers statically to speed up enhancement.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@454184 13f79535-47bb-0310-9956-ffa450edef68
2006-10-08 18:17:28 +00:00
A. Abram White dcf691a727 Get rid of warning for product derivations that use an unsupported class
version.  Minor API changes.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@454072 13f79535-47bb-0310-9956-ffa450edef68
2006-10-08 04:03:06 +00:00
Patrick Linskey 28910a7374 Changed OpenJPAProductDerivation to have a proper lifecycle callback for BrokerFactoryValue initialization; added supporting infrastructure as needed.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@454064 13f79535-47bb-0310-9956-ffa450edef68
2006-10-08 02:05:49 +00:00
Patrick Linskey d3b3b3a212 made the revision.properties file name a bit more unique to avoid collisions with other projects using the same pattern
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@453957 13f79535-47bb-0310-9956-ffa450edef68
2006-10-07 16:31:49 +00:00
Patrick Linskey 54a3f15811 Oops. It turns out it's good to compile *before* committing.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@453876 13f79535-47bb-0310-9956-ffa450edef68
2006-10-07 09:24:07 +00:00
Patrick Linskey fe42d24e9b made ProductDerivations a bit more fault-tolerant -- when a failure occurs while loading ProductDerivation instances defined in services files, the system continues to start up with the ProductDerivations that did load, and a warning is printed to stderr. Note that this means that people using the uber-jar in 1.3 or 1.4 environments, or without having javax.persistence in their classpath, for example, will see warnings on stderr.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@453875 13f79535-47bb-0310-9956-ffa450edef68
2006-10-07 09:22:29 +00:00
A. Abram White 2ada6c3292 Changed default lines between blocks to be 1 in our code format to mirror
openjpa conventions, and minor doc fixes.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@453819 13f79535-47bb-0310-9956-ffa450edef68
2006-10-07 00:30:31 +00:00
A. Abram White 433475f6ad Merge fixes from Kodo 4.0 line.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@453796 13f79535-47bb-0310-9956-ffa450edef68
2006-10-06 22:31:28 +00:00
A. Abram White dc09b61954 Fixes from Kodo's 3.4 branch.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@453685 13f79535-47bb-0310-9956-ffa450edef68
2006-10-06 17:13:21 +00:00
A. Abram White c0c4c3c738 Fixes relating to multiple same-typed embedded fields loading eager relations,
and deep vertical inheritance hierarchies where the base class's primary key 
is auto-assigned on insert.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@453449 13f79535-47bb-0310-9956-ffa450edef68
2006-10-06 01:04:34 +00:00
A. Abram White 8785be46e7 Handle exceptions from transaction listeners appropriately. Allow user to
override default CallbackMode for both lifecycle and transaction listeners.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@452981 13f79535-47bb-0310-9956-ffa450edef68
2006-10-04 19:12:34 +00:00
A. Abram White c1a857c915 Move the Perf class that supports some of our concurrency utils on older JVMs
to lib, where it belongs.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@452683 13f79535-47bb-0310-9956-ffa450edef68
2006-10-04 00:26:45 +00:00
Marc Prud'hommeaux cc25d2a536 Changed revision checking system to spawn the "svnversion" command rather than directly parsiong the .svn/entries file. This gives a more accurate revision number, and it also deals with the new subversion format, which is no longer XML.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@451471 13f79535-47bb-0310-9956-ffa450edef68
2006-09-29 22:08:28 +00:00
Patrick Linskey b198cb7305 changing phase so that the svn artifact gets into classes dir before jars are made
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@451468 13f79535-47bb-0310-9956-ffa450edef68
2006-09-29 21:48:29 +00:00
A. Abram White 46736c6018 Fix configuration warnings for misspelled property names.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450173 13f79535-47bb-0310-9956-ffa450edef68
2006-09-26 20:11:33 +00:00
A. Abram White 62bc6c997c Change default MaxFetchDepth to -1 (unlimited). Also move the use of multiple
configuration prefixes to ProductDerivations for simple static access.  Modify
some cases of looking for "openjpa." prefixes to properties to properly look 
for all configured prefixes instead.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450114 13f79535-47bb-0310-9956-ffa450edef68
2006-09-26 16:54:30 +00:00
A. Abram White 68572a9197 Die in ProductDerivations.load() if given resource/file can't be parsed by any
ProductDerivations in the system.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@448625 13f79535-47bb-0310-9956-ffa450edef68
2006-09-21 18:28:06 +00:00
A. Abram White cdcfea47d4 Review/cleanup of product derivation work.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@448025 13f79535-47bb-0310-9956-ffa450edef68
2006-09-20 01:29:55 +00:00
Pinaki Poddar 2c31d9c6df 1. Refactoring ConfigurationProvider/ProductDerivation subsystem.
2. Extensibility of OpenJPA via ProductDerivation

Primary modifications are
a) The configuration information resources are located/parsed/loaded via dynamically discovered ProductDerivation services
(instead of ConfigurationProviders). ConfigurationProvider is not enlisted as a service any more.
b) Tools are modified to use ProductDerivations instead of Configurations 
c) ProductDerivation has moved to lib from kernel.
d) ProductDerivation types that are STORE specific are no more defined in lib version.
OpenJPAProductDerivation in kernel package defines them. The type constants have holes. 
e) One test is modified
f) pom.xml is modified as ProductDerivation has moved to lib from kernel 

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@447664 13f79535-47bb-0310-9956-ffa450edef68
2006-09-19 00:50:57 +00:00
Marc Prud'hommeaux 02c9ce3ca7 Fixed possibility of a null method in getMethodDescriptors.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@446802 13f79535-47bb-0310-9956-ffa450edef68
2006-09-16 01:25:59 +00:00
Marc Prud'hommeaux 20e0762e43 Fixed getMethodDescriptors to not try to create a MethodDescriptor for a non-existant method (which would cause an NPE).
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443524 13f79535-47bb-0310-9956-ffa450edef68
2006-09-14 23:47:13 +00:00
Kevin W. Sutter 9650a1a20b Minor updates to comments and doc... While doing the removal of the LockGroup stuff, I came across an entry for
contacting support@solarmetric.com for some customization feature.  While cleaning that up, I also cleaned up any 
other references to @solarmetric.com and @bea.com.

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443123 13f79535-47bb-0310-9956-ffa450edef68
2006-09-13 21:05:42 +00:00
Marc Prud'hommeaux 812e184e89 Added openjpa-all module which will manually create an openjpa-all-VERSION.jar file that aggregates all the other openja-*.jar files; fixed Configurations.java to provide more information when a missing services resource is caused by a deeper exception
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@441318 13f79535-47bb-0310-9956-ffa450edef68
2006-09-08 01:24:18 +00:00
Patrick Linskey 01735b1234 changed @since tags to disambiguate the Kodo information with future releases of OpenJPA by adding a 0. to the beginning of each.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@438566 13f79535-47bb-0310-9956-ffa450edef68
2006-08-30 17:53:55 +00:00
A. Abram White 163cc2a22c Framework for allowing ranges in query strings to be specified as parameters
(not needed for JPQL, but for others).  Also consolidated some internal query
framework APIs.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@438338 13f79535-47bb-0310-9956-ffa450edef68
2006-08-30 03:43:16 +00:00
Marc Prud'hommeaux cd9c6c1986 Moved build number generation into openjpa-lib, since having it in the top-level pom causes the plugin to be executed multiple times in each module (bug reported at MNG-2221)
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@438035 13f79535-47bb-0310-9956-ffa450edef68
2006-08-29 09:53:48 +00:00
Marc Prud'hommeaux dc1f0bf204 OPENJPA-30 Changed version to 0.9.0-incubating-SNAPSHOT in accordance with Apache incubator guidelines
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@437209 13f79535-47bb-0310-9956-ffa450edef68
2006-08-26 18:59:34 +00:00
Marc Prud'hommeaux f37d9f8d61 Fixed to use equals() instead of == for testing the type of the current Locale.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@436962 13f79535-47bb-0310-9956-ffa450edef68
2006-08-25 21:35:13 +00:00
Marc Prud'hommeaux 45c89bd455 Fixed assumption by test case that the default locale would not be GERMANY, which was special-cased in the test.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@436944 13f79535-47bb-0310-9956-ffa450edef68
2006-08-25 20:57:46 +00:00
Marc Prud'hommeaux 8adfc84d9c Fixed assumption by test case that the default locale would not be GERMANY, which was special-cased in the test.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@436941 13f79535-47bb-0310-9956-ffa450edef68
2006-08-25 20:53:28 +00:00
Marc Prud'hommeaux caffb77405 Prefixed pom names with 'OpenJPA' to make them more friendly when their public names are displayed
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@436911 13f79535-47bb-0310-9956-ffa450edef68
2006-08-25 19:16:23 +00:00
Patrick Linskey dcb47f0fe4 OPENJPA-14. Use the class's classloader in environments when service lookups should be looking in the OpenJPA distribution. This imposes the restriction that OpenJPA will only find services in the same classloader as the OpenJPA jars themselves, which is a much better restriction than requiring that the classes be in the thread's context classloader.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@436694 13f79535-47bb-0310-9956-ffa450edef68
2006-08-25 07:33:50 +00:00
A. Abram White fe71475a59 Formatted our documentation XML files.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@434517 13f79535-47bb-0310-9956-ffa450edef68
2006-08-24 20:41:12 +00:00
Patrick Linskey 0e41d092c9 resolved JIRA-32: unnecessary servlet dependency in openjpa-lib pom
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@434330 13f79535-47bb-0310-9956-ffa450edef68
2006-08-24 07:35:16 +00:00
Marc Prud'hommeaux bad3cba9b6 Changed version to be a SNAPSHOT so we can use the snapshotRepository
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@434196 13f79535-47bb-0310-9956-ffa450edef68
2006-08-23 21:37:05 +00:00
Patrick Linskey c8af68ac7d Removed unneeded field.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@431669 13f79535-47bb-0310-9956-ffa450edef68
2006-08-15 18:46:59 +00:00
A. Abram White daf1f35793 Marc correctly pointed out that FileInputStream.read() isn't guaranteed to
read all available data into the given buffer in one call.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@431635 13f79535-47bb-0310-9956-ffa450edef68
2006-08-15 16:16:57 +00:00
A. Abram White 0821efea40 Work around JVMs that don't return a valid value for File.length(). We've
discovered at least one that doesn't.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@431627 13f79535-47bb-0310-9956-ffa450edef68
2006-08-15 15:57:14 +00:00
A. Abram White 26ae2fa31c Anchor token fix.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@431131 13f79535-47bb-0310-9956-ffa450edef68
2006-08-13 01:49:01 +00:00
A. Abram White 132602e3d2 Use configuration's class loader.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@430934 13f79535-47bb-0310-9956-ffa450edef68
2006-08-12 01:01:55 +00:00
A. Abram White 174bbd211f Don't use ant classloader to find configuration providers?
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@430911 13f79535-47bb-0310-9956-ffa450edef68
2006-08-11 22:53:58 +00:00
A. Abram White aba057d644 Allow our JPA ConfigurationProviderImpl to find a default persistence unit in
persistence.xml when no explicit configuration is given to dev tools.  Do this
in a backwards-compatible way that won't break previous behavior or other facade
behavior (JDO).  This means you should no longer have to pass 
"-p persistence.xml" to tools like the enhancer, nor should you have to specify
a properties argument to the PCEnhancerAgent in the premain for runtime 
enhancement.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@430897 13f79535-47bb-0310-9956-ffa450edef68
2006-08-11 21:07:58 +00:00
A. Abram White 3e758faf25 Fix invalid property warning logic.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@430188 13f79535-47bb-0310-9956-ffa450edef68
2006-08-09 23:39:58 +00:00
A. Abram White fd74642a17 Give better error when run on bad .class file.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@430171 13f79535-47bb-0310-9956-ffa450edef68
2006-08-09 22:39:24 +00:00
A. Abram White 5bef32e516 Make Localizer.Message a static class. Fix implicit type of query path
traversal terminating in byte[], char[] fields.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@430146 13f79535-47bb-0310-9956-ffa450edef68
2006-08-09 20:59:45 +00:00
Patrick Linskey 6234f8d3da Changed logging infrastructure to be aware of localization; changed localization to return log-ready Message instances instead of strings. Changed tons of code to use the new logging and localization calls.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@429535 13f79535-47bb-0310-9956-ffa450edef68
2006-08-08 01:42:34 +00:00
A. Abram White ca83f07b45 Fix visibility.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@428876 13f79535-47bb-0310-9956-ffa450edef68
2006-08-04 20:41:36 +00:00
A. Abram White a98213071a Use latest stable releases of commmons dependencies. Add missing localized msg.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@427784 13f79535-47bb-0310-9956-ffa450edef68
2006-08-01 23:09:17 +00:00
Patrick Linskey e889cd2aef cleaned up some imports; fixed a typo; changed test case to reduce output
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@427472 13f79535-47bb-0310-9956-ffa450edef68
2006-08-01 07:05:08 +00:00
Patrick Linskey eb96e89f4d Brett Porter's patch to resolve OPENJPA-3
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@427444 13f79535-47bb-0310-9956-ffa450edef68
2006-08-01 05:03:08 +00:00
Patrick Linskey 72398bcea0 changed configuration value factory method to set a default for booleans by default. The normal pattern is to obtain a BooleanValue and then set the default to 'true' when desired; implicitly, this means that 'false' is the default otherwise. This change makes that explicit.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@427356 13f79535-47bb-0310-9956-ffa450edef68
2006-07-31 23:13:00 +00:00
A. Abram White 2fd7381e53 Throw good error message about META-INF/services if we can't find any
configuration providers or product derivations.  This has the downside of
mandating that there must be at least one valid product derivation and one
valid configuration provider available (theoretically someone using brokers
directly together with a simpl store like the sample XML store wouldn't need 
either), but otherwise the final error message to the user is often meaningless.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@427229 13f79535-47bb-0310-9956-ffa450edef68
2006-07-31 19:36:46 +00:00
A. Abram White 604703c6d1 Got all tests passing.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@426658 13f79535-47bb-0310-9956-ffa450edef68
2006-07-28 19:58:44 +00:00
A. Abram White 1a6d7d547c Add resources needed for TestXMLWriter test.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@426637 13f79535-47bb-0310-9956-ffa450edef68
2006-07-28 18:18:41 +00:00
A. Abram White c105fe6094 Pass "-p persistence.xml" to enhancer invocation when running persistence
tests so that we don't have to set JPA defaults in the JPA 
ConfigurationProviderImpl.beforeConfigurationLoad, which is incompatible with
having JDO,etc providers in the same system.  Eventually we should probably 
recognize persistence.xml as a defaults file, but for now that's against our 
previous contract of allowing a user to have a JDO,etc defaults file and a 
persistence.xml in the same system.  Also removed XML Transformer functionality
from XMLFactory, since we don't use it and it causes problems with Ant (this
seems to be an Ant+JDK 1.5 bug in Ant).  



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@426634 13f79535-47bb-0310-9956-ffa450edef68
2006-07-28 18:12:02 +00:00
Patrick Linskey 1236605135 removed unneeded imports
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@426228 13f79535-47bb-0310-9956-ffa450edef68
2006-07-27 20:27:45 +00:00
Marc Prud'hommeaux 3c702ef0d1 Added openjpa-project for assembly descriptiors and docs; upped version to 0.9.0
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@425608 13f79535-47bb-0310-9956-ffa450edef68
2006-07-26 04:24:28 +00:00
A. Abram White 3b1cb17cba General cleanup of cruft accumulated during separation from Kodo.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@425473 13f79535-47bb-0310-9956-ffa450edef68
2006-07-25 18:14:45 +00:00
Patrick Linskey ca8633ab49 removed unneeded code; updated configuration metadata; changed visibility of XML-conversion method; moved import to imports rather than fully-qualified class name
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@424456 13f79535-47bb-0310-9956-ffa450edef68
2006-07-21 20:55:44 +00:00
Patrick Linskey fc9321f35e removed some unused code
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@423996 13f79535-47bb-0310-9956-ffa450edef68
2006-07-20 17:24:09 +00:00
Patrick Linskey a1f4fd3eb0 changed some more finally and catch blocks that didn't get properly reformatted with earlier reformattings / sed scripts
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@423693 13f79535-47bb-0310-9956-ffa450edef68
2006-07-20 01:15:04 +00:00
Patrick Linskey b108a39e7e removed executable flag from all files in trunk, as per Craig's email to OpenJPA list
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@423647 13f79535-47bb-0310-9956-ffa450edef68
2006-07-19 22:50:34 +00:00
Patrick Linskey aad47c26bd cleaned up some dead code
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@423627 13f79535-47bb-0310-9956-ffa450edef68
2006-07-19 21:56:52 +00:00
Patrick Linskey 7d1c8fccaf OpenJPA JDBC subsystem; reformatted some core OpenJPA code to move catch and finally blocks around.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@423615 13f79535-47bb-0310-9956-ffa450edef68
2006-07-19 21:34:44 +00:00
Patrick Linskey 19b401bcc7 opened up BrokerFactoryValue bootstrapping configuration a bit; added better error bootstrapping error messages
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@423271 13f79535-47bb-0310-9956-ffa450edef68
2006-07-18 22:32:16 +00:00
Patrick Linskey 99eb918da3 basic logic for converting simple JavaNames to xml-names; added some localization information about forgotten properties; removed spurious memory status printout from base test class; added 'target' to the svn:ignore for all the top-level maven dirs
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@423162 13f79535-47bb-0310-9956-ffa450edef68
2006-07-18 18:10:59 +00:00
Patrick Linskey 6936fc0d59 Configurations changes on behalf of Abe
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@422769 13f79535-47bb-0310-9956-ffa450edef68
2006-07-17 17:35:39 +00:00
Patrick Linskey 2d8ee34a01 moved to raw 'openjpa.*' property prefix instead of 'org.apache.openjpa.*'; implemented system to allow multiple property prefixes for configurations without relaxing any of the current validations
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@422262 13f79535-47bb-0310-9956-ffa450edef68
2006-07-15 16:40:00 +00:00
Patrick Linskey 32baa428fe updates to configuration. Committed on behalf of Abe
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@422003 13f79535-47bb-0310-9956-ffa450edef68
2006-07-14 19:48:07 +00:00
Patrick Linskey e27f636729 more javadoc fixes
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@421775 13f79535-47bb-0310-9956-ffa450edef68
2006-07-14 00:47:40 +00:00
Patrick Linskey 7cf69d8bcc reformatted comments to follow Sun standards and use the standard ASL comment formatting
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@421741 13f79535-47bb-0310-9956-ffa450edef68
2006-07-13 23:44:20 +00:00
Patrick Linskey 4ddf63ea3f removed some dead code and cleaned up some javadoc
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@421722 13f79535-47bb-0310-9956-ffa450edef68
2006-07-13 22:45:48 +00:00
Patrick Linskey 26ee3648c3 removed some extraneous JDO / licensing-related code
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@421375 13f79535-47bb-0310-9956-ffa450edef68
2006-07-12 19:07:34 +00:00
Patrick Linskey 3feb467900 removed serp fork; replaced with new maven-based serp access. also updated poms to use the Geronimo versions of JTA etc. until we get closure on the plan going forward with the authoritative Glassfish jars
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@421069 13f79535-47bb-0310-9956-ffa450edef68
2006-07-12 01:32:26 +00:00
Patrick Linskey 7a6d34e95f re-applied conversion from SolarMetric code formatting.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@421062 13f79535-47bb-0310-9956-ffa450edef68
2006-07-12 01:06:30 +00:00
Patrick Linskey b9636bb878 fixed some incorrect imports
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@420669 13f79535-47bb-0310-9956-ffa450edef68
2006-07-11 01:00:34 +00:00
Patrick Linskey 1fede626e2 core OpenJPA object management code, plus a sample flat-file XML-based back-end. This submission does not include the OpenJPA JDBC back-end, and also doesn't include any additional tests yet.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@420667 13f79535-47bb-0310-9956-ffa450edef68
2006-07-11 00:35:10 +00:00
Patrick Linskey 00652be8fd improved docs
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@420455 13f79535-47bb-0310-9956-ffa450edef68
2006-07-10 07:45:45 +00:00
Patrick Linskey f025bd4015 removed jdk1.5 dependency from Localizer.properties
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@418423 13f79535-47bb-0310-9956-ffa450edef68
2006-07-01 00:20:02 +00:00
Patrick Linskey bf8ffa5ced reformatted using a better formatter; added a bunch of tests
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@418401 13f79535-47bb-0310-9956-ffa450edef68
2006-06-30 22:37:18 +00:00
Patrick Linskey 67410de676 removed unneeded class
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@417901 13f79535-47bb-0310-9956-ffa450edef68
2006-06-28 23:38:05 +00:00
Patrick Linskey 46e7dbf647 added some openjpa-lib test, pom files, and serp fork. We may move the changes in serp back into the serp source tree and add a maven layout to serp, but for now, let's just get things rolling here.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@417860 13f79535-47bb-0310-9956-ffa450edef68
2006-06-28 19:46:13 +00:00
Patrick Linskey b9183699ba restructuring for maven; adding some more utility code. This is part 1 of a two-part commit, since I didn't put enough directory structures in place just yet and svn complained and I'm an svn newbie afraid to tempt the gods of source control.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@417856 13f79535-47bb-0310-9956-ffa450edef68
2006-06-28 19:34:33 +00:00
Patrick Linskey 9d8d5d02e3 removed published comment; this interface isn't part of the Kodo published interfaces, and we don't even have that concept in OpenJPA yet.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@406432 13f79535-47bb-0310-9956-ffa450edef68
2006-05-14 21:05:41 +00:00
Patrick Linskey e6584f2f74 removing unused file
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@406418 13f79535-47bb-0310-9956-ffa450edef68
2006-05-14 20:29:21 +00:00
Patrick Linskey 42cbc4dd74 fixed bad license comment string in html
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@406240 13f79535-47bb-0310-9956-ffa450edef68
2006-05-14 04:06:09 +00:00
Patrick Linskey b38bdc89cc Some updates to get around a couple warnings
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@406224 13f79535-47bb-0310-9956-ffa450edef68
2006-05-14 03:38:55 +00:00
Patrick Linskey c64c2ca062 Some core utility classes. These are all JDK1.3-safe. I have not committed required libraries; we'll need to set up our build + lib infrastructure. To compile this codebase, you'll need serp, commons collections, commons lang, log4j, commons logging, jdbc3 stubs, and the xml apis to be available.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@406215 13f79535-47bb-0310-9956-ffa450edef68
2006-05-14 03:25:56 +00:00