Commit Graph

1106 Commits

Author SHA1 Message Date
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
Patrick Linskey 02f0a83dde Correctly override any configuration keys using a different prefix for the typed elements in a persistence.xml document.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@596208 13f79535-47bb-0310-9956-ffa450edef68
2007-11-19 05:52:17 +00:00
Patrick Linskey 0346483ada Trivial whitespace change to test build-triggering filters
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@595916 13f79535-47bb-0310-9956-ffa450edef68
2007-11-17 07:01:40 +00:00
Patrick Linskey da9c4ba721 Removing disabled test case
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@595915 13f79535-47bb-0310-9956-ffa450edef68
2007-11-17 06:49:40 +00:00
Patrick Linskey f875a5e98b OPENJPA-200
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@595912 13f79535-47bb-0310-9956-ffa450edef68
2007-11-17 06:38:33 +00:00
Patrick Linskey 74683912e3 New test case for enums and JPQL (including some disabled failing tests related to OPENJPA-200); simplification to JDBCStoreManager.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@595910 13f79535-47bb-0310-9956-ffa450edef68
2007-11-17 05:28:58 +00:00
Patrick Linskey 6f44b55736 OPENJPA-316
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@595512 13f79535-47bb-0310-9956-ffa450edef68
2007-11-16 01:19:14 +00:00
Patrick Linskey 0071f7b0d8 OPENJPA-316
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@595510 13f79535-47bb-0310-9956-ffa450edef68
2007-11-16 01:09:26 +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
Craig Russell 4a8d0b798b OPENJPA-427 Change maxAutoAssignNameLength to 63 for PostgreSQL
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@595383 13f79535-47bb-0310-9956-ffa450edef68
2007-11-15 18:14:55 +00:00
Patrick Linskey 80269d0f19 OPENJPA-439
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@594234 13f79535-47bb-0310-9956-ffa450edef68
2007-11-12 17:57:50 +00:00
Patrick Linskey 2895819d40 OPENJPA-417. Removed obsolete test support class.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@592964 13f79535-47bb-0310-9956-ffa450edef68
2007-11-08 00:09:55 +00:00
Patrick Linskey 17a93adda5 OPENJPA-417. Added support for containers of primitives, embeddeds, externalizables, etc.
This does not include test cases for the following annotations:

    KeyClassCriteria
    KeyColumns (KeyColumn is tested, and follows similar pathways)
    KeyEmbeddedMapping
    KeyJoinColumns (KeyJoinColumn is tested, and follows similar pathways)
    KeyStrategy
    ElementColumns (ElementColumn is tested, and follows similar pathways)
    ElementEmbeddedMapping
    ElementStrategy
    XEmbeddedMapping
    XMappingOverrides (XMappingOverride is tested, and follows similar pathways)

This change presents a backward-compat issue for OpenJPA: in the past, a Collection<String> or Map<String,String> would be mapped as a BLOB by specifying @PersistentMap or @PersistentCollection on the field.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@592917 13f79535-47bb-0310-9956-ffa450edef68
2007-11-07 21:46:09 +00:00
Pinaki Poddar c96881a214 Set LockTimeout from configuration
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@592909 13f79535-47bb-0310-9956-ffa450edef68
2007-11-07 21:36:50 +00:00
Patrick Linskey 10de9ba4eb Changed the default table name and index name lengths.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@592676 13f79535-47bb-0310-9956-ffa450edef68
2007-11-07 09:55:27 +00:00
Patrick Linskey 9b42c2d7a0 'key' is a reserved word in Derby.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@592558 13f79535-47bb-0310-9956-ffa450edef68
2007-11-06 21:27:52 +00:00
Patrick Linskey a710a30b54 Additional test cases.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@592557 13f79535-47bb-0310-9956-ffa450edef68
2007-11-06 21:26:40 +00:00
Patrick Linskey af4ea13a2c OPENJPA-430 -- strip hungarian notation prefixes. Checking in patch for Ben Short, along with minor whitespace reformatting and a small tweak to reduce computation if branch logic in correctName() will not use the calculated name.
The initial patch included a test for fields that would end up having duplicate names after truncation. The code, however, does not do anything to resolve / avoid duplicates. To make it work, we would need to change MappingDefaultsImpl.correctName() to take a ValueMapping as an argument, and do a two-pass algorithm to check for other fields that would turn into duplicates. Even doing this will not be foolproof, as a duplicate column might come from a subclass or an embedded class. Since this option is not enabled by default anyways, and the duplicate error would become evident during testing / schema creation, I do not believe that it would be worthwhile to spend much time addressing this.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@592319 13f79535-47bb-0310-9956-ffa450edef68
2007-11-06 07:36:55 +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
Kevin W. Sutter e5556e0fe5 OPENJPA-370. Backing out the changes for the LoadFetchGroup implementation. We need to re-think the implementation (both the real and the expected). I left the test Entities in SVN, but removed the testcase so that we wouldn't fail the builds.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@591176 13f79535-47bb-0310-9956-ffa450edef68
2007-11-02 00:36:54 +00:00
Pinaki Poddar 18cc4b932f Added to count SQL issued. Current sql list size is not used so that user can reset the counter without destroying the list of SQL.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@591135 13f79535-47bb-0310-9956-ffa450edef68
2007-11-01 19:36:55 +00:00
Patrick Linskey 830cc35014 Additional test cases for JPA annotations; commented-out test for OPENJPA-425.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@590529 13f79535-47bb-0310-9956-ffa450edef68
2007-10-31 01:27:23 +00:00
Patrick Linskey bc9d60fe3b OPENJPA-407. Backing out attempted optimization due to regressions in test suite.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@590520 13f79535-47bb-0310-9956-ffa450edef68
2007-10-31 00:29:38 +00:00
Patrick Linskey f187b3d995 Corrected extra whitespace in error message.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@590496 13f79535-47bb-0310-9956-ffa450edef68
2007-10-30 22:29:17 +00:00
Patrick Linskey c3ba59f3e7 removed accidentally-added test case
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@590485 13f79535-47bb-0310-9956-ffa450edef68
2007-10-30 21:54:31 +00:00