Commit Graph

250 Commits

Author SHA1 Message Date
Pinaki Poddar cdc015fae8 OPENJPA-849: Load supported properties from resource.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@735760 13f79535-47bb-0310-9956-ffa450edef68
2009-01-19 17:47:19 +00:00
Fay Wang a09954b754 OPENJPA-851: xml orm support for MapKeyClass, MapKeyColumn,
MapKeyJoinColumn

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@734926 13f79535-47bb-0310-9956-ffa450edef68
2009-01-16 06:49:30 +00:00
Pinaki Poddar 2e2618407d OPENJPA-858: Allow configurable PostPersist callback either post flush/commit or post persist immediately.Also refactored callback options around a CallbackOptions configuration class.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@734344 13f79535-47bb-0310-9956-ffa450edef68
2009-01-14 06:20:31 +00:00
Fay Wang c99c9d24f9 OPENJPA-851: enhanced map support for JPA 2.0 (Spec 10.1.26,
10.1.27, 10.1.28, 10.1.29, 10.1.30, 2.7)

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@734319 13f79535-47bb-0310-9956-ffa450edef68
2009-01-14 04:11:32 +00:00
Jeremy Bauer c924cc2fc8 OPENJPA-803 Added support to allow a specific schema name to be specified on sequence generators per JPA 2.0.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@728147 13f79535-47bb-0310-9956-ffa450edef68
2008-12-19 21:22:18 +00:00
Michael Dick 16b7b1a7f7 OPENJPA-784 committing patch provided by Fernando
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@728004 13f79535-47bb-0310-9956-ffa450edef68
2008-12-19 11:36:13 +00:00
Pinaki Poddar 574d559860 OPENJPA-825: Introduced internal locking for shared contexts (BrokerImpl/QueryImpl).
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@727864 13f79535-47bb-0310-9956-ffa450edef68
2008-12-19 00:08:23 +00:00
Fay Wang 90f6d5ff80 OPENJPA-782: adding element-collection and collection-table
support for XML Serializer

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@727649 13f79535-47bb-0310-9956-ffa450edef68
2008-12-18 05:44:44 +00:00
Pinaki Poddar 5d27c28dd4 OPENJPA-800: Introduce OpenJPAQueryBuilder interface. Implement CONCAT() and other String functions.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@726879 13f79535-47bb-0310-9956-ffa450edef68
2008-12-16 00:02:12 +00:00
Jeremy Bauer c1d791f6dd OPENJPA-823 Added new 2.0 schemas and updated persistence and metadata parsers to use per-version schema validation
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@726144 13f79535-47bb-0310-9956-ffa450edef68
2008-12-12 22:36:30 +00:00
Jeremy Bauer cabd344397 OPENJPA-800 remove version milestone indicator from build artifacts
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@725817 13f79535-47bb-0310-9956-ffa450edef68
2008-12-11 21:17:55 +00:00
Fay Wang 11a57c87c5 OPENJPA-782: add orm support for CollectionTable and
ElementCollection 

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@725770 13f79535-47bb-0310-9956-ffa450edef68
2008-12-11 18:42:10 +00:00
Pinaki Poddar d1f498b59e OPENJPA-806: Testing Criteria API by executing against the database. Persistent test classes declare fields as appropriate to the tested queries. Criteria that use new JPQL constructs such as KEY(), CASE etc. are compared literally with handcrafted JPQL string. The supported ones are executed against the database.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@725522 13f79535-47bb-0310-9956-ffa450edef68
2008-12-11 01:29:10 +00:00
Pinaki Poddar 411382d4d9 OPENJPA-806: Refactor different domain paths into a single list in QueryDefinitionImpl.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@724564 13f79535-47bb-0310-9956-ffa450edef68
2008-12-09 00:17:23 +00:00
Fay Wang e78a1bc079 OPENJPA-782: embeddable support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@724437 13f79535-47bb-0310-9956-ffa450edef68
2008-12-08 18:27:45 +00:00
Pinaki Poddar 74c5f3078f OPENJPA-806: Interface changes (merge Selectable to Visitable) + String Functions (Concat etc) + Detect recursion
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@724402 13f79535-47bb-0310-9956-ffa450edef68
2008-12-08 17:00:34 +00:00
Pinaki Poddar 4c4219fc22 OPENJPA-806: Initial Criteria API implementation.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@723553 13f79535-47bb-0310-9956-ffa450edef68
2008-12-05 01:37:13 +00:00
Jeremy Bauer c60a95f77a OPENJPA-800 Change release artifact versions for milestone 1
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@723373 13f79535-47bb-0310-9956-ffa450edef68
2008-12-04 16:51:03 +00:00
Jeremy Bauer 492a92a260 OPENJPA-773 Updates for JPA 2.0 spec API. Stubbed out unimplemented methods.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@721073 13f79535-47bb-0310-9956-ffa450edef68
2008-11-27 02:41:13 +00:00
Fay Wang bb937f3634 OPENJPA-742: add get lineNumber/ColumnNumber to SourceTracker
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@719314 13f79535-47bb-0310-9956-ffa450edef68
2008-11-20 18:16:46 +00:00
Srinivasa Segu 031f525d4f OPENJPA-680 - After load and after refresh callbacks were each resulting in a post load call resulting in the duplicate call. Fix addresses the same and re-introduces the original fix.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@719166 13f79535-47bb-0310-9956-ffa450edef68
2008-11-20 05:37:59 +00:00
Pinaki Poddar 64a1293f51 OPENJPA-772: Sets JPA spec version to the 2.0 EA snapshot (which has partial definition of JPA 2.0 API) and sets parent pom to apache (which defines the sanpshot repos). Patch cotributed by David Jencks.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@718426 13f79535-47bb-0310-9956-ffa450edef68
2008-11-17 22:56:14 +00:00
Michael Dick 1ae20fc277 unify doPrivHelpers
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@713493 13f79535-47bb-0310-9956-ffa450edef68
2008-11-12 20:19:40 +00:00
Michael Dick e1bd3c4dcb Code cleanup: remove some unnescessary casts
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@707937 13f79535-47bb-0310-9956-ffa450edef68
2008-10-26 04:31:28 +00:00
Michael Dick 284bd408f8 [maven-release-plugin] prepare release 1.3.x
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@707728 13f79535-47bb-0310-9956-ffa450edef68
2008-10-24 19:19:49 +00:00
Pinaki Poddar 85b44d83d5 Allows unrecognized hints (those not starting with openjpa.* as prefix) be stored opaquely - for extension plug-ins.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@698714 13f79535-47bb-0310-9956-ffa450edef68
2008-09-24 20:21:51 +00:00
Pinaki Poddar 1706670152 Introduces notion of @Replicated entity. This feature allows to relax collocation constraint for quasi-stationary master data. A replicated entity is stored as identical copies across multiple slices. The ReplicationStrategy works similar to DistributionStrategy for replicated entity. The slice association cardinality has uniformly changed to array of slices from a single slice name both for replicated and non-replicated entity. The non-replicated entities can refer to replicated entities but not vice versa. The query operation (especially the ones with aggregate function) is aware of replicated data and queries only one of the slices to avoid duplication.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@698284 13f79535-47bb-0310-9956-ffa450edef68
2008-09-23 18:58:00 +00:00
Pinaki Poddar c1d9abd216 OPENJPA-111: Remove errorneous import
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@686421 13f79535-47bb-0310-9956-ffa450edef68
2008-08-16 00:09:38 +00:00
Pinaki Poddar d9712537da OPENJPA-111: Modified tests to use correct binding parameter. Added methods in MetaDataRepository to look for NamedQuery only by name without defining class information.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@686419 13f79535-47bb-0310-9956-ffa450edef68
2008-08-15 23:36:16 +00:00
Albert Lee a7b9f8f7f3 Minor typo corrections in message files.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@686401 13f79535-47bb-0310-9956-ffa450edef68
2008-08-15 22:19:24 +00:00
Pinaki Poddar d76c646acc OPENJPA-111: Validate native SQL parameters by the numbers of parameters in StoreQuery level and bypass validation at facade layer
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@686349 13f79535-47bb-0310-9956-ffa450edef68
2008-08-15 19:38:10 +00:00
A. Abram White fd15719a4b Eagerly compile JPQL queries to catch JPQL errors and throw proper exception as
required by spec.  OPENJPA-678



