Commit Graph

651 Commits

Author SHA1 Message Date
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 2065e905dd OPENJPA-703: Use Prepared Query for packed results.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@739796 13f79535-47bb-0310-9956-ffa450edef68
2009-02-01 17:34:04 +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 3c85ec758a OPENJPA-870: orphanRemoval support with test case checked in
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@739166 13f79535-47bb-0310-9956-ffa450edef68
2009-01-30 04:32:51 +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
Catalina Wei 8e60655cd7 OPENJPA-865 JPA2 Query support for collection-valued input parameter in in-expression
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@738940 13f79535-47bb-0310-9956-ffa450edef68
2009-01-29 17:51:35 +00:00
Fay Wang 89df4a7532 OPENJPA-873: fix NPE when MappedSuperclass does not have
IdClass defined.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@737816 13f79535-47bb-0310-9956-ffa450edef68
2009-01-26 20:23:55 +00:00
Catalina Wei f1d2bf4bef OPENJPA-863 Unexpected mere-cascade behavior when cascade.all/merge specified on both sides of relationships
Committing patch provided by Sandhya Truraga

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@737132 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 18:23:18 +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
Catalina Wei d49fdb1ea2 OPENJPA-856 JPQ2 JPQL add support for entity type expression
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@736881 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 01:19:47 +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
Michael Dick 8c50f73fe4 OPENJPA-860 fixing the last trace call. Patch originally provided by Janko Heilgeist
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@735137 13f79535-47bb-0310-9956-ffa450edef68
2009-01-16 21:12:47 +00:00
Michael Dick 696388049b OPENJPA-860 improve trace. Entity class names are printed when found in orm.xml
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@734797 13f79535-47bb-0310-9956-ffa450edef68
2009-01-15 20:21:45 +00:00
Catalina Wei 1583426e01 OPENJPA-836 after em.clear the datacache is inconsistent
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@734551 13f79535-47bb-0310-9956-ffa450edef68
2009-01-14 23:21:13 +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
Catalina Wei 4427455757 OPENJPA-855 JPA2 Query updates add support for Index function
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@733142 13f79535-47bb-0310-9956-ffa450edef68
2009-01-09 20:13:20 +00:00
Pinaki Poddar cbbc768673 OPENJPA-850: Add notion of equivalent property keys for configurable Value. Use this facility to support new javax.persistence.* style property keys alongside openjpa.* style property keys.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@732443 13f79535-47bb-0310-9956-ffa450edef68
2009-01-07 19:38:45 +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
Jeremy Bauer 04900fe85c OPENJPA-819 Committing fix for NPE and corresponding test case contributed by Dianne Richards.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@727813 13f79535-47bb-0310-9956-ffa450edef68
2008-12-18 20:39:06 +00:00
Pinaki Poddar 0f7f03d8b0 OPENJPA-825: Cache unique flag for query to avoid lcoking. Use StateManager's instance lock rather than acquiring Broker's lock.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@727297 13f79535-47bb-0310-9956-ffa450edef68
2008-12-17 06:23:00 +00:00
David Ezzio 9ba8587238 Merged changes 726860, 68, and 76 from branch 1.1.x. Added Cache Marshallers to descriptors, and renamed test case. Was not able to enable test case due to additional missing property descriptors in trunk. See Jira: OPENJPA-830.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@727250 13f79535-47bb-0310-9956-ffa450edef68
2008-12-17 03:01:26 +00:00
Fay Wang 4cf216c21f OPENJPA-782: embeddable support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@727084 13f79535-47bb-0310-9956-ffa450edef68
2008-12-16 16:44:26 +00:00
Pinaki Poddar 548ccbcf95 OPENJPA-828: Switch field value access based on declaredTypeCode rather than typeCode to take care of externalized fields.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@726927 13f79535-47bb-0310-9956-ffa450edef68
2008-12-16 01:59:34 +00:00
Catalina Wei 47eab49812 OPENJPA-805 JPQL updates iteration 1
add in-memory query constructs for Case, Coalesce, and NullIf expressions

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@726926 13f79535-47bb-0310-9956-ffa450edef68
2008-12-16 01:58:31 +00:00
Catalina Wei debe82b8d0 OPENJPA-805 JPQL iteration 1 - add support for COALESCE and NULLIF expressions
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@725881 13f79535-47bb-0310-9956-ffa450edef68
2008-12-12 01:29:19 +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
Catalina Wei 979a6e373c OPENJPA-805 JPQL iteration 1: add support for Case Expressions
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@725728 13f79535-47bb-0310-9956-ffa450edef68
2008-12-11 16:16:32 +00:00
Catalina Wei 2bb40626e6 OPENJPA-805 JPQL iteration 1 add support for select ScalarExpression & Order By selectAlias
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@725530 13f79535-47bb-0310-9956-ffa450edef68
2008-12-11 01:43:52 +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
Catalina Wei 8f97b2248a OPENJPA-805 JPQL updates - iteration 1
Sync up with JPQL.jjt to pass regression

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@725485 13f79535-47bb-0310-9956-ffa450edef68
2008-12-10 23:34:55 +00:00
Catalina Wei 243b68dbb7 OPENJPA-805 JPQL updates - iteration 1
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@725429 13f79535-47bb-0310-9956-ffa450edef68
2008-12-10 20:52:36 +00:00
Pinaki Poddar 62e1deae8f OPENJPA-801: PCPath is now a CandidatePath. But why was it not before?
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@724856 13f79535-47bb-0310-9956-ffa450edef68
2008-12-09 20:08:32 +00:00
Michael Dick 82e702867e OPENJPA-817 fixed in trunk
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@724765 13f79535-47bb-0310-9956-ffa450edef68
2008-12-09 16:04:37 +00:00
Fay Wang 9946b6c19b OPENJPA-792: MappedSuperClass problem. Commit on behalf of
Sandhya Turaga.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@724490 13f79535-47bb-0310-9956-ffa450edef68
2008-12-08 21:22:58 +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
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
Pinaki Poddar c28c7830d5 More informative message when multiple fields used wrongly as primary key
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@722060 13f79535-47bb-0310-9956-ffa450edef68
2008-12-01 12:42:00 +00:00
Michael Dick 9e67ec5ae8 OPENJPA-778 cleanup
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@719739 13f79535-47bb-0310-9956-ffa450edef68
2008-11-21 22:55:38 +00:00
Michael Dick 2b1a1e69e2 OPENJPA-778 committing patch provided by Fernando
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@719698 13f79535-47bb-0310-9956-ffa450edef68
2008-11-21 20:16:32 +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 75b9ca7fa3 OPENJPA-764: Parse IN expressions with string functions such as UPPER()
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@712842 13f79535-47bb-0310-9956-ffa450edef68
2008-11-10 21:35:35 +00:00
Catalina Wei 5550d8dbb5 OPENJPA-755 Update to SingleFieldManager to permit detached related entities on a merge with cascade persist.
cosmatic changes only - removed tabs.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@712817 13f79535-47bb-0310-9956-ffa450edef68
2008-11-10 19:55:00 +00:00
Jeremy Bauer 54d4d0d07d OPENJPA-755 Update to SingleFieldManager to permit detached related entities on a merge with cascade persist. Committing for Dinkar Rao.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@709527 13f79535-47bb-0310-9956-ffa450edef68
2008-10-31 18:39:16 +00:00