Commit Graph

1595 Commits

Author SHA1 Message Date
Michael Dick 7f7497dee3 OPENJPA-781 committing patch contributed by Fernando
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@720521 13f79535-47bb-0310-9956-ffa450edef68
2008-11-25 16:10:02 +00:00
Michael Dick 9e67ec5ae8 OPENJPA-778 cleanup
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@719739 13f79535-47bb-0310-9956-ffa450edef68
2008-11-21 22:55:38 +00:00
Michael Dick 2b1a1e69e2 OPENJPA-778 committing patch provided by Fernando
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@719698 13f79535-47bb-0310-9956-ffa450edef68
2008-11-21 20:16:32 +00:00
Pinaki Poddar 76c3cd36cc Elaborate on usage of Entity Reference as part of compound key
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@719627 13f79535-47bb-0310-9956-ffa450edef68
2008-11-21 16:31:45 +00:00
Kevin W. Sutter 68d48f948e OPENJPA-774. Committing the patch provided by Alexey Ousov in trunk and the 1.3.x branch.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@719388 13f79535-47bb-0310-9956-ffa450edef68
2008-11-20 21:48:54 +00:00
Fay Wang bb937f3634 OPENJPA-742: add get lineNumber/ColumnNumber to SourceTracker
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@719314 13f79535-47bb-0310-9956-ffa450edef68
2008-11-20 18:16:46 +00:00
Srinivasa Segu 031f525d4f OPENJPA-680 - After load and after refresh callbacks were each resulting in a post load call resulting in the duplicate call. Fix addresses the same and re-introduces the original fix.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@719166 13f79535-47bb-0310-9956-ffa450edef68
2008-11-20 05:37:59 +00:00
Pinaki Poddar 64a1293f51 OPENJPA-772: Sets JPA spec version to the 2.0 EA snapshot (which has partial definition of JPA 2.0 API) and sets parent pom to apache (which defines the sanpshot repos). Patch cotributed by David Jencks.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@718426 13f79535-47bb-0310-9956-ffa450edef68
2008-11-17 22:56:14 +00:00
Pinaki Poddar 9d40841d48 OPENJPA-340: Let DBDictionary generate Unique Constraint names rather than Unique trying to auto-generate such names in lesser scope. Strengthen the tests to have exactly same named unique columns in two classes to verify that the unique constraint names are unique across tables.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@713778 13f79535-47bb-0310-9956-ffa450edef68
2008-11-13 18:33:07 +00:00
Pinaki Poddar 25c31398f1 OPENJPA-766: Use @AllowFailure to remove <exclude> clause for failing tests in pom.xml. Also added a facility to list tests that are annotated with AllowFailure.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@713630 13f79535-47bb-0310-9956-ffa450edef68
2008-11-13 04:09:08 +00:00
Michael Dick 1ae20fc277 unify doPrivHelpers
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@713493 13f79535-47bb-0310-9956-ffa450edef68
2008-11-12 20:19:40 +00:00
Pinaki Poddar ef910bb684 OPENJPA-766: Allow Tests that fail to be included in the repository. Annotate the TestCase or its specific methods with @AllowFailure(true|false)
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@713084 13f79535-47bb-0310-9956-ffa450edef68
2008-11-11 17:01:42 +00:00
Michael Dick 02608cc658 OPENJPA-765 Check for isInsertable and isUpdatable in HandlerFieldStrategy
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@712928 13f79535-47bb-0310-9956-ffa450edef68
2008-11-11 03:44:43 +00:00
Pinaki Poddar 75b9ca7fa3 OPENJPA-764: Parse IN expressions with string functions such as UPPER()
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@712842 13f79535-47bb-0310-9956-ffa450edef68
2008-11-10 21:35:35 +00:00
Catalina Wei 5550d8dbb5 OPENJPA-755 Update to SingleFieldManager to permit detached related entities on a merge with cascade persist.
cosmatic changes only - removed tabs.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@712817 13f79535-47bb-0310-9956-ffa450edef68
2008-11-10 19:55:00 +00:00
Pinaki Poddar e11d0f7e12 Generate unique name for unique constraints created by @Column(unique=true)
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@712300 13f79535-47bb-0310-9956-ffa450edef68
2008-11-07 22:49:13 +00:00
Albert Lee ea9378fc96 OPENJPA-580 - Improve jdbc url mapping to DB dictionary alias.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@711726 13f79535-47bb-0310-9956-ffa450edef68
2008-11-05 22:31:42 +00:00
Albert Lee f55dff2069 OPENJPA-761 - test for null column object and post a more meaning message to the warning log in SchemaGenerator.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@711432 13f79535-47bb-0310-9956-ffa450edef68
2008-11-04 21:56:35 +00:00
Fay Wang 7e24608f52 OPENJPA-762: Batch execution fails for Oracle when batch
limit is set to -1.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@711404 13f79535-47bb-0310-9956-ffa450edef68
2008-11-04 21:03:56 +00:00
Albert Lee 675ee18565 OPENJPA-760 - Commit contributions on behalf of Georgi Naplatanov.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@710180 13f79535-47bb-0310-9956-ffa450edef68
2008-11-03 21:52:49 +00:00
A. Abram White 3cc3bfe87c Use full table name according to DBDictionary when constructing GetMapValue
subquery, which may include schema.



