Commit Graph

535 Commits

Author SHA1 Message Date
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 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
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
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
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 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 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
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 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
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 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 60d17df05f OPENJPA-1175 Refactor of perisistence utility methods
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@798182 13f79535-47bb-0310-9956-ffa450edef68
2009-07-27 15:04:50 +00:00
Fay Wang 62a32c5596 OPENJPA-1143: embeddable support for Criteria API
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@798026 13f79535-47bb-0310-9956-ffa450edef68
2009-07-27 05:18:37 +00:00
Michael Dick e7f9191695 Add braces for a few one line if statements.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@797626 13f79535-47bb-0310-9956-ffa450edef68
2009-07-24 19:29:51 +00:00
Jeremy Bauer 7022d018da OPENJPA-1175 Initial implementation and tests for ProviderUtil and PerisistenceUnitUtil
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@797551 13f79535-47bb-0310-9956-ffa450edef68
2009-07-24 16:27:30 +00:00
Pinaki Poddar 7099c084fb OPENJPA-1195: Datastore function for in general usage as well as JPA 2.0. CriteriaQuery Parameter indexing during registration.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@797257 13f79535-47bb-0310-9956-ffa450edef68
2009-07-23 23:01:55 +00:00
Pinaki Poddar 001c9e4fd2 OPENJPA-1180: Parameter processing for JPA 2.0. Implements Parameter in concrete. Parameter holding structure in Query has changed for Map<String|Integer,Object> to Map<String|Integer, Parameter>. Parameters themselves hold values (a doubtful decision).
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@796931 13f79535-47bb-0310-9956-ffa450edef68
2009-07-23 02:47:11 +00:00
Michael Dick fc5d50bf18 OPWNJPA-1191
Adding messages exceptions thrown by TupleImpl

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@796854 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22 19:36:59 +00:00
Donald Woods c6e394d936 OPENJPA-1190 javax.persistence.Caching is now javax.persistence.spi.SharedCacheMode in EA5 (20090720) API
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@796790 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22 16:42:08 +00:00
Pinaki Poddar 1f58f05c52 formatting
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@796784 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22 16:26:44 +00:00
Pinaki Poddar 3bfcd22c9e line length edit
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@796783 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22 16:25:43 +00:00
Michael Dick 49f000f54a OPENJPA-1191 :
Add Tuple implementation and unit tests. Also added some basic typed result and multiselect testscases

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@796773 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22 15:47:47 +00:00
Pinaki Poddar c47bd9ee3a OPENJPA-1187: Allow output be generated in the same directory of the source files.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@796768 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22 15:33:38 +00:00
Jeremy Bauer 07f597d281 OPENJPA-1190 Update schemas and schemas in documentation for EA5
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@796511 13f79535-47bb-0310-9956-ffa450edef68
2009-07-21 19:40:27 +00:00
Donald Woods 1b86a81c94 OPENJPA-1190 Use Geronimo EA5 JPA spec jar. Patch only has method stubs returning null for the new methods added by EA5, like -
PersistenceUnitInfoImpl.getSharedCacheMode()
EntityManagerFactoryImpl.getPersistenceUnitUtil()
PersistenceProviderImpl.getProviderUtil()

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@796457 13f79535-47bb-0310-9956-ffa450edef68
2009-07-21 18:44:07 +00:00
Donald Woods 0cf0922386 OPENJPA-1177 Upgraded to use geronimo-validation_1.0_spec-1.0-EA3-SNAPSHOT (1.0.CR3 API level) and to use hibernate RI as the default Bean Validation provider for integration tests.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@796331 13f79535-47bb-0310-9956-ffa450edef68
2009-07-21 15:03:18 +00:00
Fay Wang bda625661f OPENJPA-1143: criteria support for subquery
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@795955 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 18:58:03 +00:00
Jeremy Bauer 5cb32680a9 OPENJPA-1176 Add compatibility option to allow private persistent properties
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@794774 13f79535-47bb-0310-9956-ffa450edef68
2009-07-16 18:46:22 +00:00
Jeremy Bauer c8b99a764c OPENJPA-1167 Update persistence and orm schemas and schemas within doc to current versions
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@792610 13f79535-47bb-0310-9956-ffa450edef68
2009-07-09 17:13:43 +00:00
Pinaki Poddar 07a98e871b OPENJPA-1143: Re-realign implementation with JAP EA4. Repurpose SelectionImpl, rename ResultItemImpl to TupleElementImpl (to match JPA naming)
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@792583 13f79535-47bb-0310-9956-ffa450edef68
2009-07-09 15:29:27 +00:00
Michael Dick ea71783c57 OPENJPA-1167. Updating to EA4 version of the JPA specification from Geronimo. Adding stub methods for compilation purposes. Some additional refactoring may be needed (desired).
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@792326 13f79535-47bb-0310-9956-ffa450edef68
2009-07-08 21:20:32 +00:00
Donald Woods 8613683843 OPENJPA-1000 Consistent usage of serialVersionUID. Remove all serialVersionUID values that have been added since 1.2.1 as requested by Pinaki to keep the usage consistant (ie. very little use of serialVersionUID in the existing code.)
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@792312 13f79535-47bb-0310-9956-ffa450edef68
2009-07-08 20:48:46 +00:00
Jeremy Bauer 5283bcd77d OPENJPA-1082 Added support for configurable bean validation groups
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@791678 13f79535-47bb-0310-9956-ffa450edef68
2009-07-07 02:35:08 +00:00
Donald Woods 4c9e036e8a OPENJPA-1068 - Question from Pinaki about how/when the VLEM is created and if we can better us the plugin arch
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@791522 13f79535-47bb-0310-9956-ffa450edef68
2009-07-06 15:40:04 +00:00
Jeremy Bauer c24bc1d75c OPENJPA-1068 Modified exception translator to translate wrapped validation exceptions. EM operations now throw correct validation exceptions.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@790700 13f79535-47bb-0310-9956-ffa450edef68
2009-07-02 18:21:26 +00:00
Pinaki Poddar c2afd1cefd OPENJPA-703: Expand type of queries that can be cached especially with various projection terms. Refactor testing of PreparedQueryCache.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@790676 13f79535-47bb-0310-9956-ffa450edef68
2009-07-02 16:57:17 +00:00
Jeremy Bauer 0f45f13fc2 OPENJPA-1135 Correct access type related issues with attribute overrides and multi-level parsing.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@790150 13f79535-47bb-0310-9956-ffa450edef68
2009-07-01 12:52:56 +00:00
Pinaki Poddar db2082dea4 OPENJPA-1143: Added support for construct(), as(). Metamodel excludes static fields. tests edited to compile against EA3 JPA API.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@789723 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 13:40:17 +00:00
Donald Woods 82c80100cc OPENJPA-1106 Add missing exception text to ConstraintValidationException instances and replace other exception strings with localized messages. Still needs some work to properly detect and rethrow the contents of a WrapperedException to the user's app.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@788844 13f79535-47bb-0310-9956-ffa450edef68
2009-06-26 20:04:19 +00:00
Fay Wang 42f8667128 OPENJPA-1143: fix compiler error on IBM SDK5
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@788746 13f79535-47bb-0310-9956-ffa450edef68
2009-06-26 15:44:34 +00:00
Fay Wang 291f314242 OPENJPA-1143: correlation join support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@788604 13f79535-47bb-0310-9956-ffa450edef68
2009-06-26 06:34:34 +00:00
Donald Woods 3f15ecde4d OPENJPA-1143 fix build error that only occurred on IBM SDK 5
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@788382 13f79535-47bb-0310-9956-ffa450edef68
2009-06-25 15:08:29 +00:00
Pinaki Poddar 44443b3ebd OPENJPA-1143: refactor method signature to generic type CriteriaQuery<?> as input argument
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@788058 13f79535-47bb-0310-9956-ffa450edef68
2009-06-24 15:48:04 +00:00
Fay Wang e57f032626 OPENJPA-1143: subquery support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@787916 13f79535-47bb-0310-9956-ffa450edef68
2009-06-24 06:02:17 +00:00
Pinaki Poddar ecf43f87f7 OPENJPA-1143: Build dependency to 1.0-EA3-SNAPSHOT (latest unpublished JPA Spec), refactored MetaModel/CriteriaQuery API to compile against the new JPA API, line length limit increased to 120
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@787832 13f79535-47bb-0310-9956-ffa450edef68
2009-06-23 21:04:32 +00:00
Donald Woods bc9654cfc5 OPENJPA-1111 Validation mode of callback should cause a PersistenceException when no provider is available. Part 2 - updated WrapperedException to properly pass on the exception, updated ValidationException to allow for setting the fatal flag, and updated the location of the localizer messages for ValidationUtils.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@785861 13f79535-47bb-0310-9956-ffa450edef68
2009-06-18 00:09:42 +00:00
Pinaki Poddar 7b0fda399f Retire unused methods
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@785456 13f79535-47bb-0310-9956-ffa450edef68
2009-06-17 00:27:55 +00:00
Pinaki Poddar 0b0fb31bce OPENJPA-1013: criteria fetch joins
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@785431 13f79535-47bb-0310-9956-ffa450edef68
2009-06-16 22:22:08 +00:00
Donald Woods 0d8b1dc074 OPENJPA-1111 Validation mode of callback should cause a PersistenceException when no provider is available. Also some config rework as suggested by Pinaki in reviewing OPENJPA-1114. This is Part 1, as the thrown PersistenceException is not marked as Fatal and contains a null description, but does have the stack.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@785366 13f79535-47bb-0310-9956-ffa450edef68
2009-06-16 20:11:45 +00:00
Pinaki Poddar d6ae199de7 OPENJPA-1013: Joins, key/value, parameters, embedded
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@785341 13f79535-47bb-0310-9956-ffa450edef68
2009-06-16 18:57:17 +00:00
Pinaki Poddar c9d62822d4 Add ASL header with -addHeader option
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@785082 13f79535-47bb-0310-9956-ffa450edef68
2009-06-16 05:13:32 +00:00
Donald Woods acd00ecc61 include ASF license header in meta model generated source
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@784888 13f79535-47bb-0310-9956-ffa450edef68
2009-06-15 17:56:36 +00:00
Donald Woods 75c9605384 OPENJPA-1114 include tracing to show if a VLEM is being created or not
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@784171 13f79535-47bb-0310-9956-ffa450edef68
2009-06-12 16:02:49 +00:00
Jeremy Bauer 62be4544b3 OPENJPA-1135 Apply overrides to deferred embeddable attributes
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@783966 13f79535-47bb-0310-9956-ffa450edef68
2009-06-12 02:40:14 +00:00
Albert Lee 7b06c5cfbf OPENJPA-932 - Enable test case to be Java 2 security compliance.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@783440 13f79535-47bb-0310-9956-ffa450edef68
2009-06-10 18:15:01 +00:00
Pinaki Poddar b961b8baa2 OPENJPA-1013: Aliasing for query nodes, single attribute join support, reorganization of test harness
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@783166 13f79535-47bb-0310-9956-ffa450edef68
2009-06-10 00:41:35 +00:00
Pinaki Poddar 43de09873b OPENJPA-900: Remove hint key ordering for performance overhead
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@782782 13f79535-47bb-0310-9956-ffa450edef68
2009-06-08 21:04:00 +00:00
Pinaki Poddar 2236c1833e OPENJPA-1129: Remove wrong hint setting from NamedQuery
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@782781 13f79535-47bb-0310-9956-ffa450edef68
2009-06-08 21:02:17 +00:00
Milosz Tylenda 8ab85903ff OPENJPA-1127: Typos in user manual and log messages
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@782212 13f79535-47bb-0310-9956-ffa450edef68
2009-06-06 09:06:32 +00:00
Donald Woods 9c15e0b746 OPENJPA-1114 improved trace messages
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@782132 13f79535-47bb-0310-9956-ffa450edef68
2009-06-05 20:54:08 +00:00
Pinaki Poddar 3a8ec9e182 OPENJPA-1008: handle OID type field
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@781824 13f79535-47bb-0310-9956-ffa450edef68
2009-06-04 18:25:29 +00:00
Fay Wang fced775084 OPENJPA-1013: fix check-style problem
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@781772 13f79535-47bb-0310-9956-ffa450edef68
2009-06-04 15:19:43 +00:00
Donald Woods 5f2c7c3fae fix checkstyle failure introduced in Rev781621
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@781754 13f79535-47bb-0310-9956-ffa450edef68
2009-06-04 14:34:39 +00:00
Fay Wang be8b9808f6 OPENJPA-1013: subquery support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@781621 13f79535-47bb-0310-9956-ffa450edef68
2009-06-03 23:44:58 +00:00
Donald Woods 549115f77c fix missing license header problems found by rat plugin during EA2 creation
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@781462 13f79535-47bb-0310-9956-ffa450edef68
2009-06-03 16:26:16 +00:00
Donald Woods 21a2fadcc6 OPENJPA-1114 Bean Validation APIs should be an optional runtime dependency
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@780915 13f79535-47bb-0310-9956-ffa450edef68
2009-06-02 02:55:15 +00:00
Donald Woods 96777b2205 OPENJPA-1068 cleanup trace/log output to only include the exception message and not the stack trace for optional validator creation failures
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@780746 13f79535-47bb-0310-9956-ffa450edef68
2009-06-01 17:42:14 +00:00
Donald Woods d4c227ef00 OPENJPA-1068 Use validation mode to determine if we should setup a ValidatingLifecycleEventManager or not. Based on patch from Jeremy with one config scenario still to be addressed in OPENJPA-1111.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@780706 13f79535-47bb-0310-9956-ffa450edef68
2009-06-01 16:26:43 +00:00
Michael Dick 2b942805f2 OPENJPA-952. Committing patch from Rick Curtis
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@780086 13f79535-47bb-0310-9956-ffa450edef68
2009-05-29 20:06:29 +00:00
Donald Woods 08301b833b revert unintended file commits in Rev780046
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@780049 13f79535-47bb-0310-9956-ffa450edef68
2009-05-29 17:58:50 +00:00
Donald Woods 0fa4a0c965 fix formatting by replacing tabs with spaces. also allow non-JDK5 profile to support JDK6+ and comment out unused antrun plugin.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@780046 13f79535-47bb-0310-9956-ffa450edef68
2009-05-29 17:53:19 +00:00
Donald Woods c9e74d4c7a update pom names to better match the module name and add descriptions where missing
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@779579 13f79535-47bb-0310-9956-ffa450edef68
2009-05-28 12:10:45 +00:00
Michael Dick c1b842d492 OPENJPA-1026. Committing patch from B.J. Reed and enabling newline check.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@779416 13f79535-47bb-0310-9956-ffa450edef68
2009-05-28 02:50:00 +00:00
Donald Woods 130d1d4bd9 OPENJPA-880 Use maven-remote-resources-plugin to generate required legal files. Also removes dependency on openjpa-project for maven eclipse plugin.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@779191 13f79535-47bb-0310-9956-ffa450edef68
2009-05-27 14:43:00 +00:00
Pinaki Poddar 9c601dfa02 OPENJPA-900: Initialize hint keys staically for performance.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@778874 13f79535-47bb-0310-9956-ffa450edef68
2009-05-26 20:27:37 +00:00
Jeremy Bauer 5b53615609 OPENJPA-926 Modify XML-based explicit access tests to use build-time enhancement
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@778831 13f79535-47bb-0310-9956-ffa450edef68
2009-05-26 18:29:29 +00:00
Michael Dick 291e27eba9 OPENJPA-1015. Committing patch provided by BJ Reed. Additional testcases have been added which do not conform - I've updated some of them but some still exist so validation is not enabled by default
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@777135 13f79535-47bb-0310-9956-ffa450edef68
2009-05-21 14:39:31 +00:00
Pinaki Poddar 70f55bdee8 OPENJPA-1013: Joins, MetaModel validation, Array type
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@776951 13f79535-47bb-0310-9956-ffa450edef68
2009-05-21 05:05:39 +00:00
Fay Wang 768cd337b0 OPENJPA-1069: support of @OrderBy("DESC") on ElementCollection containing basic type
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@776878 13f79535-47bb-0310-9956-ffa450edef68
2009-05-20 21:59:24 +00:00
Fay Wang f91a31dae4 OPENJPA-1013: OrderBy support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@776551 13f79535-47bb-0310-9956-ffa450edef68
2009-05-20 05:09:38 +00:00
Fay Wang 9ef9654a99 OPENJPA-1013: non-default escape character support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@776495 13f79535-47bb-0310-9956-ffa450edef68
2009-05-19 23:30:12 +00:00
Fay Wang 598c25f2b9 OPENJPA-1013: NOT IN/ IS (NOT) NULL/LIKE support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@776435 13f79535-47bb-0310-9956-ffa450edef68
2009-05-19 20:04:10 +00:00
Fay Wang db43c7443d OPENJPA-1013: Constructor support in Criteria Query. Test case will be checked in later.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@776136 13f79535-47bb-0310-9956-ffa450edef68
2009-05-18 23:41:43 +00:00
Jeremy Bauer e5e4cc122a OPENJPA-1068 Rev 1 of lifecycle validation
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@776009 13f79535-47bb-0310-9956-ffa450edef68
2009-05-18 17:05:48 +00:00
Fay Wang 76764564b1 OPENJPA-1013: parameter support for Criteria Query
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@775997 13f79535-47bb-0310-9956-ffa450edef68
2009-05-18 15:56:35 +00:00
Fay Wang a5f85ac7f8 OPENJPA-1013: TYPE expression support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@775306 13f79535-47bb-0310-9956-ffa450edef68
2009-05-15 20:05:48 +00:00
Fay Wang 2203aedf46 OPENJPA-1013: MEMBER OF support for criteria query
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@775009 13f79535-47bb-0310-9956-ffa450edef68
2009-05-15 05:27:38 +00:00
Fay Wang 9d30d4819e OPENJPA-1013: IS EMPTY/SIZE() support for criteria query
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@774955 13f79535-47bb-0310-9956-ffa450edef68
2009-05-14 22:52:03 +00:00
Fay Wang f029f2de85 OPENJPA-1013: groupBy/Having support for Criteria query
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@774954 13f79535-47bb-0310-9956-ffa450edef68
2009-05-14 22:29:59 +00:00
Donald Woods cb115bcd16 OPENJPA-1077 Validation-mode element support added to persistence.xml and to createEMF properties Map
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@774930 13f79535-47bb-0310-9956-ffa450edef68
2009-05-14 21:14:45 +00:00
Fay Wang 9b64aea79e OPENJPA-1013: case/simple case expression support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@774877 13f79535-47bb-0310-9956-ffa450edef68
2009-05-14 18:45:33 +00:00
Fay Wang df96cc6129 OPENJPA-1013: simple case and case expression support in Criteria Query
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@774848 13f79535-47bb-0310-9956-ffa450edef68
2009-05-14 17:13:44 +00:00
Jeremy Bauer f81e627b27 OPENJPA-932 Committing test updates contributed by Rick Curtis
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@774393 13f79535-47bb-0310-9956-ffa450edef68
2009-05-13 15:08:49 +00:00
Jeremy Bauer 90ef23a4a9 OPENJPA-926 Add annotation support for embeddables and correct Transient issue
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@774177 13f79535-47bb-0310-9956-ffa450edef68
2009-05-13 03:04:58 +00:00
Jeremy Bauer 1f37b7725c OPENJPA-926 Tests and code updates for explicit access types
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@773704 13f79535-47bb-0310-9956-ffa450edef68
2009-05-11 21:59:15 +00:00
Pinaki Poddar 9a8246799c OPENJPA-1010: MetaDataRespository knows about meta-class. The naming and support for meta-class added to MetaDataFactory. Implemented in PersistenceMetaDataFactory. AnnotationProcessor6 aligned with this naming policy interface.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@772820 13f79535-47bb-0310-9956-ffa450edef68
2009-05-07 23:57:04 +00:00
Pinaki Poddar c67d0e668e OPENJPA-1010: Add -Asource option to control target compilable version for the generated meta-model source
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@772665 13f79535-47bb-0310-9956-ffa450edef68
2009-05-07 14:38:41 +00:00
Pinaki Poddar f0fb49b47c Implicit field/property access + refactor logging
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@772476 13f79535-47bb-0310-9956-ffa450edef68
2009-05-07 00:21:36 +00:00
Pinaki Poddar 2ef46be65e Exclude JDK6 classes from JDK5 compiler
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@772473 13f79535-47bb-0310-9956-ffa450edef68
2009-05-07 00:18:23 +00:00
Pinaki Poddar 8575b6c79e OPENJPA-1010: correct dangenous typo
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@772437 13f79535-47bb-0310-9956-ffa450edef68
2009-05-06 21:45:39 +00:00
Pinaki Poddar ce685d0a52 OPENJPA-1010: correct dangenous typo
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@772436 13f79535-47bb-0310-9956-ffa450edef68
2009-05-06 21:45:09 +00:00
Pinaki Poddar 788064287d OPENJPA-1013: Support metamodel access from EntityManager
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@772281 13f79535-47bb-0310-9956-ffa450edef68
2009-05-06 14:38:18 +00:00
Pinaki Poddar 89182580bb OPENJPA-1013,OPENJPA-1014: Support In() and IsNull()
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@772058 13f79535-47bb-0310-9956-ffa450edef68
2009-05-06 05:39:17 +00:00
Pinaki Poddar 0392538775 OPENJPA-1013,OPENJPA-1014: Type-strict Criteria API (skeletal) implementation as per JPA 2.0.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@771948 13f79535-47bb-0310-9956-ffa450edef68
2009-05-05 18:03:31 +00:00
Jeremy Bauer bd50e177bb OPENJPA-932 Committing code and tests contributed by Rick Curtis
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@769901 13f79535-47bb-0310-9956-ffa450edef68
2009-04-29 19:55:39 +00:00
Pinaki Poddar 8f182fc261 OPENJPA-1008: Test cases for JPA 2.0 metamodel generation and population
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@769549 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 21:21:52 +00:00
Pinaki Poddar d86b15e30d EXclude JDK6 dependent source and test
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@769497 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 18:51:46 +00:00
Pinaki Poddar 7adb7932e8 OPENJPA-1008: Facade OpenJPA metamodel to JPA 2.0
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@769478 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 17:50:25 +00:00
Pinaki Poddar 9d52998c1e OPENJPA-926: JPA 2.0 Access processing by XML descriptors
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@769308 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 09:20:06 +00:00
Pinaki Poddar 29a5f7acd2 OPENJPA-1050: Use parameterized type whenever applicable
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@768588 13f79535-47bb-0310-9956-ffa450edef68
2009-04-25 19:29:07 +00:00
Pinaki Poddar a868ae3435 OPENJPA-926,OPENJPA-1050: handling corner cases of access type. moving uniformaly to access code. adding type parameters.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@768498 13f79535-47bb-0310-9956-ffa450edef68
2009-04-25 09:11:11 +00:00
Pinaki Poddar 0ffbce338f OPENJPA-926: entity without any property can have unknown access type.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@768428 13f79535-47bb-0310-9956-ffa450edef68
2009-04-24 22:24:45 +00:00
Pinaki Poddar 178f0a180a OPENJPA-926: Support explicit access types
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@767973 13f79535-47bb-0310-9956-ffa450edef68
2009-04-23 16:55:45 +00:00
Fay Wang 0daf1bffc8 OPENJPA-1041: allow orderBy on nested embeddables
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@765800 13f79535-47bb-0310-9956-ffa450edef68
2009-04-16 23:24:07 +00:00
Michael Dick 60988f8be8 OPENJPA-1010. Exclude test class for Java 5 compilers
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@765239 13f79535-47bb-0310-9956-ffa450edef68
2009-04-15 15:27:02 +00:00
Michael Dick 9696252e4d OPENJPA-1040 reset build flag and fix line length problem
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@765228 13f79535-47bb-0310-9956-ffa450edef68
2009-04-15 15:06:53 +00:00
Pinaki Poddar 21b41a50fe OPENJPA-1039: treat AND OR operators as non-associative
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@765085 13f79535-47bb-0310-9956-ffa450edef68
2009-04-15 08:34:45 +00:00
Pinaki Poddar e55f36f813 OPENJPA-1010: Tests for Canonical Metamodel Generator from annotated source code.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@765031 13f79535-47bb-0310-9956-ffa450edef68
2009-04-15 01:48:06 +00:00
Pinaki Poddar 372dea0106 OPENJPA-1010: Canonical Metamodel Generator from annotated source code. Add/modify for explicit and default access types. Change maven build to condition compilation & packaging. Add support for array types.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@764665 13f79535-47bb-0310-9956-ffa450edef68
2009-04-14 03:58:35 +00:00
Albert Lee ae182d488e Per agreement with Pinaki, disable jdk-6 annotation processing services until the processor implementation solidifies.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@764591 13f79535-47bb-0310-9956-ffa450edef68
2009-04-13 20:02:07 +00:00
Jeremy Bauer 20b3559bbe OPENJPA-1032 Reverting back to 1.x OpenJPAQuery.getPositionalParameters signature due to spec update.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@763958 13f79535-47bb-0310-9956-ffa450edef68
2009-04-10 15:04:47 +00:00
Pinaki Poddar 921cd71acf Skip compiling JDK6 dependent class on JDK5 profile
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@763155 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 09:37:04 +00:00
Pinaki Poddar 96cb35ffa3 OPENJPA-1024: Scalar expression in SubQuery requires subquery expression be enclosed in parentheses
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@763149 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 09:06:11 +00:00
Pinaki Poddar 2582022326 Skip compiling JDK6 dependent class till we figure out conditional compilation
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@763147 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 09:00:28 +00:00
Pinaki Poddar 3fc6ac211d OPENJPA-1010: Canonical Metamodel Generator from annotated source code that hooks into JDK6 Annotation Processing facility.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@762968 13f79535-47bb-0310-9956-ffa450edef68
2009-04-07 21:14:40 +00:00
Michael Dick b5d5ea2734 OPENJPA-1023. set svn:eol on .properties
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@762563 13f79535-47bb-0310-9956-ffa450edef68
2009-04-06 23:28:17 +00:00
Albert Lee bdce39ae28 OPENJPA-1022 - Ensure LockMode READ/OPTIMISTIC & WRITE/OPTIMISTIC_FORCE_INCREMENT are distinct in type but semantics equivalent.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@762409 13f79535-47bb-0310-9956-ffa450edef68
2009-04-06 16:30:24 +00:00
Albert Lee 718370e1ef OPENJPA-957 - Create Fetch*HintHandler(s) for property processing in EntityManager/Query interface methods.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@762161 13f79535-47bb-0310-9956-ffa450edef68
2009-04-05 21:29:42 +00:00
Michael Dick b6e661e24a OPENJPA-1015 fix line wrapping in source files. Based on patch contributed by B.J. Reed. Updates made to do enforce line wrapping during the process-sources phase of the build.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@761509 13f79535-47bb-0310-9956-ffa450edef68
2009-04-03 03:09:53 +00:00
Albert Lee d3b1a2e368 OPENJPA-1005 - Set persistence.xml schema version for PersistenceUnitInfo interface.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@760047 13f79535-47bb-0310-9956-ffa450edef68
2009-03-30 17:06:32 +00:00
Jeremy Bauer f8bb2a83e6 OPENJPA-773 Updates for 03/13/2009 JSR-317 public draft.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@759348 13f79535-47bb-0310-9956-ffa450edef68
2009-03-27 20:58:10 +00:00
Michael Dick 90b84c5d73 OPENJPA-896. Setting eol-style:native and removing windows eol characters from source files.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@757278 13f79535-47bb-0310-9956-ffa450edef68
2009-03-22 23:37:24 +00:00
Pinaki Poddar c3175eea3c OPENJPA-995: Refactor OpenJPA Criteria query implementation as 'dynamic query' extension.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@756730 13f79535-47bb-0310-9956-ffa450edef68
2009-03-20 19:47:26 +00:00
Albert Lee ca00078072 OPENJPA-988 - Refactoring JPA2/MixedLockManager from persistence module to jdbc module. No functional changes.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@756066 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19 16:03:15 +00:00
Jeremy Bauer 2ee441dc78 OPENJPA-972 Committing code doc update and tests contributed by Donald Woods.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@755614 13f79535-47bb-0310-9956-ffa450edef68
2009-03-18 15:18:36 +00:00
Jeremy Bauer 2e5a6e4478 OPENJPA-885 Committing code and tests contributed by Dianne Richards.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@755469 13f79535-47bb-0310-9956-ffa450edef68
2009-03-18 04:01:14 +00:00
Jeremy Bauer 5a16f8f6f8 OPENJPA-878 Committing code, tests, and documentation updates for Donald Woods.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@755116 13f79535-47bb-0310-9956-ffa450edef68
2009-03-17 04:40:38 +00:00
Pinaki Poddar 272c584af2 Add isAbstract() method on ClassMetaData to designate a MappedSuperClass
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@752931 13f79535-47bb-0310-9956-ffa450edef68
2009-03-12 16:52:24 +00:00
Pinaki Poddar 393111b875 OPENJPA-857: PersistenceProductDerivation sets Compatibility according to current specification. Allow multiple specifications to coexist.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@752557 13f79535-47bb-0310-9956-ffa450edef68
2009-03-11 18:38:35 +00:00
Albert Lee 6e6cb3786c OPENJPA-891 - Complete new LockModeType supports in EntityManager. Manual updated. Build and TCK passed. Code reviewed by Pinaki P. and Mike D.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@752306 13f79535-47bb-0310-9956-ffa450edef68
2009-03-10 23:41:03 +00:00