Commit Graph

1807 Commits

Author SHA1 Message Date
Pinaki Poddar 44a4c38a1e OPENJPA-850: Add persistence.xml for equivalent configuration support testing
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@732418 13f79535-47bb-0310-9956-ffa450edef68
2009-01-07 18:33:24 +00:00
Pinaki Poddar f30eb24709 remove unused import statement
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@732084 13f79535-47bb-0310-9956-ffa450edef68
2009-01-06 19:56:20 +00:00
Jeremy Bauer ca3464e0b1 OPENJPA-837 Update documentation with current 2.0 schemas
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@732045 13f79535-47bb-0310-9956-ffa450edef68
2009-01-06 18:36:30 +00:00
Pinaki Poddar 43a9847b93 Remove unnecessary imports
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@729331 13f79535-47bb-0310-9956-ffa450edef68
2008-12-24 16:24:53 +00:00
Catalina Wei fb7ab1908b OPENJPA-557 Primary key sequences broken with postgres schemas
Commit patch provided by Milosz Tylenda

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@729180 13f79535-47bb-0310-9956-ffa450edef68
2008-12-24 00:18:32 +00:00
Catalina Wei 1437517d8c OPENJPA-833 An improved test case for XML column mapping
Commit patch provided by Milosz Tylenda

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@729169 13f79535-47bb-0310-9956-ffa450edef68
2008-12-23 23:21:11 +00:00
Pinaki Poddar 2759792aea Timeout multithreaded tests if they hang
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@729134 13f79535-47bb-0310-9956-ffa450edef68
2008-12-23 21:49:49 +00:00
Pinaki Poddar 94efd58dd9 OPENJPA-845: Evaluate ordering value for PCPath to support ORDER BY slice queries that involves ordering terms not included in projection items and hence requires in-memory ordering from multiple slices.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@729084 13f79535-47bb-0310-9956-ffa450edef68
2008-12-23 20:08:39 +00:00
Pinaki Poddar 3f90c7eaa8 Handle version adjustment when replicated instances are flushed to multiple slices. Refactor untyped OpenJPAStateManager collections to save some redundant iteration.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@728807 13f79535-47bb-0310-9956-ffa450edef68
2008-12-22 22:11:48 +00:00
Pinaki Poddar ec531f3b9d OPENJPA-841: Add structure to hold Slice information. Also ensure that replicated instances carry all replicated slice information even when they are found in a single slice.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@728761 13f79535-47bb-0310-9956-ffa450edef68
2008-12-22 20:22:52 +00:00
Fay Wang 6ff7d9a922 OPENJPA-838: remove cache from StoreCollectionFieldStrategy
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@728750 13f79535-47bb-0310-9956-ffa450edef68
2008-12-22 19:36:50 +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
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