Commit Graph

290 Commits

Author SHA1 Message Date
Catalina Wei b013b6fd4a 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/branches/1.0.x@610697 13f79535-47bb-0310-9956-ffa450edef68
2008-01-10 06:55:17 +00:00
Albert Lee 9e014f54d9 Update version from 1.0.1-SNAPSHOT to 1.0.2-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@593712 13f79535-47bb-0310-9956-ffa450edef68
2007-11-10 01:35:32 +00:00
Catalina Wei 5e927f2376 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/branches/1.0.x@590481 13f79535-47bb-0310-9956-ffa450edef68
2007-10-30 21:51:47 +00:00
Michael Dick 3860784216 OPENJPA-399 committing Teresa's patch
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@589784 13f79535-47bb-0310-9956-ffa450edef68
2007-10-29 18:21:56 +00:00
Kevin W. Sutter 446a0e0543 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/branches/1.0.x@589723 13f79535-47bb-0310-9956-ffa450edef68
2007-10-29 16:23:17 +00:00
Michael Dick c5ff10a141 OPENJPA-423
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@589694 13f79535-47bb-0310-9956-ffa450edef68
2007-10-29 15:47:50 +00:00
Michael Dick 71dc3ad34d OPENJPA-113
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@587774 13f79535-47bb-0310-9956-ffa450edef68
2007-10-24 04:13:07 +00:00
Albert Lee 546c34abd1 OPENJPA-413, commit localizer.properties files for Teresa.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@587683 13f79535-47bb-0310-9956-ffa450edef68
2007-10-23 22:48:48 +00:00
Kevin W. Sutter a94a55d00b 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/branches/1.0.x@586588 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 19:37:44 +00:00
Kevin W. Sutter 548a483a04 OPENJPA-399. Committing Teresa's most recent patch for this Issue. Should be ready for resolution now.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@585774 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 01:37:58 +00:00
Michael Dick 9e807991b0 OPENJPA-399 Committing Teresa's patch
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@584350 13f79535-47bb-0310-9956-ffa450edef68
2007-10-13 00:35:12 +00:00
Michael Dick 3b2b878d0a OPENJPA-399 committing Teresa's patch
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@584337 13f79535-47bb-0310-9956-ffa450edef68
2007-10-12 23:50:55 +00:00
Michael Dick 008ac73d7c OPENJPA-401
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@584192 13f79535-47bb-0310-9956-ffa450edef68
2007-10-12 15:49:00 +00:00
Michael Dick 3412d7df07 OPENJPA-397
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@582852 13f79535-47bb-0310-9956-ffa450edef68
2007-10-08 15:41:25 +00:00
Kevin W. Sutter fe50bbe648 OPENJPA-395. Use getShort instead of getInt for the KEY_SEQ, DEFFERABILITY, and DELETE_RULE metadata fields.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@582838 13f79535-47bb-0310-9956-ffa450edef68
2007-10-08 14:41:14 +00:00
Catalina Wei 6c1b918371 OPENJPA-394 (bug in 1.0.x) : DB2 CAST ? AS VARCHAR missing LENGTH
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@582581 13f79535-47bb-0310-9956-ffa450edef68
2007-10-07 05:46:00 +00:00
Patrick Linskey cc2b032223 OPENJPA-368 -- putting Vikram's patch in 1.0.x. 'svn merge -c 581443 ../../trunk'
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@581444 13f79535-47bb-0310-9956-ffa450edef68
2007-10-03 00:18:37 +00:00
Catalina Wei cbf296df72 OPENJPA-389 et.commit() not issuing database commit for Native queries involving updates.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@581083 13f79535-47bb-0310-9956-ffa450edef68
2007-10-01 21:44:59 +00:00
Michael Dick e75c7cb446 OPENJPA-388
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@580425 13f79535-47bb-0310-9956-ffa450edef68
2007-09-28 17:13:35 +00:00
Catalina Wei f42bfb718e OPENJPA-378 DB2 "FETCH FIRST <n> ROWS ONLY" clause should not be generated in subselect for SELECT COUNT(*) from (subselect ...) s
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@577972 13f79535-47bb-0310-9956-ffa450edef68
2007-09-21 03:29:38 +00:00
Michael Dick bd40a0cea5 Undo OPENJPA_356 in 1.0.x branch
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@577522 13f79535-47bb-0310-9956-ffa450edef68
2007-09-20 03:29:06 +00:00
Michael Dick 972e71f970 OPENJPA-282 merging to 1.0.x branch.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@577090 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 22:35:52 +00:00
Michael Dick 1e726bdbfc OPENJPA-356 in 1.0.x committing Patrick's changes originally done in rev 573676
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@577066 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 21:05:00 +00:00
Michael Dick e90c610dff OPENJPA-338 for 1.0.x. Committing Teresa's patch
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@577038 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 20:10:39 +00:00
Catalina Wei 2663cb3e32 OPENJPA-375 DB2 autoCommit(true) causes Result Set prematurely closed in WebContainer JEE environment.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@577014 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 18:49:05 +00:00
Michael Dick 05fb97ded7 OPENJPA-353 for 1.0.x branch
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@576948 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 15:25:14 +00:00
Catalina Wei 2c748d1aea OPENJPA-360 FOR UPDATE clause incorrectly generated, remove transient variable declaration
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@575080 13f79535-47bb-0310-9956-ffa450edef68
2007-09-12 21:11:56 +00:00
Catalina Wei 04b3212698 OPENJPA-360 SQL FOR UPDATE OF incorrectly generated for DB2 UDB version8.1 or earlier and DB2 ISeries V5R3 or earlier.
These  DB2 version also require the "optimize for <n> row" clause appear before FOR UPDATE clause.
Due to this requirement, the OPTIMIZE clause will  appear before FOR UPDATE clause for all DB2 versions.
Also fixed the affected testcases.
Same fix retrofit to OpenJPA 1.0.x branch.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@574653 13f79535-47bb-0310-9956-ffa450edef68
2007-09-11 17:59:38 +00:00
Marc Prud'hommeaux 9cc19220d5 Changed maintenance branch version to be 1.0.1-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.x@570490 13f79535-47bb-0310-9956-ffa450edef68
2007-08-28 17:16:08 +00:00
Patrick Linskey 6ba6ce4e7e OpenJPA used to rely on being able to implicitly specify a value for a @GeneratedValue field when using an IDENTITY generation strategy. Now that we do not allow that behavior, OpenJPA was failing to generate IDs properly in some cases. Fixed.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.0@568363 13f79535-47bb-0310-9956-ffa450edef68
2007-08-22 01:33:40 +00:00
Marc Prud'hommeaux 1f15d9f34d Bumping release number from 1.0.0-SNAPSHOT to 1.0.0
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/1.0.0@568075 13f79535-47bb-0310-9956-ffa450edef68
2007-08-21 11:36:14 +00:00
Patrick Linskey 52d7ab7975 OPENJPA-321. Avoiding JDK1.5-specific String.replace() call. Also changed the method to return a well-balanced SQL, since it looks like the only usage is in a place where well-balanced-ness is possible.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567962 13f79535-47bb-0310-9956-ffa450edef68
2007-08-21 05:26:15 +00:00
Kevin W. Sutter eaeebf20c7 OPENJPA-321. Committing Teresa's patch with a few minor formatting updates. Thanks, Teresa.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567928 13f79535-47bb-0310-9956-ffa450edef68
2007-08-21 03:15:37 +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
Patrick Linskey 0a40e8c9a4 OPENJPA-323. If it was ok to comment out, it must be ok to remove altogether.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567858 13f79535-47bb-0310-9956-ffa450edef68
2007-08-20 22:25:37 +00:00
Kevin W. Sutter 6316c57e97 OPENJPA-323. Committing message updates per Teresa's patch. Thanks, Teresa!
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567748 13f79535-47bb-0310-9956-ffa450edef68
2007-08-20 16:50:20 +00:00
Marc Prud'hommeaux f9fcb11a35 Fixed JDK 1.5-ism of Character.valueOf(char) by changing it to new Characher(char).
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567127 13f79535-47bb-0310-9956-ffa450edef68
2007-08-17 20:16:25 +00:00
Kevin W. Sutter 71f44f884e OPENJPA-320. Updated the resevered schema prefixes for DB2.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@566855 13f79535-47bb-0310-9956-ffa450edef68
2007-08-16 21:18:35 +00:00
Michael Dick 6cd259f310 OPENJPA-143
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@566788 13f79535-47bb-0310-9956-ffa450edef68
2007-08-16 17:59:57 +00:00
Kevin W. Sutter 88f293dec9 OPENJPA-312. Committing these changes for Daniel. I decided to make a common private utility method out of the common code across the proposed patch, but the intent of the original patch is still there. Thanks, Daniel, for posting the fix.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@566381 13f79535-47bb-0310-9956-ffa450edef68
2007-08-15 22:56:44 +00:00
David J. Wisneski c014c92538 Help Catalina committing OPENJPA-313.2.patch
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@566006 13f79535-47bb-0310-9956-ffa450edef68
2007-08-15 02:24:50 +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 4e81825171 OPENJPA-313. Looks like this patch wasn't quite ready for prime time. I attempted to re-build and re-test right after applying this change and I got several testcase errors in openjpa-persistence-jdbc. I revert back ClassMapping.java and the problems go away. Needs some more work...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@565896 13f79535-47bb-0310-9956-ffa450edef68
2007-08-14 20:17:39 +00:00
David J. Wisneski 26b0e49845 Help Catalina committing OPENJPA-313.r564688.patch
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@565845 13f79535-47bb-0310-9956-ffa450edef68
2007-08-14 17:38:00 +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
Patrick Linskey 0b1b37dbba feedback from Bill Pugh of FindBugs fame
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@563357 13f79535-47bb-0310-9956-ffa450edef68
2007-08-07 00:19:53 +00:00
Patrick Linskey d5ef5d1f3d OPENJPA-308
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@563355 13f79535-47bb-0310-9956-ffa450edef68
2007-08-07 00:16:08 +00:00
Kevin W. Sutter c34fb4e80e OPENJPA-281. Committing the patch that I posted earlier this week. These changes do the proper eager loading of @Basic types. Along with a new testcase and updated AllFieldTypes.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@562986 13f79535-47bb-0310-9956-ffa450edef68
2007-08-05 23:30:08 +00:00
David J. Wisneski 6128ddbc2d OPENJPA-266 load platform specific DBDictionary from dbdictionaryPlugin
Help committing Catalina's DBDictionaryFactory.patch

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@561413 13f79535-47bb-0310-9956-ffa450edef68
2007-07-31 18:01:19 +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