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
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
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
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
Michael Dick
1b769e629c
Refactor write behind testcase to use static EMFs.
...
modified: openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/writebehind/AbstractWriteBehindTestCase.java
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802261 13f79535-47bb-0310-9956-ffa450edef68
2009-08-07 22:45:35 +00:00
Michael Dick
3b327b5fbb
OPENJPA-1232:
...
Call toNestedFields for Map Keys as well as Map values.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802211 13f79535-47bb-0310-9956-ffa450edef68
2009-08-07 21:31:45 +00:00
Michael Dick
a54f47dfc8
Setting table name for Item to avoid collisions with o.a.o.p.simple.Item.
...
M Item.java
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802207 13f79535-47bb-0310-9956-ffa450edef68
2009-08-07 21:29:30 +00:00
Michael Dick
38cd47a76d
OPENJPA-1222:
...
remove @AllowFailure on tests that pass
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802138 13f79535-47bb-0310-9956-ffa450edef68
2009-08-07 18:35:16 +00:00
Pinaki Poddar
d5fdddb9bf
OPENJPA-1180: Parameter indexing for CriteriaQuery is the order of their registraion
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802104 13f79535-47bb-0310-9956-ffa450edef68
2009-08-07 17:43:48 +00:00
Donald Woods
637880e8d3
add comment about needing to use MSSQL sqljdbc4 driver with Java SE 6 or later
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@801405 13f79535-47bb-0310-9956-ffa450edef68
2009-08-05 20:36:08 +00:00
Michael Dick
a84c76fea7
OPENJPA-1222:
...
Removing sys.err.printlns, unused variables, and some formatting changes.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@801195 13f79535-47bb-0310-9956-ffa450edef68
2009-08-05 12:49:49 +00:00
Fay Wang
a4a94f5331
OPENJPA-1226: fix merge entities with nested embeddables
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@801052 13f79535-47bb-0310-9956-ffa450edef68
2009-08-05 02:56:41 +00:00
Pinaki Poddar
baaec8148b
OPENJPA-1225: Shape of Result for Criteria query. Draft.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@801045 13f79535-47bb-0310-9956-ffa450edef68
2009-08-05 02:07:54 +00:00
Michael Dick
5364ba58b9
OPENJPA-1222:
...
Fixing build problem with Sun JDK 6
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@801027 13f79535-47bb-0310-9956-ffa450edef68
2009-08-04 23:42:57 +00:00
Michael Dick
52ee68b7a1
Remove system.out.println from test class.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@800970 13f79535-47bb-0310-9956-ffa450edef68
2009-08-04 20:56:44 +00:00
Jeremy Bauer
63cacaa1c9
OPENJPA-1208 Set compatibility options and validation mode based on persistence version.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@800951 13f79535-47bb-0310-9956-ffa450edef68
2009-08-04 20:32:49 +00:00
Michael Dick
33bd1d4aac
OPENJPA-1222:
...
Fix tabs in pom.xml
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@800879 13f79535-47bb-0310-9956-ffa450edef68
2009-08-04 17:19:54 +00:00
Michael Dick
1c9aef0481
OPENJPA-1222:
...
Enabling and refactoring Criteria testcases. The Criteria testcases use a static EMF which requires the entity model to be known up front - refactoring creates a separate EMF for the embeddable and joined models.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@800847 13f79535-47bb-0310-9956-ffa450edef68
2009-08-04 15:36:18 +00:00
Donald Woods
df073249f5
OPENJPA-1107 Updated TraversableResolver that calls only our OpenJPAPersistenceUtil. Updated OpenJPAPersistenceUtil.isLoaded() to handle UnsupportedOperationException when checking a detached entity and returns LoadState.UNKNOWN. Also added a testcase in TestPersistenceUtil to verify that caller gets isLoaded()==true for a detached entity and fixed a trace output in TestConstraints.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@800568 13f79535-47bb-0310-9956-ffa450edef68
2009-08-03 21:14:43 +00:00
Michael Dick
7658c64e16
OPENJPA-1163:
...
Forgot new classes in previous commit (testcase and entity).
Submitted By : Ravi Palacherla
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@800566 13f79535-47bb-0310-9956-ffa450edef68
2009-08-03 21:10:19 +00:00
Michael Dick
86ebcbe115
OPENJPA-1194:
...
Make waitInMsec static to prevent re-running speed test for each test method.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@800441 13f79535-47bb-0310-9956-ffa450edef68
2009-08-03 16:02:27 +00:00
Michael Dick
1f9f4d68ef
OPENJPA-1220:
...
Set openjpa.DynamicEnhancementAgent to false for maven builds.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@800404 13f79535-47bb-0310-9956-ffa450edef68
2009-08-03 14:31:01 +00:00
Pinaki Poddar
bde4708bac
OPENJPA-1180: Parameter processing for JPA 2.0. Query now distinguishes between bound and declared parameters. Holds all bound parameters in a single data structure instead of named/positional parameters in separate maps.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799848 13f79535-47bb-0310-9956-ffa450edef68
2009-08-01 12:03:09 +00:00
Michael Dick
655ec577e9
OPENJPA-1218:
...
Evict subclasses automatically when called from JPA facade.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799764 13f79535-47bb-0310-9956-ffa450edef68
2009-07-31 22:54:25 +00:00
Michael Dick
ff932542e8
OPENJPA-1174:
...
Ensure lazy hint from mapping-file is handled the same as an annotation
Submitted by: Ravi Palacherla
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799754 13f79535-47bb-0310-9956-ffa450edef68
2009-07-31 22:04:13 +00:00
Pinaki Poddar
385558d275
OPENJPA-1013: Clean up test cases. Make Path.get(String) generalized for Root/From. assert before String based navigation. Change ResultPacker. Make ParameterExpressionImpl.alias(String name) equivalent to setName().
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799520 13f79535-47bb-0310-9956-ffa450edef68
2009-07-31 05:17:19 +00:00
Pinaki Poddar
39cad98231
OPENJPA-1013: Add support for JPA 2.0 result processing. Modify kerenl's ResultPacking logic to asses impact for JPA 2.0"
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799466 13f79535-47bb-0310-9956-ffa450edef68
2009-07-30 22:42:04 +00:00
Pinaki Poddar
3ae614fc26
OPENJPA-1013: Add tests for multiselect()
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799432 13f79535-47bb-0310-9956-ffa450edef68
2009-07-30 19:56:52 +00:00
Jeremy Bauer
9706a82960
OPENJPA-1175 Updated util methods to handle load state checking of embeddables and collections.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799425 13f79535-47bb-0310-9956-ffa450edef68
2009-07-30 19:34:33 +00:00
Michael Dick
b9d609a3b0
OPENJPA-1210:
...
Add properties for derby timeouts to pom.xml. Initially set deadlocktimeout to 5 and waitTimeout to 60 (Derby default).
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799353 13f79535-47bb-0310-9956-ffa450edef68
2009-07-30 16:30:04 +00:00
Michael Dick
d91fa6a2ac
OPENJPA-1211:
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799290 13f79535-47bb-0310-9956-ffa450edef68
2009-07-30 14:37:46 +00:00
Michael Dick
aa72c08d44
OPENJPA-1211:
...
Add getPath method to FromImpl.
Remove @allowFailure annotation from passing testcases in TestStringCriteria.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799289 13f79535-47bb-0310-9956-ffa450edef68
2009-07-30 14:36:53 +00:00
Pinaki Poddar
8ca7664bd9
OPENJPA-1013: Support constant TRUE|FALSE literals
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799071 13f79535-47bb-0310-9956-ffa450edef68
2009-07-29 20:52:03 +00:00
Fay Wang
a10a0a5d80
OPENJPA-1143: fix test case
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799061 13f79535-47bb-0310-9956-ffa450edef68
2009-07-29 20:32:42 +00:00
Pinaki Poddar
91ab01643a
OPENJPA-1198: Query by example.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799018 13f79535-47bb-0310-9956-ffa450edef68
2009-07-29 19:07:56 +00:00
Pinaki Poddar
856fde5686
Move embed related test entities to its specific test
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@798994 13f79535-47bb-0310-9956-ffa450edef68
2009-07-29 18:02:34 +00:00
Donald Woods
c295a07fbe
OPENJPA-946 Remove Derby connectionURL from createEMF properties
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@798991 13f79535-47bb-0310-9956-ffa450edef68
2009-07-29 17:55:02 +00:00
Fay Wang
ec483537da
OPENJPA-1204: fix enum evaluation in EmbeddedId
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@798868 13f79535-47bb-0310-9956-ffa450edef68
2009-07-29 12:09:16 +00:00