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
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
Donald Woods
803c4daaa4
OPENJPA-890 Fix some inconsistent whitespaces in example code around method signatures and arguments
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799064 13f79535-47bb-0310-9956-ffa450edef68
2009-07-29 20:36:20 +00:00
Donald Woods
efaf681a46
OPENJPA-890 Fix some typos/wording/formatting
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799063 13f79535-47bb-0310-9956-ffa450edef68
2009-07-29 20:33:16 +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
Fay Wang
0928de7512
OPENJPA-1202: code clean up
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799028 13f79535-47bb-0310-9956-ffa450edef68
2009-07-29 19:26:44 +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
Albert Lee
ba84a115bc
OENJPA-1206 - Enable Java 2 security on BV validate call.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799013 13f79535-47bb-0310-9956-ffa450edef68
2009-07-29 18:58:00 +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
Fay Wang
1b128ce338
OPENJPA-1143: embeddable test case and support for Criteria
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@798735 13f79535-47bb-0310-9956-ffa450edef68
2009-07-29 00:30:41 +00:00
Michael Dick
76e82998f6
OPENJPA-1202: Upgrade to Geronimo JPA 2.0 EA6
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@798684 13f79535-47bb-0310-9956-ffa450edef68
2009-07-28 19:49:03 +00:00
Donald Woods
7c4cf09bca
OPENJPA-1076 Handle changes in geronimo-jpa_2.0_spec Rev798659 to not wrapper all exceptions as PersistenceExceptions and allow the spec to call other providers it discovers. We'll keep the createEMF behavior of returning exceptions sometimes instead of null, until we see if the JPA2 TCK forces the issue....
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@798662 13f79535-47bb-0310-9956-ffa450edef68
2009-07-28 19:19:51 +00:00
Donald Woods
9658b657c2
OPENJPA-1076 revert accidential change to pom.xml
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@798635 13f79535-47bb-0310-9956-ffa450edef68
2009-07-28 18:17:02 +00:00
Donald Woods
b7b0b15777
OPENJPA-1076 cleanup code formatting and add some comments about the current behavior of returning exceptions instead of null
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@798616 13f79535-47bb-0310-9956-ffa450edef68
2009-07-28 17:42:47 +00:00
Donald Woods
a31b0ee95d
OPENJPA-1076 Log current exceptions being thrown by PersistenceProviderImpl.createEMF
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@798338 13f79535-47bb-0310-9956-ffa450edef68
2009-07-28 00:03:50 +00:00
Jeremy Bauer
f4d7e532e3
OPENJPA-1175 Added test for PersistenceUtil. Req's minimum of geronimo-jpa_2.0_spec-1.0-EA5-20090727.164859-7.jar. Run mvn -U <goal(s)> to pick up the latest snapshot of this dependendency.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@798243 13f79535-47bb-0310-9956-ffa450edef68
2009-07-27 18:21:27 +00:00
Michael Dick
8c9c54e652
OPENJPA-1197:
...
Upgrade to MySQL JDBC drvier v 5.1.6 (keep in sync with previous
releases).
modified: openjpa-persistence-jdbc/pom.xml
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@798204 13f79535-47bb-0310-9956-ffa450edef68
2009-07-27 16:23:18 +00:00