Commit Graph

1646 Commits

Author SHA1 Message Date
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
Catalina Wei 0500645b7a OPENJPA-835 Loading nested toMany EAGER relation resuled in PersistenceException
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@727895 13f79535-47bb-0310-9956-ffa450edef68
2008-12-19 02:17:36 +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 0e6a3bd79d OPENJPA-823 Removed assertion from test due to variability in JREs
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@727841 13f79535-47bb-0310-9956-ffa450edef68
2008-12-18 22:22:33 +00:00
Michael Dick 3fd11d82ab OPENJPA-779 for trunk
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@727826 13f79535-47bb-0310-9956-ffa450edef68
2008-12-18 21:03:17 +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
Fay Wang 78dda5c2b7 OPENJPA-782: add test case for embeddable support
using orm xml.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@727791 13f79535-47bb-0310-9956-ffa450edef68
2008-12-18 19:08:43 +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
Fay Wang 5256a6c516 OPENJPA-782: embeddable support. Adding more test cases per
spec 10.1.7, 10.1.24, 10.1.25, 10.1.34

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@727639 13f79535-47bb-0310-9956-ffa450edef68
2008-12-18 04:43:33 +00:00
Catalina Wei e63fbd5226 OPENJPA-805 JPQL updates iteration 1
add in-memory query testcase for Case, Coalesce, and NullIf expressions

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@727611 13f79535-47bb-0310-9956-ffa450edef68
2008-12-18 01:30:00 +00:00
Michael Dick ead852dc38 OPENJPA-777 committing testcase from Fay's patch
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@727530 13f79535-47bb-0310-9956-ffa450edef68
2008-12-17 21:59:09 +00:00
Pinaki Poddar b3a9a1b0e0 OPENJPA-800: Documentation for new Criteria API support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@727479 13f79535-47bb-0310-9956-ffa450edef68
2008-12-17 19:27:07 +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
Catalina Wei 13027e218c OPENJPA-806 : fix testcase: testGeneralCase & testParameter
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@727107 13f79535-47bb-0310-9956-ffa450edef68
2008-12-16 18:27:30 +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
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
Pinaki Poddar 9c8b2d2cd8 OPENJPA-825: Execute slice operations serailly when openjpa.Multithreaded=true. Otherwise continue using parallel execution mode.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@726770 13f79535-47bb-0310-9956-ffa450edef68
2008-12-15 19:02:19 +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
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
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
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 66434c6ebf OPENJPA-820: Test entity reference can be used as query parameter for slices.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@725078 13f79535-47bb-0310-9956-ffa450edef68
2008-12-10 13:03:08 +00:00
Pinaki Poddar 57d329d3c5 OPENJPA-821: DistributedStoreQuery$UpdateExecutor called executeDelete(). Should be executeUpdate()
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@725070 13f79535-47bb-0310-9956-ffa450edef68
2008-12-10 12:36:24 +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
Catalina Wei 569641f095 OPENJPA-795 enhancer throws an exception when parsing column name "first.name" because it thinks 'first' is a table name
In U2 database column name may contain '.'

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@724817 13f79535-47bb-0310-9956-ffa450edef68
2008-12-09 18:49:49 +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
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 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
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
Michael Dick 7a6ac4afc7 Reverting OPENJPA_817 in trunk. Conflict with Issue 706 causes unpredictable results
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@723914 13f79535-47bb-0310-9956-ffa450edef68
2008-12-05 23:00:22 +00:00
Michael Dick b45e0655df OPENJPA-818 changing tck profile to use geronimo api
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@723873 13f79535-47bb-0310-9956-ffa450edef68
2008-12-05 21:23:36 +00:00
Michael Dick c15fb7dfbb OPENJPA-817 preserve order of statements with ConstraintUpdateManager merge to trunk
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@723854 13f79535-47bb-0310-9956-ffa450edef68
2008-12-05 20:30:05 +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
Fay Wang 55b1fa6cd3 OPENJPA-815: retrieval fails for an entity that contains an
embeddable, which contains a toMany relation.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@723480 13f79535-47bb-0310-9956-ffa450edef68
2008-12-04 23:03:42 +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 5bf35c3a40 OPENJPA-812: Consider case when aggreate result from a slice can be null
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@723260 13f79535-47bb-0310-9956-ffa450edef68
2008-12-04 09:09:35 +00:00
Albert Lee ef7f18f30c OPENJPA-811 - Committ on behalf of Pinaki Poddar and Dinkar Rao.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@723088 13f79535-47bb-0310-9956-ffa450edef68
2008-12-03 21:41:54 +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
Pinaki Poddar 3f47c13c68 OPENJPA-787,OPENJPA-799: getSingleResult() and multiple aggregate projections
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@722059 13f79535-47bb-0310-9956-ffa450edef68
2008-12-01 12:34:17 +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