git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@710015 13f79535-47bb-0310-9956-ffa450edef68
2008-11-03 06:36:49 +00:00
Jeremy Bauer 54d4d0d07d OPENJPA-755 Update to SingleFieldManager to permit detached related entities on a merge with cascade persist. Committing for Dinkar Rao.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@709527 13f79535-47bb-0310-9956-ffa450edef68
2008-10-31 18:39:16 +00:00
Fay Wang 1a378e13f9 OPENJPA-738: query cache performance improvement. Commit
the change in OPENJPA-738.11.patch on behalf of Sandhya 
Turaga.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@708980 13f79535-47bb-0310-9956-ffa450edef68
2008-10-29 19:06:58 +00:00
Albert Lee 509f41c801 OPENJPA-751 - Commit documentation changes contributed by Milosz Tylenda.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@708975 13f79535-47bb-0310-9956-ffa450edef68
2008-10-29 18:36:39 +00:00
Albert Lee 7c1c9fca60 OPENJPA-754 - Add additional condition to determine if the pre/postUpdate callback should be called.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@708722 13f79535-47bb-0310-9956-ffa450edef68
2008-10-28 23:31:09 +00:00
Michael Dick 995c6a4acc Code cleanup remove compiler warnings
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@708580 13f79535-47bb-0310-9956-ffa450edef68
2008-10-28 14:15:01 +00:00
Michael Dick b9476a8ae8 Code cleanup
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@708213 13f79535-47bb-0310-9956-ffa450edef68
2008-10-27 15:07:00 +00:00
Michael Dick e1bd3c4dcb Code cleanup: remove some unnescessary casts
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@707937 13f79535-47bb-0310-9956-ffa450edef68
2008-10-26 04:31:28 +00:00
Albert Lee f01e6bd0d4 OPENJPA-752: Enhance exception message text to improve serviceability.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@707740 13f79535-47bb-0310-9956-ffa450edef68
2008-10-24 20:35:24 +00:00
Michael Dick 284bd408f8 [maven-release-plugin] prepare release 1.3.x
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@707728 13f79535-47bb-0310-9956-ffa450edef68
2008-10-24 19:19:49 +00:00
Michael Dick 660371bfd5 [maven-release-plugin] prepare branch 1.3.x
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@707726 13f79535-47bb-0310-9956-ffa450edef68
2008-10-24 19:19:35 +00:00
Jeremy Bauer 044764a395 OPENJPA-750: Updates to code and doc based on code review comments
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@707655 13f79535-47bb-0310-9956-ffa450edef68
2008-10-24 15:24:21 +00:00
Jeremy Bauer c49f0e17d6 OPENJPA-750: Added option to Sybase dictionary to ignore truncation warnings, added doc for new dictionary option, and code to log any SQLWarnings when update count isn't expected value.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@707270 13f79535-47bb-0310-9956-ffa450edef68
2008-10-23 04:43:35 +00:00
Fay Wang 703a2b9b60 OPENJPA-745: streamline the fix to be consistent with the fix
in OPENJPA-750

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@707214 13f79535-47bb-0310-9956-ffa450edef68
2008-10-22 22:12:37 +00:00
Michael Dick e23ea92319 Organize imports for DistributedStoreManager to avoid protection problem with sun.reflect.ReflectionFactory
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@706841 13f79535-47bb-0310-9956-ffa450edef68
2008-10-22 01:29:16 +00:00
Fay Wang ac40fde3f1 OPENJPA-745: raise string right truncation error for Sybase. Move
the call to _dict.initializedSettings inside the block of 
checking whether _conn is null in JDBCStoreManager.


