Commit Graph

1237 Commits

Author SHA1 Message Date
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
Patrick Linskey 9776c5bdfe Fixed test case that depended on new error message.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@590484 13f79535-47bb-0310-9956-ffa450edef68
2007-10-30 21:52:47 +00:00
Catalina Wei ac83668ffa OPENJPA-375: undo this fix for DB2 (result set closed problem). The problem is resolved by setting DB2 datasource custom property "resultSetHoldability" to 1 in WebSphere.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@590481 13f79535-47bb-0310-9956-ffa450edef68
2007-10-30 21:51:47 +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
Patrick Linskey 73b35874f0 Avoid potential NPE; fix error msg.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@590143 13f79535-47bb-0310-9956-ffa450edef68
2007-10-30 16:51:32 +00:00
Patrick Linskey cd2f9e978e Localized error message clarification, based on user feedback.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@589975 13f79535-47bb-0310-9956-ffa450edef68
2007-10-30 06:51:15 +00:00
Michael Dick 6a26ae2531 OPENJPA-399 committing Teresa's patch
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@589788 13f79535-47bb-0310-9956-ffa450edef68
2007-10-29 18:26:15 +00:00
Kevin W. Sutter 2f2e39991d OPENJPA-421. Committing Daniel's changes to ensure that the datasource configuration is complete before attempting to generate SQL.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@589723 13f79535-47bb-0310-9956-ffa450edef68
2007-10-29 16:23:17 +00:00
Michael Dick 80d2c39020 OPENJPA-423
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@589696 13f79535-47bb-0310-9956-ffa450edef68
2007-10-29 15:48:31 +00:00
Patrick Linskey 1f92ab5842 Formatting fix.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@589246 13f79535-47bb-0310-9956-ffa450edef68
2007-10-27 23:57:12 +00:00
Kevin W. Sutter ddd0791346 OPENJPA-422. The reproxy() method needed the Calendar object type in it's switch statement.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@589207 13f79535-47bb-0310-9956-ffa450edef68
2007-10-27 20:18:56 +00:00
Patrick Linskey e487d35da6 OPENJPA-419
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@588533 13f79535-47bb-0310-9956-ffa450edef68
2007-10-26 05:39:48 +00:00
Patrick Linskey b50c73f357 OPENJPA-413. Some more clarifications in confusing error messages.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@588373 13f79535-47bb-0310-9956-ffa450edef68
2007-10-25 22:14:55 +00:00
Michael Dick 35fb37ea38 OPENJPA-413 revised message
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@588115 13f79535-47bb-0310-9956-ffa450edef68
2007-10-25 02:19:00 +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
Michael Dick 8a67bc2813 OPENJPA-413 committing for Teresa
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@588004 13f79535-47bb-0310-9956-ffa450edef68
2007-10-24 20:28:07 +00:00
Michael Dick 9e5cc06fcb OPENJPA-416
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@587943 13f79535-47bb-0310-9956-ffa450edef68
2007-10-24 18:09:01 +00:00
Michael Dick a282456a91 reverting javacc change so we will build on Windows
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@587896 13f79535-47bb-0310-9956-ffa450edef68
2007-10-24 14:21:50 +00:00
Michael Dick eb4c307446 Remove packages from javacc directories and upgrade to version 2.2.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@587782 13f79535-47bb-0310-9956-ffa450edef68
2007-10-24 04:50:28 +00:00
Michael Dick cb2a061dc7 OPENJPA-113 with testcase
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@587775 13f79535-47bb-0310-9956-ffa450edef68
2007-10-24 04:17:59 +00:00