Commit Graph

1550 Commits

Author SHA1 Message Date
Pinaki Poddar 3ee2f9e40e Remove wrong headers
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@687879 13f79535-47bb-0310-9956-ffa450edef68
2008-08-21 22:12:51 +00:00
Pinaki Poddar 0d5f08efd9 Add a test case for projection of multiple entity.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@687806 13f79535-47bb-0310-9956-ffa450edef68
2008-08-21 17:11:42 +00:00
Pinaki Poddar 4dd92231c5 Generate informative error message when query fails due to wrong unbound variables
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@687122 13f79535-47bb-0310-9956-ffa450edef68
2008-08-19 18:42:26 +00:00
Pinaki Poddar ff93b1d6e6 OPENJPA-678: Hint based targeting of Slices required changes because of eager compilation of Query.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@686453 13f79535-47bb-0310-9956-ffa450edef68
2008-08-16 05:51:59 +00:00
Pinaki Poddar c1d9abd216 OPENJPA-111: Remove errorneous import
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@686421 13f79535-47bb-0310-9956-ffa450edef68
2008-08-16 00:09:38 +00:00
Pinaki Poddar d9712537da OPENJPA-111: Modified tests to use correct binding parameter. Added methods in MetaDataRepository to look for NamedQuery only by name without defining class information.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@686419 13f79535-47bb-0310-9956-ffa450edef68
2008-08-15 23:36:16 +00:00
Albert Lee a7b9f8f7f3 Minor typo corrections in message files.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@686401 13f79535-47bb-0310-9956-ffa450edef68
2008-08-15 22:19:24 +00:00
Albert Lee cf0985e524 OPENJPA-111: Minor message typo corrections.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@686359 13f79535-47bb-0310-9956-ffa450edef68
2008-08-15 20:34:36 +00:00
Pinaki Poddar d76c646acc OPENJPA-111: Validate native SQL parameters by the numbers of parameters in StoreQuery level and bypass validation at facade layer
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@686349 13f79535-47bb-0310-9956-ffa450edef68
2008-08-15 19:38:10 +00:00
A. Abram White fd15719a4b Eagerly compile JPQL queries to catch JPQL errors and throw proper exception as
required by spec.  OPENJPA-678



