Commit Graph

2839 Commits

Author SHA1 Message Date
Michael Dick 7c8454767e Fixing svn:eol-style
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@806726 13f79535-47bb-0310-9956-ffa450edef68
2009-08-21 21:28:08 +00:00
Michael Dick bb7048d27c OPENJPA-1200:
Discriminator column ignored for in select statement for OneToMany relationships.
Submitted By : Ravi Palacherla

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@806693 13f79535-47bb-0310-9956-ffa450edef68
2009-08-21 19:55:09 +00:00
Catalina Wei 2615a9b426 OPENJPA-1112 JPA2 Query result of embeddable object can not be further updated
Bulk update of embedded field is not allowed

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@806675 13f79535-47bb-0310-9956-ffa450edef68
2009-08-21 18:53:40 +00:00
Donald Woods 382bafc874 OPENJPA-1252 Same updates to this pom as for o-p-j in r806022
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@806333 13f79535-47bb-0310-9956-ffa450edef68
2009-08-20 20:02:08 +00:00
Donald Woods 5b9b5d7725 OPENJPA-1252 Include a Derby Network Server w/ JCC driver test profile and cleanup some other profiles.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@806022 13f79535-47bb-0310-9956-ffa450edef68
2009-08-20 02:30:09 +00:00
Fay Wang 21d88cadc7 OPENJPA-1256: fix ClassCastExcepton when IdClass contains an ENUM type
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@806011 13f79535-47bb-0310-9956-ffa450edef68
2009-08-20 00:03:30 +00:00
Donald Woods 7065743f17 OPENJPA-1252 Include a Derby Network Server test profile, allow Derby version to be changed on the cmdline, and cleanup some formatting/comments.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@805841 13f79535-47bb-0310-9956-ffa450edef68
2009-08-19 15:36:02 +00:00
Pinaki Poddar b11cdae338 Add error messages to FillStrategy
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@805588 13f79535-47bb-0310-9956-ffa450edef68
2009-08-18 21:27:42 +00:00
Donald Woods 30a7da0ba2 additional test for embeddable, elementcollection and lob
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@805573 13f79535-47bb-0310-9956-ffa450edef68
2009-08-18 20:45:21 +00:00
Pinaki Poddar 4e6a98f634 OPENJPA-849,OPENJPA-1251: Property management, hidden values
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@805567 13f79535-47bb-0310-9956-ffa450edef68
2009-08-18 20:27:30 +00:00
Pinaki Poddar 814341420d OPENJPA-849, OPENJPA-1251: property management, hidden values
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@805565 13f79535-47bb-0310-9956-ffa450edef68
2009-08-18 20:20:26 +00:00
Michael Dick 0e4769e43b OPENJPA-1246 :
Order databases alphabetically.
	modified:   openjpa-project/src/doc/manual/ref_guide_dbsetup.xml
	modified:   openjpa-project/src/doc/manual/supported_databases.xml

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@805138 13f79535-47bb-0310-9956-ffa450edef68
2009-08-17 20:57:34 +00:00
Fay Wang c35c13497b OPENJPA-1250: fix ClassCast exception with eagerly fetched ElementCollection
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@805090 13f79535-47bb-0310-9956-ffa450edef68
2009-08-17 18:47:59 +00:00
Donald Woods f4dfdf90b5 OPENJPA-1245 Include Eclipse projects this one depends upon.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@805045 13f79535-47bb-0310-9956-ffa450edef68
2009-08-17 17:05:31 +00:00
Donald Woods c7e032ceb7 OPENJPA-1245 Only include a basic Eclipse .project file, as running 'mvn eclipse:eclipse' will update the .classpath file and cause other developers to checkin a release specific version of the file.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@805043 13f79535-47bb-0310-9956-ffa450edef68
2009-08-17 17:02:40 +00:00
Donald Woods 7e81b8c8b5 OPENJPA-1245 Cleanup license header wrapping and some POM formatting for readability. Include basic Eclipse files, which will allow the module to be imported, as maven-eclipse-plugin will not generate the required metadata files, but will update these basic ones if present.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@805042 13f79535-47bb-0310-9956-ffa450edef68
2009-08-17 17:00:16 +00:00
Michael Dick 49e554ac6c OPENJPA-1237:
Throw configuration exception for missing options when using WriteBehind. 
Submitted by : Tim McConnell

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804539 13f79535-47bb-0310-9956-ffa450edef68
2009-08-15 23:25:35 +00:00
Catalina Wei dc316323ba OPENJPA-1112 JPA2 Query result of embeddable object can not be further updated
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804419 13f79535-47bb-0310-9956-ffa450edef68
2009-08-15 00:32:59 +00:00
Catalina Wei 92fcf33575 OPENJPA-1185 Subquery restructure code
cleanup comments in testcase

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804418 13f79535-47bb-0310-9956-ffa450edef68
2009-08-15 00:30:09 +00:00
Michael Dick 25d3c8247b Locking should depend on openjpa-persistence-jdbc, depending on parent
leads to dependency resolution issues.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804337 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14 19:29:39 +00:00
Michael Dick b8c7ce58ad OPENJPA-1245:
Pom.xml cleanup

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804336 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14 19:29:34 +00:00
Michael Dick 88dcd580d8 OPENJPA-1245:
Move lockmode tests to a separate module. This allows different derby lock settings to be set on persistence-jdbc which should speed up test execution.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804335 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14 19:30:05 +00:00
Michael Dick c8fa380048 Fixing validation test hierarchy.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804333 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14 19:28:55 +00:00
Michael Dick 286f708d7d o.a.o.p.common.utils.AbstractTestCase extends AbstractCachedEMFTestCase
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804332 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14 19:28:47 +00:00
Michael Dick 89a7f53db0 Refactor PersistenceTestCase to AbstractCachedEMFTestCase and AbstractPersistenceTestCase.
Deprecate old class to allow submodules to compile (can be removed after maven repos is updated).

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804331 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14 19:28:39 +00:00
Michael Dick befee1a50b Specify type of collection on AbstBrokerFact.getOpenBrokers()
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804330 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14 19:28:18 +00:00
Michael Dick 9eb8af5a72 OPENJPA-948:
Adding support for Ingress database (new dictionary, build config etc.).
Submitted by : Alan Raison

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804261 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14 15:29:35 +00:00
Pinaki Poddar a1e2f57eb9 Add a method to get the original expiration time from PCData.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804085 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14 05:57:31 +00:00
Pinaki Poddar cc29d284b8 OPENJPA-1013: Coalesce expression type minor bug.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804084 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14 05:56:51 +00:00
Michael Dick 3f6ab72c52 Refactoring QueryTest class and entities
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804068 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14 01:59:56 +00:00
Catalina Wei c9695c2fb9 OPENJPA-1885 Subquery restructure code
add more test string in TestSubquery

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804037 13f79535-47bb-0310-9956-ffa450edef68
2009-08-13 21:47:39 +00:00
Fay Wang 06bd0d64e7 OPENJPA-1143: further clean up testcase
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804024 13f79535-47bb-0310-9956-ffa450edef68
2009-08-13 20:53:29 +00:00
Fay Wang 222e01d2f3 OPENJPA-1185: criteria embeddable subquery support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804013 13f79535-47bb-0310-9956-ffa450edef68
2009-08-13 20:02:42 +00:00
Fay Wang ccfbe6cd31 OPENJPA-1185: check in embeddable in subquery support on behalf of Catalina
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804011 13f79535-47bb-0310-9956-ffa450edef68
2009-08-13 20:01:38 +00:00
Fay Wang a488a122cf OPENJPA-1242: fix cascade delete for 1-1 relation in an embeddable
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@803763 13f79535-47bb-0310-9956-ffa450edef68
2009-08-13 03:08:55 +00:00
Michael Dick 6c2e3e2d03 OPENJPA-1189:
Try delimited table names if we can't find a match for non-delimited names
Submitted by : Dianne Richards

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@803720 13f79535-47bb-0310-9956-ffa450edef68
2009-08-12 21:45:51 +00:00
Pinaki Poddar a445c1c4bd OPENJPA-687: add statsics while datacache is queried with contains()
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@803661 13f79535-47bb-0310-9956-ffa450edef68
2009-08-12 18:43:48 +00:00
Pinaki Poddar 21cece4f71 OPENJPA-1241: Support MapJoin.joinKey() for JPA 2.0. Needs special treatement because unlike other joins keys of Map is not an explicit persistent attribute. Introduces a notion of pseudo-attribute (Map.keySet()) of a pseudo managed type (a java.util.Map).
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@803657 13f79535-47bb-0310-9956-ffa450edef68
2009-08-12 18:35:47 +00:00
Jeremy Bauer 3dda949ce4 OPENJPA-1115 Committing code and test updates contributed by Dianne Richards
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@803612 13f79535-47bb-0310-9956-ffa450edef68
2009-08-12 17:22:52 +00:00
Fay Wang d5f14ebc02 OPENJPA-1240: Lob, Temporal, Enumerated on element collections annotations and in XML
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@803547 13f79535-47bb-0310-9956-ffa450edef68
2009-08-12 15:03:45 +00:00
Jeremy Bauer 5b68196cf1 OPENJPA-1239 Corrected method which determines explicit access type to set explicit bit
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@803354 13f79535-47bb-0310-9956-ffa450edef68
2009-08-12 02:31:53 +00:00
Donald Woods 45acdf357a OPENJPA-1238 Upgrade to latest commons-pool and commons-dbcp
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@803120 13f79535-47bb-0310-9956-ffa450edef68
2009-08-11 13:51:42 +00:00
Pinaki Poddar dc061e904f OPENJPA-1225:
Refactor FillStrategy out of ResultShape enum to a separate interface. 
Introduce CompoundSelections.MultiSelect
Use ObjectFactory for Tuple to save memory
Tune CriteriaExpressionBuilder to new result packing
Isolate ResultPacker (JPQL) from ResultShape (Criteria) completely 
Implement getSelection() for JPA 2.0

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802984 13f79535-47bb-0310-9956-ffa450edef68
2009-08-11 03:02:45 +00:00
Fay Wang 2b24b76a9c OPENJPA-1143: keys(map) and values(map) support for Criteria API.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802929 13f79535-47bb-0310-9956-ffa450edef68
2009-08-10 21:32:52 +00:00
Jeremy Bauer 9af553bc8d OPENJPA-1235 Added support for named unique constraints
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802864 13f79535-47bb-0310-9956-ffa450edef68
2009-08-10 17:03:42 +00:00
Donald Woods 538f1fd084 OPENJPA-1233 Update DerbyDictionary with new reserved words. The following reserved words were added, based on the Derby 10.5 docs -
COALESCE, CURRENT_ROLE, GETCURRENTCONNECTION, NONE, OVER, ROW_NUMBER, XMLQUERY

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802801 13f79535-47bb-0310-9956-ffa450edef68
2009-08-10 14:03:29 +00:00
Michael Dick 61b85e4b1a OPENJPA-1234: Remove mistakenly added columnDefinition..
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802589 13f79535-47bb-0310-9956-ffa450edef68
2009-08-09 20:40:49 +00:00
Michael Dick fb2a45a739 OPENJPA-1234:
AllowFailure checks for system property before running or logging exceptions from test methods.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802587 13f79535-47bb-0310-9956-ffa450edef68
2009-08-09 20:38:58 +00:00
Michael Dick 3ec9136da7 OPENJPA-651:
Default setting for RuntimeUnenhancedClasses = unsupported.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802457 13f79535-47bb-0310-9956-ffa450edef68
2009-08-08 21:03:56 +00:00
Pinaki Poddar 2d120b6363 OPENJPA-1013: 1. Avoid both LHS and RHS parameterized as ? = ? in SQL. Some databases do not like it.
2.  handle constant literal or empty arguments for Criteria predicates .
                           3. Parameter registration for subqueries roll up to the parent
                           4. MapKey of kernel is not a path so allPathImpl.toValue() is not kernel.Path

                            5. Clean up tests. Local result: Total : 435 Fails: 14 locally

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802273 13f79535-47bb-0310-9956-ffa450edef68
2009-08-07 23:57:51 +00:00