Commit Graph

1180 Commits

Author SHA1 Message Date
Patrick Linskey 26ef9ddabb Obtain the DBDictionary up-front in the mapping tool constructor to ensure that the dictionary is fully configured with connection-specific information.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@609824 13f79535-47bb-0310-9956-ffa450edef68
2008-01-08 00:57:05 +00:00
Patrick Linskey 5a0b5b39e7 Write output to the logging channels instead of to stdout.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@609776 13f79535-47bb-0310-9956-ffa450edef68
2008-01-07 20:58:01 +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
Craig Russell 4140d243a4 OPENJPA-452 Fixed xml in secondary table mapping example. Patch contributed by Ignacio Andreu
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@608157 13f79535-47bb-0310-9956-ffa450edef68
2008-01-02 17:45:12 +00:00
Pinaki Poddar 82cd11cb19 Do not throw exception when failed to lookup JNDI, rather return null. Callers handle null
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@608009 13f79535-47bb-0310-9956-ffa450edef68
2008-01-02 05:14:52 +00:00
Pinaki Poddar 4fda4e9484 Allow access to underlying DataSource for extensibility
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@608008 13f79535-47bb-0310-9956-ffa450edef68
2008-01-02 05:12:25 +00:00
Craig Russell 288355f4ad Updated NOTICE to be consistent with other Apache NOTICE files
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@607941 13f79535-47bb-0310-9956-ffa450edef68
2008-01-01 23:03:30 +00:00
Patrick Linskey e11e2078af removed incorrect premain class from interim jar
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@607583 13f79535-47bb-0310-9956-ffa450edef68
2007-12-30 19:20:53 +00:00
Craig Russell 69ee1ce7f0 OPENJPA-331 fix notices
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@607478 13f79535-47bb-0310-9956-ffa450edef68
2007-12-29 22:07:29 +00:00
Pinaki Poddar e868210ca0 Allow read-only access to operating set of instances to extensions
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@606946 13f79535-47bb-0310-9956-ffa450edef68
2007-12-26 21:02:43 +00:00
David Ezzio a3c2d2a487 Harmless change to test commit ability
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@606709 13f79535-47bb-0310-9956-ffa450edef68
2007-12-24 16:25:07 +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 84205d6d50 Error message improvement: include nested exception in constructor.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@604981 13f79535-47bb-0310-9956-ffa450edef68
2007-12-17 20:06:44 +00:00
Patrick Linskey f185a0fe7b Doc improvement: added a cross-reference.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@604668 13f79535-47bb-0310-9956-ffa450edef68
2007-12-16 18:38:24 +00:00
Patrick Linskey 008b249c24 OPENJPA-331. Checking in on behalf of Miroslav Nachev. Includes minor whitespace reformatting and @since tags for new source classes.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@604621 13f79535-47bb-0310-9956-ffa450edef68
2007-12-16 12:30:15 +00:00
Pinaki Poddar 7bd70d36db Allow JDBCStoreManager to avail configuration different than that of its StoreContext. Wrong tab corrected.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@604327 13f79535-47bb-0310-9956-ffa450edef68
2007-12-14 23:00:46 +00:00
Pinaki Poddar 2c18b555c7 Allow JDBCStoreManager to avail configuration different than that of its StoreContext
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@604318 13f79535-47bb-0310-9956-ffa450edef68
2007-12-14 22:35:06 +00:00
Marc Prud'hommeaux 787b57a486 OPENJPA-9 Use the same criteria for resolving the configuration file for the purposes of listing all the anchors as we do for actually parsing the file itself. Fixes the problem where specifing the property "persistence.xml" was not actually resolving /META-INF/persistence.xml in order to obtain the list of anchors.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@604300 13f79535-47bb-0310-9956-ffa450edef68
2007-12-14 21:26:02 +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
Michael Dick 45eb530812 OPENJPA-456 committing patch provided by Teresa Kan
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@603633 13f79535-47bb-0310-9956-ffa450edef68
2007-12-12 14:59:12 +00:00
Patrick Linskey 265be5d1bd Tweak test case to report original error instead of cleanup error in the case where a test case failed and put things in a state that prevents cleanup from succeeding.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@603119 13f79535-47bb-0310-9956-ffa450edef68
2007-12-11 02:15:28 +00:00
Pinaki Poddar c00f3b5b78 OPENJPA-462: Adding a Test case to verify correct exception type
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@603032 13f79535-47bb-0310-9956-ffa450edef68
2007-12-10 20:16:11 +00:00
Pinaki Poddar 111098f1b3 Shows the failed SQL Statement when things break rather than internal ExpContext object
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@603031 13f79535-47bb-0310-9956-ffa450edef68
2007-12-10 20:13:20 +00:00
Pinaki Poddar 38f41d870e OPENJPA-462: Adding SQLState in DerbyDictionary to demonstrate specialization
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@603028 13f79535-47bb-0310-9956-ffa450edef68
2007-12-10 20:11:22 +00:00
Pinaki Poddar a54f842624 OPENJPA-462: Narrow StoreException by SQLException.getSQLState()
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@603001 13f79535-47bb-0310-9956-ffa450edef68
2007-12-10 19:15:35 +00:00
Pinaki Poddar 88aa0ce910 OPENJPA-463: Added conf.OpenJPAVersion as the Main-Class in manifest
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@602971 13f79535-47bb-0310-9956-ffa450edef68
2007-12-10 17:21:28 +00:00
Catalina Wei d3fb4cabf8 OPENJPA-460 Can't convert to: Time, InformixDictionary needs timeTypeName set to "DATETIME HOUR TO SECOND"
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@601576 13f79535-47bb-0310-9956-ffa450edef68
2007-12-05 23:37:34 +00:00
Michael Dick e503930afa OPENJPA-456 committing patch provided by Teresa Kan
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@601379 13f79535-47bb-0310-9956-ffa450edef68
2007-12-05 15:57:23 +00:00
Marc Prud'hommeaux 5e650f0ce3 Changed JDK 1.5-specific String.contains() to JDK 1.4-compatible String.indexOf().
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@599596 13f79535-47bb-0310-9956-ffa450edef68
2007-11-29 22:08:54 +00:00
Michael Dick 860a260fe2 OPENJPA-454
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@599547 13f79535-47bb-0310-9956-ffa450edef68
2007-11-29 19:14:08 +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
Marc Prud'hommeaux 1928eeb611 Returned initialize() to be public (which was made package-private in r597155 for some reason)
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@599230 13f79535-47bb-0310-9956-ffa450edef68
2007-11-29 00:52:16 +00:00
Michael Dick 55720f220b OPENJPA-455
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@599192 13f79535-47bb-0310-9956-ffa450edef68
2007-11-28 23:13:50 +00:00
Marc Prud'hommeaux 5472692b41 OPENJPA-401 Swapped the order of the class loaders since the previous fix for OPENJPA-401 was causing intermittent failures in loading metadata when the mappingtool task was being run.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@599178 13f79535-47bb-0310-9956-ffa450edef68
2007-11-28 22:51:18 +00:00
Marc Prud'hommeaux 30024007cd OPENJPA-223 Handle Indexes with multiple columns, which is a step towards a fix for OPENJPA-223
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@598829 13f79535-47bb-0310-9956-ffa450edef68
2007-11-28 00:25:53 +00:00
Marc Prud'hommeaux 1946a9b036 OPENJPA-9 not all configuration files are XML, so have getAnchorsInResource and getAnchorsInFile just return null if it isn't able to parse the specific configuration resources as XML
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@598557 13f79535-47bb-0310-9956-ffa450edef68
2007-11-27 08:35:35 +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 fad6f35201 Removing the XML types from the default test runs to reduce complexity of unit test executions and to speed up overall test execution time.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@597041 13f79535-47bb-0310-9956-ffa450edef68
2007-11-21 11:42:01 +00:00
Patrick Linskey c231cc814f Oops, it looks like this change wasn't passing. Not sure why it got committed; I thought I checked it in through the gatekeeper.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@597010 13f79535-47bb-0310-9956-ffa450edef68
2007-11-21 09:46:08 +00:00
Patrick Linskey 99bb160dae While looking at dynamic class loading, I noticed that we create a separate MappingRepository when doing an in-process schema redefinion. This seems to lead to potentially-out-of-sync states in the main configuration MappingRepository; this change shares the Configuration's repository with the MappingTool.
It looks like the old behavior was somewhat implicit, so I'm hoping that it wasn't necessary, and that this change will be a step forward.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@597002 13f79535-47bb-0310-9956-ffa450edef68
2007-11-21 09:20:56 +00:00
Patrick Linskey 21ec161339 Example of how to do dynamic class registration in OpenJPA.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@596958 13f79535-47bb-0310-9956-ffa450edef68
2007-11-21 06:34:00 +00:00
Patrick Linskey 4fb39b9590 Example of how to do dynamic class registration in OpenJPA.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@596954 13f79535-47bb-0310-9956-ffa450edef68
2007-11-21 06:25:29 +00:00
Patrick Linskey 46ce1f5af7 OPENJPA-448
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@596929 13f79535-47bb-0310-9956-ffa450edef68
2007-11-21 03:48:38 +00:00
Pinaki Poddar 6ea5a81c93 OPENJPA-449 : initializing _pcClassLoaders in constructor instead of conditionally inside loadPersistentTypes(). Saves NPE on new Broker construction in multi-threaded scenarios' openjpa-kernel\src\main\java\org\apache\openjpa\kernel\AbstractBrokerFactory.java
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@596871 13f79535-47bb-0310-9956-ffa450edef68
2007-11-20 23:12:33 +00:00
Patrick Linskey aa5259d521 OPENJPA-446: preemptively adding ASL license header on the assumption that the contributor will allow us to license these files.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@596795 13f79535-47bb-0310-9956-ffa450edef68
2007-11-20 19:37:02 +00:00
Michael Dick e1dccc1872 OPENJPA-446
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@596731 13f79535-47bb-0310-9956-ffa450edef68
2007-11-20 16:17:57 +00:00
Patrick Linskey 4c2efed65b OPENJPA-447 -- improved test case
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@596661 13f79535-47bb-0310-9956-ffa450edef68
2007-11-20 13:46:03 +00:00
Patrick Linskey d4e978f5ae OPENJPA-447. It looks like some of our DBDictionaries might not be handling ranging properly even after this fix.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@596523 13f79535-47bb-0310-9956-ffa450edef68
2007-11-20 03:05:36 +00:00
Patrick Linskey 1dcd7b1d75 Minor reformatting to put , on the end of a param line instead of at the beginning of the next line.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@596519 13f79535-47bb-0310-9956-ffa450edef68
2007-11-20 02:56:07 +00:00
Patrick Linskey 3ebf5a9a07 Make LoadListener.afterRefresh() work.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@596338 13f79535-47bb-0310-9956-ffa450edef68
2007-11-19 15:48:28 +00:00