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
Jeremy Bauer
233e258cb8
OPENJPA-1157 Added test which contains uses constraints and persistence metadata defined in XML. Updated ValidatorImpl to trace exceptions thrown as a result of creating the default validator factory.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802062 13f79535-47bb-0310-9956-ffa450edef68
2009-08-07 16:06:17 +00:00
Albert Lee
cbfd6b88dd
OPENJPA-1230 - Make sure the javax.persistence.validatin.mode value usage matches the spec's requirement(i.e. lower case).
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@801866 13f79535-47bb-0310-9956-ffa450edef68
2009-08-07 02:32:03 +00:00
Michael Dick
69b4dc2567
MetaModelImpl.populate() should only consider declaredFields (non-superclass).
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@801744 13f79535-47bb-0310-9956-ffa450edef68
2009-08-06 17:46:49 +00:00
Albert Lee
c1ac969c7d
OPENJPA-1230 - transform javax.persistence.validatin.mode value to upper case before ValidationMode conversion.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@801739 13f79535-47bb-0310-9956-ffa450edef68
2009-08-06 17:37:34 +00:00
Pinaki Poddar
e6a1e90988
OPENJPA-1013: Cleaning Expressions.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@801458 13f79535-47bb-0310-9956-ffa450edef68
2009-08-05 23:13:13 +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
Donald Woods
a3f0d4104c
OPENJPA-1148 Remove recently added ehnancer agent settings.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@801165 13f79535-47bb-0310-9956-ffa450edef68
2009-08-05 12:12:23 +00:00
Donald Woods
35be8fb0ba
OPENJPA-1148 Remove test.jvm.arguments, which was causing this module to always fail with a OOM PermGen space with 64bit Java 6 on Linux automated builds. Also merged in some recent updates in o-p-j for derby lock timeouts and ehnancer agent settings.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@801163 13f79535-47bb-0310-9956-ffa450edef68
2009-08-05 12:10:48 +00:00
Pinaki Poddar
02f2f3db70
OPENJPA-1225: Shape of Result. Refactor shape building to builder from query.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@801053 13f79535-47bb-0310-9956-ffa450edef68
2009-08-05 03:04:54 +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
Donald Woods
96c824a8e3
OPENJPA-1148 remove Derby lock timeouts for now...
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@800914 13f79535-47bb-0310-9956-ffa450edef68
2009-08-04 18:35:09 +00:00
Donald Woods
a63acfca77
OPENJPA-1148 Reformat and replace tabs with 4 space indenting
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@800888 13f79535-47bb-0310-9956-ffa450edef68
2009-08-04 17:43:22 +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
Donald Woods
d727e60800
OPENJPA-1148 Remove test.jvm.arguments from openjpa-slice, which was causing this module to always fail with a OOM PermGen space with 64bit Java 6 on Linux for me. Also merged in some recent updates in o-p-j for derby lock timeouts and ehnancer agent settings.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@800878 13f79535-47bb-0310-9956-ffa450edef68
2009-08-04 17:12:43 +00:00
Fay Wang
5b61d56ad2
OPENJPA-1180: fix ArrayIndexOutOfBound problem
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@800851 13f79535-47bb-0310-9956-ffa450edef68
2009-08-04 15:40:03 +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
5232b72794
OPENJPA-1163:
...
Add configuration option that allows the elements in a persistent map to be treated as the owners of the relationship (ie updates to the hashmap can add elements without removing old ones).
Submitted By : Ravi Palacherla
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@800563 13f79535-47bb-0310-9956-ffa450edef68
2009-08-03 21:04:50 +00:00
Kevin W. Sutter
b5e893b5a7
OPENJPA-1221. Modified openjpa-integration module pom files for examples, tck, and osgi-itests to be consistent with the validation module.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@800526 13f79535-47bb-0310-9956-ffa450edef68
2009-08-03 20:21:51 +00:00
Michael Dick
17da1c9a7e
OPENJPA-1089:
...
Adding EncryptionProvider configuration option.
Submitted By : Rick Curtis
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@800504 13f79535-47bb-0310-9956-ffa450edef68
2009-08-03 19:25:44 +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
Pinaki Poddar
931496e6ea
correct ordering of message parameters with actual message
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799824 13f79535-47bb-0310-9956-ffa450edef68
2009-08-01 10:25:48 +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
Donald Woods
08d76bc36d
OPENJPA-1107 Provide TraversableResolver for use with Bean Validation Factory. Current TraversableResolverImpl behaves identical to the default JPA aware one that BV providers must implement, so not sure why we have to provide this yet....
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799491 13f79535-47bb-0310-9956-ffa450edef68
2009-07-31 02:13:04 +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
5f83298a95
OPENJPA-1211:
...
Adding brackets.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799346 13f79535-47bb-0310-9956-ffa450edef68
2009-07-30 16:05:12 +00:00
Fay Wang
5432ffecbb
OPENJPA-1211: check null value to prevent NPE.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799340 13f79535-47bb-0310-9956-ffa450edef68
2009-07-30 15:57:31 +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
Albert Lee
d35e668190
OENJPA-1206 - Enable Java 2 security on BV buildDefaultValidatorFactory call.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799155 13f79535-47bb-0310-9956-ffa450edef68
2009-07-30 02:09:02 +00:00
Catalina Wei
53805483fc
OPENJPA-1185 JPA2 fix thread-safe problems of subquery restructured code.
...
Committing patch provided by Fay Wang.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799134 13f79535-47bb-0310-9956-ffa450edef68
2009-07-29 23:53:46 +00:00
Donald Woods
16344b5b33
OPENJPA-1120 idEquals() broken in BigDecimalId and BigIntegerId. Patch contributed by Dieter Von Holten with additional updates from Albert Lee.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799132 13f79535-47bb-0310-9956-ffa450edef68
2009-07-29 23:53:18 +00:00