git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@686325 13f79535-47bb-0310-9956-ffa450edef68
2008-08-15 19:04:25 +00:00
Pinaki Poddar aae1260665 OPENJPA-693: Support 1.5 directional mapping where Parent maps its Children but Child refers to Parent via Parent's primary key value. Introduces a concept of implicit ForeignKey that marks the shared mapped column without any database schema impact.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@686037 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 20:52:16 +00:00
Pinaki Poddar 0d3812fcb5 OPENJPA-687: Add read/write/hit statitics to DataCache/StoreCache
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@684132 13f79535-47bb-0310-9956-ffa450edef68
2008-08-08 22:39:39 +00:00
Srinivasa Segu 2a5964a540 OPENJPA-166 - Fix to use the translated exception as the cause for rollback.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@684082 13f79535-47bb-0310-9956-ffa450edef68
2008-08-08 20:36:31 +00:00
Pinaki Poddar b683569de0 OPENJPA-485:
OPENJPA-497: Saving NPE

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@682570 13f79535-47bb-0310-9956-ffa450edef68
2008-08-05 03:19:13 +00:00
Pinaki Poddar 45651cee86 OPENJPA-497: TemporalType conversion at facade level Query.
Also includes extensive changes in parameter validation logic and data structure.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@681977 13f79535-47bb-0310-9956-ffa450edef68
2008-08-02 13:58:56 +00:00
Pinaki Poddar 9174b3f174 OPENJPA-44: Support 'metadata-complete' attribute to ignore class-level annotations.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@680520 13f79535-47bb-0310-9956-ffa450edef68
2008-07-28 21:56:58 +00:00
Michael Dick 64dbe4c924 [maven-release-plugin] prepare release 1.2.x
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@680508 13f79535-47bb-0310-9956-ffa450edef68
2008-07-28 21:20:09 +00:00
Michael Dick fb78813259 OPENJPA-545 committing patch provided by Jeremy Bauer
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@671319 13f79535-47bb-0310-9956-ffa450edef68
2008-06-24 19:48:23 +00:00
Pinaki Poddar d1a165bc61 OPENJPA-112,OPENJPA-111: Early check for 1-based positional parameter and no named parameter in native query. Also more specific error message
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@669341 13f79535-47bb-0310-9956-ffa450edef68
2008-06-19 00:40:17 +00:00
Pinaki Poddar a8e0dc180e OPENJPA-458: Amplified SQL Exception processing. Introduced a new sql-error-state-codes.xml to specify database specific error code for different types of Store exceptions. This helps to narrow SQL exception to a specific errors which bubble up to user application.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@668814 13f79535-47bb-0310-9956-ffa450edef68
2008-06-17 20:07:12 +00:00
Patrick Linskey 6f6634bbad OPENJPA-522. Backporting r652035 to trunk.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@666895 13f79535-47bb-0310-9956-ffa450edef68
2008-06-11 23:23:33 +00:00
Patrick Linskey 96dd926f4a OPENJPA-522. Backporting r652026 to trunk.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@666894 13f79535-47bb-0310-9956-ffa450edef68
2008-06-11 23:22:54 +00:00
Michael Dick 981c023e0e OPENJPA-633 updating pom.xml files to be compatible with the maven-release-plugin. There are a lot of formatting changes which are needed to prevent the plugin from removing our copyright header.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@666731 13f79535-47bb-0310-9956-ffa450edef68
2008-06-11 16:48:56 +00:00
Pinaki Poddar 89b296fd54 OPENJPA-610: OpenJPA internal exceptions are heuristically translated at facade-level to JPA-defined exception subtypes
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@661498 13f79535-47bb-0310-9956-ffa450edef68
2008-05-29 21:53:51 +00:00
Michael Dick 016f0bf61e OPENJPA-442 deprecating and adding javadoc
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@649956 13f79535-47bb-0310-9956-ffa450edef68
2008-04-20 19:09:19 +00:00
Michael Dick a35b53b27f OPENJPA-442 committing patch provided by Teresa Kan
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@649947 13f79535-47bb-0310-9956-ffa450edef68
2008-04-20 18:09:19 +00:00
Albert Lee 31c47a6c04 OPENJPA-570 - Model after the AnnotationPersistenceMetaDataParser.parsePackageAnnotations(), an extra test is performed in parseClassAnnotations() method for the Named*Quer* annotations to see if the MODE_QUERY has been performed before by examining the meta.getSourceMode() before the actualNamed*Queries() method is invoked.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@648275 13f79535-47bb-0310-9956-ffa450edef68
2008-04-15 15:12:11 +00:00
Albert Lee 5196ae0bc2 OPENJPA-565 - Ignore duplicate NamedQuery definition and continue to parse the remaining entries in NamedQueries definition.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@646378 13f79535-47bb-0310-9956-ffa450edef68
2008-04-09 14:31:33 +00:00