git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@686325 13f79535-47bb-0310-9956-ffa450edef68
2008-08-15 19:04:25 +00:00
Kevin W. Sutter d5820cb4c6 Cleaning up our testcase run to get rid of the INFO messages for a non-existent file.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@686061 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 22:14:41 +00:00
Pinaki Poddar aae1260665 OPENJPA-693: Support 1.5 directional mapping where Parent maps its Children but Child refers to Parent via Parent's primary key value. Introduces a concept of implicit ForeignKey that marks the shared mapped column without any database schema impact.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@686037 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 20:52:16 +00:00
Albert Lee 404cbbf99b OPENJPA-680 - revert changes due to TCK regression.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@685336 13f79535-47bb-0310-9956-ffa450edef68
2008-08-12 21:58:19 +00:00
Catalina Wei f4845dae9b OPENJPA-679 java.lang.ArrayIndexOutOfBoundsException may occur when a relation field is annotated as a primary key and a foreign key
Commit patch provided by Fay Wang

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@685042 13f79535-47bb-0310-9956-ffa450edef68
2008-08-12 05:10:54 +00:00
Pinaki Poddar ffb59c35fc OPENJPA-692: Detect orphaning relation and change row update to delete for join table entry.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@684822 13f79535-47bb-0310-9956-ffa450edef68
2008-08-11 17:18:31 +00:00
Pinaki Poddar c8895c6978 OPENJPA-687: Change table names to avoid conflict
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@684806 13f79535-47bb-0310-9956-ffa450edef68
2008-08-11 16:44:01 +00:00
Albert Lee 5396a66b2b OPENJPA-686 - Commit on behalf of Fay Wang. Updating manual on Sybase specific behavior.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@684795 13f79535-47bb-0310-9956-ffa450edef68
2008-08-11 16:20:34 +00:00
Pinaki Poddar 7432d1e1ef Missed the last combination
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@684679 13f79535-47bb-0310-9956-ffa450edef68
2008-08-11 08:59:35 +00:00
Pinaki Poddar e7c3df714b OPENJPA-692: Add Test cases for Bi-directional mapping with JoinTable
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@684443 13f79535-47bb-0310-9956-ffa450edef68
2008-08-10 10:12:37 +00:00
Pinaki Poddar 6dbe8a9e57 OPENJPA-692: Bi-directional mapping with JoinTable
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@684442 13f79535-47bb-0310-9956-ffa450edef68
2008-08-10 10:11:50 +00:00
Pinaki Poddar ffa2851f89 OPENJPA-687: Documentation for cache statistics
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@684137 13f79535-47bb-0310-9956-ffa450edef68
2008-08-08 22:57:39 +00:00
Pinaki Poddar 0d3812fcb5 OPENJPA-687: Add read/write/hit statitics to DataCache/StoreCache
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@684132 13f79535-47bb-0310-9956-ffa450edef68
2008-08-08 22:39:39 +00:00
Srinivasa Segu 2a5964a540 OPENJPA-166 - Fix to use the translated exception as the cause for rollback.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@684082 13f79535-47bb-0310-9956-ffa450edef68
2008-08-08 20:36:31 +00:00
David Ezzio 0bbc9463fd Test case that works when enhancement is done at compile time. OPENJPA-684.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@684066 13f79535-47bb-0310-9956-ffa450edef68
2008-08-08 19:41:30 +00:00
David Ezzio 122229bb9a Fixed a comment and added exclusion from enhancement for any classes contained within a directory named "unenhanced".
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@684065 13f79535-47bb-0310-9956-ffa450edef68
2008-08-08 19:39:43 +00:00
David Ezzio e5a363e651 A little better error handling when an unknown persistence unit is specified in the test case.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@684064 13f79535-47bb-0310-9956-ffa450edef68
2008-08-08 19:38:13 +00:00
Albert Lee 352d799756 OPENJPA-680 - Format changes to standard 80 columns and spacing conventions.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@684037 13f79535-47bb-0310-9956-ffa450edef68
2008-08-08 18:32:01 +00:00
Pinaki Poddar 237c092ebb OPENJPA-677: Make a judgement whether reading discrimnator value from the result makes sense in a context
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@683916 13f79535-47bb-0310-9956-ffa450edef68
2008-08-08 08:59:12 +00:00
Pinaki Poddar 610023adee OPENJPA-678: Adding test case for query/named query
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@683914 13f79535-47bb-0310-9956-ffa450edef68
2008-08-08 08:53:35 +00:00
Pinaki Poddar 9ebfe800a5 OPENJPA-677: While loading intermediate data be more strict about when superclass oid can be allowed
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@683902 13f79535-47bb-0310-9956-ffa450edef68
2008-08-08 08:06:18 +00:00
Pinaki Poddar 446b85a6ae Assorted changes in test utilities
1. Added a new Test class CombinatorialPersistenceTestCase to run test with auto-generated configurations as combination of possible values of many configuration properties
  2. Added a Test for Parent-Child insertion under different foreign key constraint + update startaegies scenarios as an exemplar of this new utility
  3. Moved exception handling routines to base Persistence TestCase

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@683878 13f79535-47bb-0310-9956-ffa450edef68
2008-08-08 06:47:14 +00:00
Catalina Wei 053ad36618 OPENJPA-681 Subquery generates SQL with syntax error
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@683876 13f79535-47bb-0310-9956-ffa450edef68
2008-08-08 06:46:29 +00:00
Srinivasa Segu 4668ea4e77 OPENJPA-680. Consistent with the beforeRefresh call check for new unflushed instances
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@683805 13f79535-47bb-0310-9956-ffa450edef68
2008-08-08 02:42:36 +00:00
Michael Dick b53a58f948 OPENJPA-676 remove extra bracket
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@683304 13f79535-47bb-0310-9956-ffa450edef68
2008-08-06 15:45:08 +00:00
Michael Dick 62a6555c89 OPENJPA-676 remove extraneous cast
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@683299 13f79535-47bb-0310-9956-ffa450edef68
2008-08-06 15:34:33 +00:00
Michael Dick ce3f368ab0 OPENJPA-676 close connection used for CONTIGUOUS or TRANSACTIONAL sequences
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@683296 13f79535-47bb-0310-9956-ffa450edef68
2008-08-06 15:31:01 +00:00
Catalina Wei e97d6d1598 OPENJPA-674 javaagent enhancer (PCEnhancerAgent) ignores persistence units after the first in persistence.xml
committing PCEnhancerAgent.patch provided by Dinkar Rao

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@683075 13f79535-47bb-0310-9956-ffa450edef68
2008-08-06 01:28:26 +00:00
Pinaki Poddar a6216d10db OPENJPA-628: Adding missing license header
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@682877 13f79535-47bb-0310-9956-ffa450edef68
2008-08-05 19:10:37 +00:00
Pinaki Poddar a7464c7e0a OPENJPA-628: Adding more test cases for testing proxy collections in tracking changes in detached mode.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@682875 13f79535-47bb-0310-9956-ffa450edef68
2008-08-05 19:07:34 +00:00
Michael Dick e41e1dd976 OPENJPA-628. Revert changes from revision 610922 and add testcase.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@682821 13f79535-47bb-0310-9956-ffa450edef68
2008-08-05 17:37:39 +00:00
Michael Dick aba5ddc7fb Update assembly with correct javadoc location
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@682732 13f79535-47bb-0310-9956-ffa450edef68
2008-08-05 15:00:00 +00:00
Pinaki Poddar 3b00de3b26 OPENJPA-665: Check for null constraint on insert and update
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@682610 13f79535-47bb-0310-9956-ffa450edef68
2008-08-05 07:23:41 +00:00
Pinaki Poddar b683569de0 OPENJPA-485:
OPENJPA-497: Saving NPE

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@682570 13f79535-47bb-0310-9956-ffa450edef68
2008-08-05 03:19:13 +00:00
Albert Lee 49d5f19a68 OPENJPA-663 - Commit manual changes submitted by Jeremy Bauer.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@682478 13f79535-47bb-0310-9956-ffa450edef68
2008-08-04 19:45:12 +00:00
Pinaki Poddar 45651cee86 OPENJPA-497: TemporalType conversion at facade level Query.
Also includes extensive changes in parameter validation logic and data structure.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@681977 13f79535-47bb-0310-9956-ffa450edef68
2008-08-02 13:58:56 +00:00
Pinaki Poddar 043b0596b8 OPENJPA-485: Add test
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@681911 13f79535-47bb-0310-9956-ffa450edef68
2008-08-02 00:07:58 +00:00
Pinaki Poddar 6d8a587984 OPENJPA-550: Correct example usage
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@681909 13f79535-47bb-0310-9956-ffa450edef68
2008-08-01 23:59:11 +00:00
Pinaki Poddar bea15fff47 OPENJPA-28: GROUP BY clause on nested sub query should not appear on top-level query
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@681904 13f79535-47bb-0310-9956-ffa450edef68
2008-08-01 23:42:01 +00:00
Pinaki Poddar b29b9b6c76 OPENJPA-75: Error message for missing identification variable shows nearest Levensthien choice and all avaialble choices
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@681807 13f79535-47bb-0310-9956-ffa450edef68
2008-08-01 20:05:18 +00:00
Pinaki Poddar 8cb82a6f33 OPENJPA-485: ORDER BY clause in JPQL generates syntactically wrong SQL for TABLE_PER_CLASS inheritance hierarchy
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@681781 13f79535-47bb-0310-9956-ffa450edef68
2008-08-01 19:03:34 +00:00