git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@706494 13f79535-47bb-0310-9956-ffa450edef68
2008-10-21 02:11:41 +00:00
Fay Wang 1e4aa60859 OPENJPA-745 raise string right truncation error for Sybase
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@706493 13f79535-47bb-0310-9956-ffa450edef68
2008-10-21 02:03:26 +00:00
Catalina Wei e2388e9b3c OPENJPA-738 QueryCache Improvement
Committing patch provided by Sandhya Sturaga

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@706481 13f79535-47bb-0310-9956-ffa450edef68
2008-10-21 00:23:29 +00:00
Pinaki Poddar 16e7a11f81 document ReplicationPolicy for Slice. Also assorted doc edit
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@705487 13f79535-47bb-0310-9956-ffa450edef68
2008-10-17 06:21:49 +00:00
Catalina Wei 7131ef0748 OPENJPA-744 Extra SQL on LAZY/EAGER ManyToOne relation
Further improved code and additional testcases.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@705335 13f79535-47bb-0310-9956-ffa450edef68
2008-10-16 19:37:02 +00:00
Michael Dick 83f526a3f0 OPENJPA-733 adding attributation to Charles Tillman in NOTICE.txt.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@704764 13f79535-47bb-0310-9956-ffa450edef68
2008-10-15 01:34:57 +00:00
Catalina Wei 5128ee06a4 OPENJPA-744 Extra SQL on LAZY/EAGER ManyToOne relation
Further improved for performance when OneToMany is fetch EAGER, the inverse ManyToOne relations are set such that relation fields in entities after detach remain valid.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@704585 13f79535-47bb-0310-9956-ffa450edef68
2008-10-14 17:22:39 +00:00
Catalina Wei 212ddcefc9 OPENJPA-744 OneToMany EAGER loading generates extra SQLs on inverse ManyToOne relation
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@703912 13f79535-47bb-0310-9956-ffa450edef68
2008-10-13 04:37:48 +00:00
Albert Lee 99dc9d8a66 OPENJPA-732 - Re-commit the same original committed changes (code and tests) after test cases corrections were made.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@702348 13f79535-47bb-0310-9956-ffa450edef68
2008-10-07 05:15:05 +00:00
Albert Lee 7b11877e36 Modified CombinationGenerator.generator() algorithm to create the complete combination set from added options.
Removed the test case which assumes "UPDATE CHILD SET PARENT_ID ..." will be issued for some test's conditions and make sure consistent successful execution from repeated test runs.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@702346 13f79535-47bb-0310-9956-ffa450edef68
2008-10-07 05:12:25 +00:00
Albert Lee d31d40f511 Fix test case db preparation to allow tests to repeat run without taking various runtime exception.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@702180 13f79535-47bb-0310-9956-ffa450edef68
2008-10-06 15:33:57 +00:00
Albert Lee 229220b922 Fix test case db preparation to allow test to repeat run without taking a duplicate key exception.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@702177 13f79535-47bb-0310-9956-ffa450edef68
2008-10-06 15:30:34 +00:00
Fay Wang 050a99a3e4 OPENJPA-736 use jdbc api getGeneratedKey to combine insert
and select SQL for generated id strategy = GenerationType.IDENTITY.
Found some indentation problem and fixed it. No logic change.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@701555 13f79535-47bb-0310-9956-ffa450edef68
2008-10-03 22:39:53 +00:00
Fay Wang e7867662bd OPENJPA-736 use jdbc api getGeneratedKey to combine insert
and select SQL for generated id strategy = GenerationType.IDENTITY

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@701537 13f79535-47bb-0310-9956-ffa450edef68
2008-10-03 21:16:50 +00:00
Albert Lee 50ff3ed693 OPENJPA-732 - Regressed a unit test. Reverting BrokerImpl back to previous level and disabling a test in the new TestMessageListener.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@701266 13f79535-47bb-0310-9956-ffa450edef68
2008-10-02 22:50:41 +00:00