Commit Graph

282 Commits

Author SHA1 Message Date
Albert Lee 70cfcaaee1 OPENJPA-891 - Remove _recoverable attribute in StoreException and use _fatal instead, per Pinaki's suggestion.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@751109 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 22:22:15 +00:00
Pinaki Poddar 4b31d54b3e OPENJPA-966: Support unwrap() for JPA 2.0
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@750788 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 07:08:20 +00:00
Pinaki Poddar 19fd6b3927 OPENJPA-900: Thread guard while setting hint.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@750781 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 06:33:51 +00:00
Jeremy Bauer 3e8f626668 OPENJPA-927 Committing code contributed by Dianne Richards
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@750115 13f79535-47bb-0310-9956-ffa450edef68
2009-03-04 19:23:53 +00:00
Pinaki Poddar 23145bf7ca OPENJPA-704: Make extended path lookup optional to save runtime costs for predominant use cases.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@749435 13f79535-47bb-0310-9956-ffa450edef68
2009-03-02 21:05:05 +00:00
Albert Lee cc38e27eef OPENJPA-891 - change supportIsolationForUpdate to supportsIsolationForUpdate in line with existing naming convention.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@748957 13f79535-47bb-0310-9956-ffa450edef68
2009-03-01 03:27:37 +00:00
Pinaki Poddar 094f914969 Oversight in QueryDefinition.selectDistinct() boolean argument corrected
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@747848 13f79535-47bb-0310-9956-ffa450edef68
2009-02-25 16:26:29 +00:00
Albert Lee 22a0f837e1 OPENJPA-891 - Committing basic JPA2 lock mode support for em refresh, find and lock methods.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@747489 13f79535-47bb-0310-9956-ffa450edef68
2009-02-24 18:48:09 +00:00
Pinaki Poddar 1a4223d35b OPENJPA-703: A tentative change for a reported locking problem. Ready to be rolled back if turns out to be too costly.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@745661 13f79535-47bb-0310-9956-ffa450edef68
2009-02-18 21:28:50 +00:00
Pinaki Poddar 556e09b69f OPENJPA-703: Use template for QueryStatistics.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@745123 13f79535-47bb-0310-9956-ffa450edef68
2009-02-17 15:41:28 +00:00
Pinaki Poddar 897a912013 Bypass callback method clash if two parsers have parsed the identical method
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@743431 13f79535-47bb-0310-9956-ffa450edef68
2009-02-11 18:04:23 +00:00
Pinaki Poddar 8a9595bed4 OPENJPA-900: Consolidate Query Hint related processing. As a byproduct, support new JPA 2.0 getHins() and getSupportedHints().
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@743396 13f79535-47bb-0310-9956-ffa450edef68
2009-02-11 16:57:26 +00:00
Pinaki Poddar 5b558e5388 OPENJPA-898: Parse query hints for NamedNativeQuery
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@743270 13f79535-47bb-0310-9956-ffa450edef68
2009-02-11 08:12:37 +00:00
Pinaki Poddar 0916d4b109 OPENJPA-703: Align data loading for Prepared Query Results to Select oriented result object provider
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@742601 13f79535-47bb-0310-9956-ffa450edef68
2009-02-09 16:29:37 +00:00
Fay Wang e2aea2d05a OPENJPA-871: MappedById support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@741595 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 15:34:53 +00:00
Pinaki Poddar 72ac31544f DB2 optimization for Query.getSingleResult()
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@741398 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 04:31:17 +00:00
Jeremy Bauer c3691f5e88 OPENJPA-849 Committing code and corresponding tests contributed by Dianne Richards
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@740991 13f79535-47bb-0310-9956-ffa450edef68
2009-02-05 03:31:15 +00:00
Pinaki Poddar c27f31a107 OPENJPA-899: Initial support for new JPA 2.0 Query.getHints() API method.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@740911 13f79535-47bb-0310-9956-ffa450edef68
2009-02-04 22:06:47 +00:00
Fay Wang 4d5a6c5e56 OPENJPA-870: orm support for OrphanRemoval
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@740781 13f79535-47bb-0310-9956-ffa450edef68
2009-02-04 16:31:54 +00:00
Catalina Wei 5fd390856e OPENJPA-703 Cache ResultObjectProvider data to improve query performance
recover a line for query hint.OptimizeResultCount

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@740598 13f79535-47bb-0310-9956-ffa450edef68
2009-02-04 04:09:58 +00:00
Pinaki Poddar f9c94752d7 OPENJPA-857: Extend support for Specification through a more structured type to carry Version information. Will help Compatibitibility (and may be others) that needs to tune their behavior based on current Specification version as well as backward compatibie versions.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@740492 13f79535-47bb-0310-9956-ffa450edef68
2009-02-03 22:38:45 +00:00
Pinaki Poddar c71522fa9a OPENJPA-703:How user parameters are converted to Object[] is determined by the Executors. Because they are the consumer of this information. kernel.Query toParameterArray() was making many implict assumptions. A detailed test with paramenetrs and forcing PreparedQueryCacheImpl to cache JPQL only.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@740184 13f79535-47bb-0310-9956-ffa450edef68
2009-02-03 01:41:25 +00:00
Pinaki Poddar 64329e007e OPENJPA-703: Support Collection-valued parameters. Handle re-parameterization when collection-valued parameter has different size across invocations.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@740016 13f79535-47bb-0310-9956-ffa450edef68
2009-02-02 15:57:27 +00:00
Pinaki Poddar 4ed05803e1 OPENJPA-703: A separate executor for Prepared SQL.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@739784 13f79535-47bb-0310-9956-ffa450edef68
2009-02-01 16:50:45 +00:00
Pinaki Poddar e30261e55a OPENJPA-703: Support PersistenceCapable as query parameter during reparameterization of Prepared Query.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@739589 13f79535-47bb-0310-9956-ffa450edef68
2009-01-31 19:37:01 +00:00
Fay Wang 937d0f42f0 OPENJPA-870: rollback r739155 to re-use the code path
of @Dependent and @ElementDependent for orphanRemoval.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@739448 13f79535-47bb-0310-9956-ffa450edef68
2009-01-30 23:06:29 +00:00
Fay Wang 6453c64343 OPENJPA-870: orphanRemoval support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@739155 13f79535-47bb-0310-9956-ffa450edef68
2009-01-30 03:15:09 +00:00
Pinaki Poddar 295442d82f OPENJPA-703: Prepared Query Cache
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@739123 13f79535-47bb-0310-9956-ffa450edef68
2009-01-30 01:27:35 +00:00
A. Abram White 672b5f0b45 Use both envLoader and application loader for class loading when parsing
XML metadata files.  envLoader first to appease Spring integ.



git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@739054 13f79535-47bb-0310-9956-ffa450edef68
2009-01-29 22:27:00 +00:00
Jeremy Bauer da91c0bb56 OPENJPA-849 Removing partial feature update for milestone release
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@738157 13f79535-47bb-0310-9956-ffa450edef68
2009-01-27 17:26:02 +00:00
Jeremy Bauer 017e518bba OPENJPA-802 Base OrderColumn support and corresponding tests
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@736915 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 04:54:33 +00:00
Michael Dick 0452a7c4ab OPENJPA-809 support JPA 2.0 cache interface.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@736036 13f79535-47bb-0310-9956-ffa450edef68
2009-01-20 16:50:01 +00:00
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