Commit Graph

338 Commits

Author SHA1 Message Date
Michael Dick 81cb7e17f9 OPENJPA-464 commiting patch provided by Teresa Kan
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@619664 13f79535-47bb-0310-9956-ffa450edef68
2008-02-07 22:11:21 +00:00
Michael Dick 0033a6b3d9 OPENJPA-511
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@619471 13f79535-47bb-0310-9956-ffa450edef68
2008-02-07 16:01:06 +00:00
Albert Lee 903170b333 Enable ability to subclass of JDBCFetchConfigurationmpl; change one constructor from private to protected.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@619147 13f79535-47bb-0310-9956-ffa450edef68
2008-02-06 20:45:20 +00:00
Pinaki Poddar 024faa31d7 OPENJPA-509 Fix & Test for insertion of MappedSuperClass-Entity-Embedded domain model insertion failure.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@618794 13f79535-47bb-0310-9956-ffa450edef68
2008-02-05 21:53:39 +00:00
Michael Dick b92f6420af OPENJPA-401 making temporary classloader optional for MappingTool ant task
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@618745 13f79535-47bb-0310-9956-ffa450edef68
2008-02-05 18:58:09 +00:00
Patrick Linskey de14ad6630 OPENJPA-147. Changes resulting from tests via Kodo's harness.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@618738 13f79535-47bb-0310-9956-ffa450edef68
2008-02-05 18:34:55 +00:00
Patrick Linskey 18c90bbd0b OPENJPA-508 Merge from ../branches/1.0.x. svn merge -c 617760 ../branches/1.0.x
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@617763 13f79535-47bb-0310-9956-ffa450edef68
2008-02-02 06:42:20 +00:00
Kevin W. Sutter 70f3a94b36 OPENJPA-505. Resolving some formatting issues with the r616658 commit.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@616878 13f79535-47bb-0310-9956-ffa450edef68
2008-01-30 20:01:09 +00:00
Patrick Linskey 0b4ce34920 OPENJPA-505. Committing on behalf of joe@bea.com (Joe Weinstein).
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@616658 13f79535-47bb-0310-9956-ffa450edef68
2008-01-30 06:49:26 +00:00
Catalina Wei a8f6d3c116 OPENJPA-477 Making StoreManager more flexible and extensible
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@614763 13f79535-47bb-0310-9956-ffa450edef68
2008-01-24 01:33:48 +00:00
Michael Dick 8d18daabd7 OPENJPA-464 committing patch provided by Teresa Kan
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@614731 13f79535-47bb-0310-9956-ffa450edef68
2008-01-23 23:25:56 +00:00
Patrick Linskey 95018cef64 OPENJPA-430. Fixed bug that passed all column name checks through to the DBDictionary for potential renaming even when _defMissing is enabled.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@614640 13f79535-47bb-0310-9956-ffa450edef68
2008-01-23 19:51:45 +00:00
Patrick Linskey 8464ea75f1 OPENJPA-488. HSQL override is no longer necessary; correct if clause in DBDictionary.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@612523 13f79535-47bb-0310-9956-ffa450edef68
2008-01-16 17:25:47 +00:00
Patrick Linskey 8c4cf9511e OPENJPA-488, OPENJPA-489, OPENJPA-490, OPENJPA-491, OPENJPA-492
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@612345 13f79535-47bb-0310-9956-ffa450edef68
2008-01-16 03:49:23 +00:00
Catalina Wei 0d3bc96fcb OPENJPA-471 iSeries DB2 problem with using @GeneratedValue(strategy=GenerationType.IDENTITY)
or @GeneratedValue(strategy=GenerationType.SEQUENCE)


git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@610697 13f79535-47bb-0310-9956-ffa450edef68
2008-01-10 06:55:17 +00:00
David Ezzio d621aa765d Removed duplicate prefixing of schema name in resolveTableName
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@610427 13f79535-47bb-0310-9956-ffa450edef68
2008-01-09 15:59:39 +00:00
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
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
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
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
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
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 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
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 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 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 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 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 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
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 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
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
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
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
Albert Lee 92919929f8 OPENJPA-413, commit localizer.properties files for Teresa in 110 trunk.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@587688 13f79535-47bb-0310-9956-ffa450edef68
2007-10-23 23:07:36 +00:00
Kevin W. Sutter ba6274a19e OPENJPA-410. Committing the change to make the "connecting to database" message a Trace message instead of an Info message.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@586588 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 19:37:44 +00:00