Commit Graph

1276 Commits

Author SHA1 Message Date
Donald Woods ee9210be92 OPENJPA-1201 [Mapped by] field not set when contained in superclass. Patch and testcases contributed by David Minor.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@814662 13f79535-47bb-0310-9956-ffa450edef68
2009-09-14 14:29:34 +00:00
Donald Woods b889ccb834 OPENJPA-1247 WriteBehindCallback sleepTime interval of one EMF datacache adversely impacting other EMF datacache (testcase for OPENJPA-1296). Contributed by Tim McConnell.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@814644 13f79535-47bb-0310-9956-ffa450edef68
2009-09-14 13:54:59 +00:00
Milosz Tylenda e9b5c53fd0 OPENJPA-1153: Speed tests up by using only needed entities rather than all entities from persistence.xml
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@814295 13f79535-47bb-0310-9956-ffa450edef68
2009-09-13 10:02:01 +00:00
Pinaki Poddar d7b4296c8f Failed Oracle test on bad column name 'date'.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@814105 13f79535-47bb-0310-9956-ffa450edef68
2009-09-12 02:49:29 +00:00
Fay Wang 60e55574c8 fix BigDecimal problem in the test case for MySQL
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@814085 13f79535-47bb-0310-9956-ffa450edef68
2009-09-11 23:41:34 +00:00
Fay Wang 15b5ec20dd fix unique constraint syntax in the test case for MySQL
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@814029 13f79535-47bb-0310-9956-ffa450edef68
2009-09-11 21:05:30 +00:00
Donald Woods 46734cf443 OPENJPA-1184 apply source formatting to new files
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@813990 13f79535-47bb-0310-9956-ffa450edef68
2009-09-11 19:27:08 +00:00
Donald Woods 32c6ca132c OPENJPA-1184 Testcase contributed by David Minor.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@813985 13f79535-47bb-0310-9956-ffa450edef68
2009-09-11 19:09:20 +00:00
Pinaki Poddar b573799fc3 OPENJPA-1013: Tighten access to instance variables/methods.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@813659 13f79535-47bb-0310-9956-ffa450edef68
2009-09-11 03:24:27 +00:00
Pinaki Poddar df860912a7 OPENJPA-1288: stop re-alias(). Added new utility to check validity of names for JPA reserved words and special symbols.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@813658 13f79535-47bb-0310-9956-ffa450edef68
2009-09-11 03:22:00 +00:00
Kevin W. Sutter dac8af35b4 OPENJPA-1260. Committing this change for Ravi Palacherla. Mike had previously reviewed the patch for correctness. Ravi changed the patch slightly and re-submitted. Based on a request from the mailing list, I reviewed Ravi's second patch and am committing the changes with a couple of minor modifications. I updated the comments slightly to make sentences. And, I moved the testcases to the "generationtype" package to be with similar testcases.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@813597 13f79535-47bb-0310-9956-ffa450edef68
2009-09-10 21:35:57 +00:00
Donald Woods fa49080f8f back out last getLog() additions, which caused failures on when not using Derby
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@813568 13f79535-47bb-0310-9956-ffa450edef68
2009-09-10 20:02:52 +00:00
Jeremy Bauer b5fabd88dd OPENJPA-869 Fixup order column test variations failing on Oracle.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@813556 13f79535-47bb-0310-9956-ffa450edef68
2009-09-10 19:31:01 +00:00
Donald Woods 0d3179cef9 updated getLog() methods and switched testcase to use setUnsupportedDatabases()
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@813519 13f79535-47bb-0310-9956-ffa450edef68
2009-09-10 17:16:31 +00:00
Pinaki Poddar 8e96965225 OPENJPA-1288: alias() first version. Assumes in-place change and does not create new instance. Retired TupleElementImpl.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@813514 13f79535-47bb-0310-9956-ffa450edef68
2009-09-10 16:58:44 +00:00
Donald Woods 5113654485 add common setTestsDisabled()/isTestsDisabled() in AbstractPersistenceTestCase which is used by runTest() to automatically skip all tests. added new setSupportedDatabases()/setUnsupportedDatabases() methods in SingleEMFTestCase to set the testsDisabled flag in AbstractPTC, along with moving a getLog() method from some testcases into the base SingleEMFTC class for everyone to use.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@813506 13f79535-47bb-0310-9956-ffa450edef68
2009-09-10 16:40:37 +00:00
Donald Woods a543403d2a remove encoded chars to fix build issue with IBM 5 SDK
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@813433 13f79535-47bb-0310-9956-ffa450edef68
2009-09-10 13:40:10 +00:00
Fay Wang 94a0bc3781 OPENJPA-1270: check in test case for this JIRA
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@813125 13f79535-47bb-0310-9956-ffa450edef68
2009-09-09 21:23:48 +00:00
Donald Woods 2691db6e0b add a log.trace to denote the tests are being skipped for some DBs
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@812974 13f79535-47bb-0310-9956-ffa450edef68
2009-09-09 14:29:09 +00:00
Donald Woods a875ef52b1 Updates to r812712 by Fay to also exclude tests for MSSQL and Oracle DBs
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@812958 13f79535-47bb-0310-9956-ffa450edef68
2009-09-09 13:45:06 +00:00
Fay Wang 435f66e273 exclude this test case for MySQL
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@812712 13f79535-47bb-0310-9956-ffa450edef68
2009-09-08 22:14:32 +00:00
Fay Wang 702a9c6616 fix test case problem for MySQL (microseconds are not stored in the MySQL Temporal column)
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@812689 13f79535-47bb-0310-9956-ffa450edef68
2009-09-08 20:45:07 +00:00
Fay Wang 45f79b59af fix test case problem for MySQL
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@811975 13f79535-47bb-0310-9956-ffa450edef68
2009-09-07 02:16:17 +00:00
Fay Wang e33f83901f fix test case problem for MySQL
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@811876 13f79535-47bb-0310-9956-ffa450edef68
2009-09-06 20:29:15 +00:00
Fay Wang f45899eee8 fix test case problem for MySQL
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@811767 13f79535-47bb-0310-9956-ffa450edef68
2009-09-06 06:05:39 +00:00
Fay Wang c39ec8a6de fix test case problem for MySQL
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@811759 13f79535-47bb-0310-9956-ffa450edef68
2009-09-06 04:47:28 +00:00
Fay Wang f246cb19b4 fix test case problem for MySQL
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@811754 13f79535-47bb-0310-9956-ffa450edef68
2009-09-06 04:01:29 +00:00
Fay Wang 35ef9efaec fix MySQL test case problem.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@811557 13f79535-47bb-0310-9956-ffa450edef68
2009-09-04 21:23:43 +00:00
Fay Wang 7bcdee7a60 fix test case problem for MySQL
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@811510 13f79535-47bb-0310-9956-ffa450edef68
2009-09-04 18:28:29 +00:00
Catalina Wei 301fc200d1 Fix testcase : SQL assertion for Derby only
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@811012 13f79535-47bb-0310-9956-ffa450edef68
2009-09-03 16:22:06 +00:00
Pinaki Poddar e01390051b OPENJPA-1278,OPENJPA-1276,OPENJPA-1013:
Modify negation of predicate logic
  Promote interfaces from internal implementaion argument to  public interfaces
 Add Fetch Join and logical precedence order to CQL generation

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@810825 13f79535-47bb-0310-9956-ffa450edef68
2009-09-03 08:52:17 +00:00
Catalina Wei 5d6581bf7f OPENJPA-1283 Incorrect SQL for a JPQL query selecting Map value from an elementCollection of a Map and the map the value is an embeddable
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@810744 13f79535-47bb-0310-9956-ffa450edef68
2009-09-03 00:45:17 +00:00
Pinaki Poddar 817696298d OPENJPA-1276: preserve precedence order while rendering logical operators/operands
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@810685 13f79535-47bb-0310-9956-ffa450edef68
2009-09-02 19:47:10 +00:00
Pinaki Poddar 0036dc5bfb OPNJPA-1275: Align with JPA 2.0 Public Draft 2
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@810347 13f79535-47bb-0310-9956-ffa450edef68
2009-09-02 03:03:48 +00:00
Fay Wang ac939f7b5f OPENJPA-1281: fix reparameter when PreparedQueryCache is on
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@810331 13f79535-47bb-0310-9956-ffa450edef68
2009-09-02 01:46:54 +00:00
Michael Dick 82cda8b8d5 remove author tag
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@810229 13f79535-47bb-0310-9956-ffa450edef68
2009-09-01 20:50:32 +00:00
Pinaki Poddar e39a9a09e0 OPENJPA-1278,OPENJPA-1276,OPENJPA-1265:
Add new OpenJPACriteriaXYZ interface for extended features. 
  Draft version of conversion of Criteria Query to a JPQL-like string
  The getter methods return non-live, non-null, mutable lists/sets

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@810212 13f79535-47bb-0310-9956-ffa450edef68
2009-09-01 20:16:19 +00:00
Michael Dick 69cf52f68d OPENJPA-1279:
Adding testcases and fixing cache exclusion logic in DataCacheStoreManager

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@810197 13f79535-47bb-0310-9956-ffa450edef68
2009-09-01 19:48:09 +00:00
Jeremy Bauer e6ccbb0c0d OPENJPA-1274 Support cascade detach specified in an XML mapping file
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@809797 13f79535-47bb-0310-9956-ffa450edef68
2009-09-01 02:06:03 +00:00
Jeremy Bauer f13af4a400 OPENJPA-1272 Test was not cleaning up after itself properly. This was causing failures on some build configurations.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@809671 13f79535-47bb-0310-9956-ffa450edef68
2009-08-31 17:42:03 +00:00
Pinaki Poddar f214d9f397 OPENJPA-1013: Visitor pattern on criteria expressions
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@809037 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28 21:37:45 +00:00
Pinaki Poddar 0795778d3d OPENJPA-1013: Visitor pattern for collecting declared parameters. Editing with parameters. Search within result usage.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@809036 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28 21:32:29 +00:00
Jeremy Bauer fe44661dc2 OPENJPA-1272 Add testcases for association overrides applied to element collection with domain model defined in XML.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@809035 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28 21:29:36 +00:00
Michael Dick d02f0688ae OPENJPA-1271:
Missed a class on previous commit

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@808991 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28 19:12:35 +00:00
Michael Dick 991cdcae7d OPENJPA-1271:
Enable CacheStoreMode and CacheRetrieveMode properties to be set for an EntityManager.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@808981 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28 18:25:08 +00:00
Fay Wang 78e93abb51 OPENJPA-1269: honor the table attribute in the MapKeyColumn annotation
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@808750 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28 04:27:53 +00:00
Pinaki Poddar 250186fbcb OPENJPA-1100: Raise exception for unsupported version field type rather than silently ignoring
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@808725 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28 01:39:15 +00:00
Pinaki Poddar 149dbef93b OPENJPA-1116: Setting strategy on FieldMappingInfo instead of ValueMappingInfo. RuntimeStrategyInstaller installs strategy from FieldMappingInfo. Contributed by Ashish Palliwal.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@808703 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28 00:54:52 +00:00
Pinaki Poddar 6305be480b OPENJPA-1225: Fail fast on wrong constructor() argument
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@808513 13f79535-47bb-0310-9956-ffa450edef68
2009-08-27 16:53:50 +00:00
Pinaki Poddar 39da6319dd OPENJPA-1265: move test case
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@808401 13f79535-47bb-0310-9956-ffa450edef68
2009-08-27 12:38:33 +00:00
Michael Dick f06d862ec6 OPENJPA-386:
Handle abstract and non abstract MappedSuperClasses identically. 
Submitted By: Jody Grassel

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@808243 13f79535-47bb-0310-9956-ffa450edef68
2009-08-27 01:26:37 +00:00
Pinaki Poddar f6ae418aa5 OPENJPA-1267: JDBC Escape Syntax for temporal type data in Criteria Query
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@808235 13f79535-47bb-0310-9956-ffa450edef68
2009-08-27 00:26:00 +00:00
Fay Wang 9177e9369a OPENJPA-1266: JDBC escape syntax for date, time, timestamp support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@808198 13f79535-47bb-0310-9956-ffa450edef68
2009-08-26 22:01:25 +00:00
Pinaki Poddar f68c531a5b OPENJPA-1265: Support edit of Criteria Query.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@808158 13f79535-47bb-0310-9956-ffa450edef68
2009-08-26 18:54:30 +00:00
Fay Wang e19c75a9c3 OPENJPA-1266: JDBC escape syntax for date, time, timestamp
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@807851 13f79535-47bb-0310-9956-ffa450edef68
2009-08-25 23:22:59 +00:00
Jeremy Bauer ec43fccfff OPENJPA-1262 ORM Schema updates for EA7
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@807686 13f79535-47bb-0310-9956-ffa450edef68
2009-08-25 16:14:00 +00:00
Michael Dick 964ab657ce OPENJPA-1264:
Enable shared-cache-mode persistence.xml element. 

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@807662 13f79535-47bb-0310-9956-ffa450edef68
2009-08-25 15:08:16 +00:00
Fay Wang 9a4406038e OPENJPA-1174: default fetch type for ManyToOne and OneToOne is eager.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@807602 13f79535-47bb-0310-9956-ffa450edef68
2009-08-25 13:04:12 +00:00
Catalina Wei 049c91707b OPENJPA-1112 JPA2 Query result of embeddable object can not be further updated
add table name in Address entity

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@807479 13f79535-47bb-0310-9956-ffa450edef68
2009-08-25 05:02:44 +00:00
Catalina Wei 388b18650f OPENJPA-1112 JPA2 Query result of embeddable object can not be further updated
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@807446 13f79535-47bb-0310-9956-ffa450edef68
2009-08-25 01:19:32 +00:00
Michael Dick ee5506d3d4 OPENJPA-1261: Set svn:eol-style
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@807248 13f79535-47bb-0310-9956-ffa450edef68
2009-08-24 14:41:36 +00:00
Catalina Wei 917b49befe OPENJPA-1261 JPQL query result shape for multi-selections including multi-select-new-constructor
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@806993 13f79535-47bb-0310-9956-ffa450edef68
2009-08-23 17:47:06 +00:00
Michael Dick 7c8454767e Fixing svn:eol-style
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@806726 13f79535-47bb-0310-9956-ffa450edef68
2009-08-21 21:28:08 +00:00
Michael Dick bb7048d27c OPENJPA-1200:
Discriminator column ignored for in select statement for OneToMany relationships.
Submitted By : Ravi Palacherla

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@806693 13f79535-47bb-0310-9956-ffa450edef68
2009-08-21 19:55:09 +00:00
Catalina Wei 2615a9b426 OPENJPA-1112 JPA2 Query result of embeddable object can not be further updated
Bulk update of embedded field is not allowed

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@806675 13f79535-47bb-0310-9956-ffa450edef68
2009-08-21 18:53:40 +00:00
Donald Woods 5b9b5d7725 OPENJPA-1252 Include a Derby Network Server w/ JCC driver test profile and cleanup some other profiles.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@806022 13f79535-47bb-0310-9956-ffa450edef68
2009-08-20 02:30:09 +00:00
Fay Wang 21d88cadc7 OPENJPA-1256: fix ClassCastExcepton when IdClass contains an ENUM type
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@806011 13f79535-47bb-0310-9956-ffa450edef68
2009-08-20 00:03:30 +00:00
Donald Woods 7065743f17 OPENJPA-1252 Include a Derby Network Server test profile, allow Derby version to be changed on the cmdline, and cleanup some formatting/comments.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@805841 13f79535-47bb-0310-9956-ffa450edef68
2009-08-19 15:36:02 +00:00
Donald Woods 30a7da0ba2 additional test for embeddable, elementcollection and lob
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@805573 13f79535-47bb-0310-9956-ffa450edef68
2009-08-18 20:45:21 +00:00
Pinaki Poddar 4e6a98f634 OPENJPA-849,OPENJPA-1251: Property management, hidden values
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@805567 13f79535-47bb-0310-9956-ffa450edef68
2009-08-18 20:27:30 +00:00
Fay Wang c35c13497b OPENJPA-1250: fix ClassCast exception with eagerly fetched ElementCollection
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@805090 13f79535-47bb-0310-9956-ffa450edef68
2009-08-17 18:47:59 +00:00
Michael Dick 49e554ac6c OPENJPA-1237:
Throw configuration exception for missing options when using WriteBehind. 
Submitted by : Tim McConnell

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804539 13f79535-47bb-0310-9956-ffa450edef68
2009-08-15 23:25:35 +00:00
Catalina Wei dc316323ba OPENJPA-1112 JPA2 Query result of embeddable object can not be further updated
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804419 13f79535-47bb-0310-9956-ffa450edef68
2009-08-15 00:32:59 +00:00
Catalina Wei 92fcf33575 OPENJPA-1185 Subquery restructure code
cleanup comments in testcase

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804418 13f79535-47bb-0310-9956-ffa450edef68
2009-08-15 00:30:09 +00:00
Michael Dick b8c7ce58ad OPENJPA-1245:
Pom.xml cleanup

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804336 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14 19:29:34 +00:00
Michael Dick 88dcd580d8 OPENJPA-1245:
Move lockmode tests to a separate module. This allows different derby lock settings to be set on persistence-jdbc which should speed up test execution.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804335 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14 19:30:05 +00:00
Michael Dick 286f708d7d o.a.o.p.common.utils.AbstractTestCase extends AbstractCachedEMFTestCase
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804332 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14 19:28:47 +00:00
Michael Dick 89a7f53db0 Refactor PersistenceTestCase to AbstractCachedEMFTestCase and AbstractPersistenceTestCase.
Deprecate old class to allow submodules to compile (can be removed after maven repos is updated).

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804331 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14 19:28:39 +00:00
Michael Dick 9eb8af5a72 OPENJPA-948:
Adding support for Ingress database (new dictionary, build config etc.).
Submitted by : Alan Raison

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804261 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14 15:29:35 +00:00
Michael Dick 3f6ab72c52 Refactoring QueryTest class and entities
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804068 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14 01:59:56 +00:00
Catalina Wei c9695c2fb9 OPENJPA-1885 Subquery restructure code
add more test string in TestSubquery

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804037 13f79535-47bb-0310-9956-ffa450edef68
2009-08-13 21:47:39 +00:00
Fay Wang 06bd0d64e7 OPENJPA-1143: further clean up testcase
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804024 13f79535-47bb-0310-9956-ffa450edef68
2009-08-13 20:53:29 +00:00
Fay Wang 222e01d2f3 OPENJPA-1185: criteria embeddable subquery support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804013 13f79535-47bb-0310-9956-ffa450edef68
2009-08-13 20:02:42 +00:00
Fay Wang a488a122cf OPENJPA-1242: fix cascade delete for 1-1 relation in an embeddable
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@803763 13f79535-47bb-0310-9956-ffa450edef68
2009-08-13 03:08:55 +00:00
Michael Dick 6c2e3e2d03 OPENJPA-1189:
Try delimited table names if we can't find a match for non-delimited names
Submitted by : Dianne Richards

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@803720 13f79535-47bb-0310-9956-ffa450edef68
2009-08-12 21:45:51 +00:00
Pinaki Poddar a445c1c4bd OPENJPA-687: add statsics while datacache is queried with contains()
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@803661 13f79535-47bb-0310-9956-ffa450edef68
2009-08-12 18:43:48 +00:00
Pinaki Poddar 21cece4f71 OPENJPA-1241: Support MapJoin.joinKey() for JPA 2.0. Needs special treatement because unlike other joins keys of Map is not an explicit persistent attribute. Introduces a notion of pseudo-attribute (Map.keySet()) of a pseudo managed type (a java.util.Map).
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@803657 13f79535-47bb-0310-9956-ffa450edef68
2009-08-12 18:35:47 +00:00
Jeremy Bauer 3dda949ce4 OPENJPA-1115 Committing code and test updates contributed by Dianne Richards
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@803612 13f79535-47bb-0310-9956-ffa450edef68
2009-08-12 17:22:52 +00:00
Fay Wang d5f14ebc02 OPENJPA-1240: Lob, Temporal, Enumerated on element collections annotations and in XML
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@803547 13f79535-47bb-0310-9956-ffa450edef68
2009-08-12 15:03:45 +00:00
Jeremy Bauer 5b68196cf1 OPENJPA-1239 Corrected method which determines explicit access type to set explicit bit
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@803354 13f79535-47bb-0310-9956-ffa450edef68
2009-08-12 02:31:53 +00:00
Pinaki Poddar dc061e904f OPENJPA-1225:
Refactor FillStrategy out of ResultShape enum to a separate interface. 
Introduce CompoundSelections.MultiSelect
Use ObjectFactory for Tuple to save memory
Tune CriteriaExpressionBuilder to new result packing
Isolate ResultPacker (JPQL) from ResultShape (Criteria) completely 
Implement getSelection() for JPA 2.0

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802984 13f79535-47bb-0310-9956-ffa450edef68
2009-08-11 03:02:45 +00:00
Fay Wang 2b24b76a9c OPENJPA-1143: keys(map) and values(map) support for Criteria API.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802929 13f79535-47bb-0310-9956-ffa450edef68
2009-08-10 21:32:52 +00:00
Jeremy Bauer 9af553bc8d OPENJPA-1235 Added support for named unique constraints
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802864 13f79535-47bb-0310-9956-ffa450edef68
2009-08-10 17:03:42 +00:00
Michael Dick fb2a45a739 OPENJPA-1234:
AllowFailure checks for system property before running or logging exceptions from test methods.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802587 13f79535-47bb-0310-9956-ffa450edef68
2009-08-09 20:38:58 +00:00
Michael Dick 3ec9136da7 OPENJPA-651:
Default setting for RuntimeUnenhancedClasses = unsupported.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802457 13f79535-47bb-0310-9956-ffa450edef68
2009-08-08 21:03:56 +00:00
Pinaki Poddar 2d120b6363 OPENJPA-1013: 1. Avoid both LHS and RHS parameterized as ? = ? in SQL. Some databases do not like it.
2.  handle constant literal or empty arguments for Criteria predicates .
                           3. Parameter registration for subqueries roll up to the parent
                           4. MapKey of kernel is not a path so allPathImpl.toValue() is not kernel.Path

                            5. Clean up tests. Local result: Total : 435 Fails: 14 locally

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802273 13f79535-47bb-0310-9956-ffa450edef68
2009-08-07 23:57:51 +00:00
Michael Dick 1b769e629c Refactor write behind testcase to use static EMFs.
modified:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/writebehind/AbstractWriteBehindTestCase.java

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802261 13f79535-47bb-0310-9956-ffa450edef68
2009-08-07 22:45:35 +00:00
Michael Dick 3b327b5fbb OPENJPA-1232:
Call toNestedFields for Map Keys as well as Map values.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802211 13f79535-47bb-0310-9956-ffa450edef68
2009-08-07 21:31:45 +00:00
Michael Dick a54f47dfc8 Setting table name for Item to avoid collisions with o.a.o.p.simple.Item.
M    Item.java


git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802207 13f79535-47bb-0310-9956-ffa450edef68
2009-08-07 21:29:30 +00:00
Michael Dick 38cd47a76d OPENJPA-1222:
remove @AllowFailure on tests that pass

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802138 13f79535-47bb-0310-9956-ffa450edef68
2009-08-07 18:35:16 +00:00
Pinaki Poddar d5fdddb9bf OPENJPA-1180: Parameter indexing for CriteriaQuery is the order of their registraion
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802104 13f79535-47bb-0310-9956-ffa450edef68
2009-08-07 17:43:48 +00:00
Donald Woods 637880e8d3 add comment about needing to use MSSQL sqljdbc4 driver with Java SE 6 or later
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@801405 13f79535-47bb-0310-9956-ffa450edef68
2009-08-05 20:36:08 +00:00
Michael Dick a84c76fea7 OPENJPA-1222:
Removing sys.err.printlns, unused variables, and some formatting changes.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@801195 13f79535-47bb-0310-9956-ffa450edef68
2009-08-05 12:49:49 +00:00
Fay Wang a4a94f5331 OPENJPA-1226: fix merge entities with nested embeddables
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@801052 13f79535-47bb-0310-9956-ffa450edef68
2009-08-05 02:56:41 +00:00
Pinaki Poddar baaec8148b OPENJPA-1225: Shape of Result for Criteria query. Draft.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@801045 13f79535-47bb-0310-9956-ffa450edef68
2009-08-05 02:07:54 +00:00
Michael Dick 5364ba58b9 OPENJPA-1222:
Fixing build problem with Sun JDK 6

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@801027 13f79535-47bb-0310-9956-ffa450edef68
2009-08-04 23:42:57 +00:00
Michael Dick 52ee68b7a1 Remove system.out.println from test class.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@800970 13f79535-47bb-0310-9956-ffa450edef68
2009-08-04 20:56:44 +00:00
Jeremy Bauer 63cacaa1c9 OPENJPA-1208 Set compatibility options and validation mode based on persistence version.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@800951 13f79535-47bb-0310-9956-ffa450edef68
2009-08-04 20:32:49 +00:00
Michael Dick 33bd1d4aac OPENJPA-1222:
Fix tabs in pom.xml

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@800879 13f79535-47bb-0310-9956-ffa450edef68
2009-08-04 17:19:54 +00:00
Michael Dick 1c9aef0481 OPENJPA-1222:
Enabling and refactoring Criteria testcases. The Criteria testcases use a static EMF which requires the entity model to be known up front - refactoring creates a separate EMF for the embeddable and joined models.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@800847 13f79535-47bb-0310-9956-ffa450edef68
2009-08-04 15:36:18 +00:00
Donald Woods df073249f5 OPENJPA-1107 Updated TraversableResolver that calls only our OpenJPAPersistenceUtil. Updated OpenJPAPersistenceUtil.isLoaded() to handle UnsupportedOperationException when checking a detached entity and returns LoadState.UNKNOWN. Also added a testcase in TestPersistenceUtil to verify that caller gets isLoaded()==true for a detached entity and fixed a trace output in TestConstraints.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@800568 13f79535-47bb-0310-9956-ffa450edef68
2009-08-03 21:14:43 +00:00
Michael Dick 7658c64e16 OPENJPA-1163:
Forgot new classes in previous commit (testcase and entity). 
Submitted By : Ravi Palacherla

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@800566 13f79535-47bb-0310-9956-ffa450edef68
2009-08-03 21:10:19 +00:00
Michael Dick 86ebcbe115 OPENJPA-1194:
Make waitInMsec static to prevent re-running speed test for each test method.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@800441 13f79535-47bb-0310-9956-ffa450edef68
2009-08-03 16:02:27 +00:00
Michael Dick 1f9f4d68ef OPENJPA-1220:
Set openjpa.DynamicEnhancementAgent to false for maven builds. 

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@800404 13f79535-47bb-0310-9956-ffa450edef68
2009-08-03 14:31:01 +00:00
Pinaki Poddar bde4708bac OPENJPA-1180: Parameter processing for JPA 2.0. Query now distinguishes between bound and declared parameters. Holds all bound parameters in a single data structure instead of named/positional parameters in separate maps.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799848 13f79535-47bb-0310-9956-ffa450edef68
2009-08-01 12:03:09 +00:00
Michael Dick 655ec577e9 OPENJPA-1218:
Evict subclasses automatically when called from JPA facade.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799764 13f79535-47bb-0310-9956-ffa450edef68
2009-07-31 22:54:25 +00:00
Michael Dick ff932542e8 OPENJPA-1174:
Ensure lazy hint from mapping-file is handled the same as an annotation
Submitted by: Ravi Palacherla

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799754 13f79535-47bb-0310-9956-ffa450edef68
2009-07-31 22:04:13 +00:00
Pinaki Poddar 385558d275 OPENJPA-1013: Clean up test cases. Make Path.get(String) generalized for Root/From. assert before String based navigation. Change ResultPacker. Make ParameterExpressionImpl.alias(String name) equivalent to setName().
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799520 13f79535-47bb-0310-9956-ffa450edef68
2009-07-31 05:17:19 +00:00
Pinaki Poddar 39cad98231 OPENJPA-1013: Add support for JPA 2.0 result processing. Modify kerenl's ResultPacking logic to asses impact for JPA 2.0"
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799466 13f79535-47bb-0310-9956-ffa450edef68
2009-07-30 22:42:04 +00:00
Pinaki Poddar 3ae614fc26 OPENJPA-1013: Add tests for multiselect()
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799432 13f79535-47bb-0310-9956-ffa450edef68
2009-07-30 19:56:52 +00:00
Jeremy Bauer 9706a82960 OPENJPA-1175 Updated util methods to handle load state checking of embeddables and collections.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799425 13f79535-47bb-0310-9956-ffa450edef68
2009-07-30 19:34:33 +00:00
Michael Dick b9d609a3b0 OPENJPA-1210:
Add properties for derby timeouts to pom.xml. Initially set deadlocktimeout to 5 and waitTimeout to 60 (Derby default).

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799353 13f79535-47bb-0310-9956-ffa450edef68
2009-07-30 16:30:04 +00:00
Michael Dick d91fa6a2ac OPENJPA-1211:
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799290 13f79535-47bb-0310-9956-ffa450edef68
2009-07-30 14:37:46 +00:00
Michael Dick aa72c08d44 OPENJPA-1211:
Add getPath method to FromImpl.
Remove @allowFailure annotation from passing testcases in TestStringCriteria. 

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799289 13f79535-47bb-0310-9956-ffa450edef68
2009-07-30 14:36:53 +00:00
Pinaki Poddar 8ca7664bd9 OPENJPA-1013: Support constant TRUE|FALSE literals
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799071 13f79535-47bb-0310-9956-ffa450edef68
2009-07-29 20:52:03 +00:00
Fay Wang a10a0a5d80 OPENJPA-1143: fix test case
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799061 13f79535-47bb-0310-9956-ffa450edef68
2009-07-29 20:32:42 +00:00
Pinaki Poddar 91ab01643a OPENJPA-1198: Query by example.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799018 13f79535-47bb-0310-9956-ffa450edef68
2009-07-29 19:07:56 +00:00
Pinaki Poddar 856fde5686 Move embed related test entities to its specific test
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@798994 13f79535-47bb-0310-9956-ffa450edef68
2009-07-29 18:02:34 +00:00
Donald Woods c295a07fbe OPENJPA-946 Remove Derby connectionURL from createEMF properties
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@798991 13f79535-47bb-0310-9956-ffa450edef68
2009-07-29 17:55:02 +00:00
Fay Wang ec483537da OPENJPA-1204: fix enum evaluation in EmbeddedId
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@798868 13f79535-47bb-0310-9956-ffa450edef68
2009-07-29 12:09:16 +00:00
Fay Wang 1b128ce338 OPENJPA-1143: embeddable test case and support for Criteria
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@798735 13f79535-47bb-0310-9956-ffa450edef68
2009-07-29 00:30:41 +00:00
Donald Woods 7c4cf09bca OPENJPA-1076 Handle changes in geronimo-jpa_2.0_spec Rev798659 to not wrapper all exceptions as PersistenceExceptions and allow the spec to call other providers it discovers. We'll keep the createEMF behavior of returning exceptions sometimes instead of null, until we see if the JPA2 TCK forces the issue....
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@798662 13f79535-47bb-0310-9956-ffa450edef68
2009-07-28 19:19:51 +00:00
Donald Woods 9658b657c2 OPENJPA-1076 revert accidential change to pom.xml
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@798635 13f79535-47bb-0310-9956-ffa450edef68
2009-07-28 18:17:02 +00:00
Donald Woods b7b0b15777 OPENJPA-1076 cleanup code formatting and add some comments about the current behavior of returning exceptions instead of null
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@798616 13f79535-47bb-0310-9956-ffa450edef68
2009-07-28 17:42:47 +00:00
Donald Woods a31b0ee95d OPENJPA-1076 Log current exceptions being thrown by PersistenceProviderImpl.createEMF
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@798338 13f79535-47bb-0310-9956-ffa450edef68
2009-07-28 00:03:50 +00:00
Jeremy Bauer f4d7e532e3 OPENJPA-1175 Added test for PersistenceUtil. Req's minimum of geronimo-jpa_2.0_spec-1.0-EA5-20090727.164859-7.jar. Run mvn -U <goal(s)> to pick up the latest snapshot of this dependendency.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@798243 13f79535-47bb-0310-9956-ffa450edef68
2009-07-27 18:21:27 +00:00
Michael Dick 8c9c54e652 OPENJPA-1197:
Upgrade to MySQL JDBC drvier v 5.1.6 (keep in sync with previous
releases).
	modified:   openjpa-persistence-jdbc/pom.xml

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@798204 13f79535-47bb-0310-9956-ffa450edef68
2009-07-27 16:23:18 +00:00
Jeremy Bauer 7022d018da OPENJPA-1175 Initial implementation and tests for ProviderUtil and PerisistenceUnitUtil
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@797551 13f79535-47bb-0310-9956-ffa450edef68
2009-07-24 16:27:30 +00:00
Pinaki Poddar 7099c084fb OPENJPA-1195: Datastore function for in general usage as well as JPA 2.0. CriteriaQuery Parameter indexing during registration.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@797257 13f79535-47bb-0310-9956-ffa450edef68
2009-07-23 23:01:55 +00:00
Pinaki Poddar 001c9e4fd2 OPENJPA-1180: Parameter processing for JPA 2.0. Implements Parameter in concrete. Parameter holding structure in Query has changed for Map<String|Integer,Object> to Map<String|Integer, Parameter>. Parameters themselves hold values (a doubtful decision).
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@796931 13f79535-47bb-0310-9956-ffa450edef68
2009-07-23 02:47:11 +00:00
Michael Dick 5136bbc8d3 OPENJPA-922:
Allow DB2 to use setByteArrayInputStream instead of setBytes when needed.
Submitted by : B. J. Reed

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@796907 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22 23:09:02 +00:00
Michael Dick 49f000f54a OPENJPA-1191 :
Add Tuple implementation and unit tests. Also added some basic typed result and multiselect testscases

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@796773 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22 15:47:47 +00:00
Donald Woods 1b86a81c94 OPENJPA-1190 Use Geronimo EA5 JPA spec jar. Patch only has method stubs returning null for the new methods added by EA5, like -
PersistenceUnitInfoImpl.getSharedCacheMode()
EntityManagerFactoryImpl.getPersistenceUnitUtil()
PersistenceProviderImpl.getProviderUtil()

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@796457 13f79535-47bb-0310-9956-ffa450edef68
2009-07-21 18:44:07 +00:00
Fay Wang e21a38e64b OPENJPA-1143: fix test case as the expectedSQL is generated from Derby database and the comparison between push-down sql and expectedSQL is only valid for Derby database.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@796037 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 21:57:08 +00:00
Fay Wang bda625661f OPENJPA-1143: criteria support for subquery
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@795955 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 18:58:03 +00:00
Fay Wang f74c5d7a69 OPENJPA-1185: commit subquery overhaul on behalf of Catalina
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@795934 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 17:49:36 +00:00
Fay Wang 0adf13872e OPENJPA-1143: further clean up test cases
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@795265 13f79535-47bb-0310-9956-ffa450edef68
2009-07-17 23:02:57 +00:00
Jeremy Bauer 8b98816386 OPENJPA-1176 Committing test contributed by Tim McConnell. Tests the use of PrivatePersistentProperties compatibility option with private embeddable property.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@795156 13f79535-47bb-0310-9956-ffa450edef68
2009-07-17 17:27:04 +00:00
Fay Wang c23fb9660b OPENJPA-1143: fix criteria test case errors
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@794890 13f79535-47bb-0310-9956-ffa450edef68
2009-07-16 22:24:58 +00:00
Jeremy Bauer 5cb32680a9 OPENJPA-1176 Add compatibility option to allow private persistent properties
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@794774 13f79535-47bb-0310-9956-ffa450edef68
2009-07-16 18:46:22 +00:00
Michael Dick c293165cb4 OPENJPA-1143:
Fixing eol-style for new files

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@794686 13f79535-47bb-0310-9956-ffa450edef68
2009-07-16 14:13:51 +00:00
Fay Wang 364ea73d6f OPENJPA-1143: clean up test cases
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@794524 13f79535-47bb-0310-9956-ffa450edef68
2009-07-16 04:57:15 +00:00
Donald Woods c155c9ee2f cleanup imports and add proper EMF cleanup
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@793990 13f79535-47bb-0310-9956-ffa450edef68
2009-07-14 17:41:07 +00:00
Michael Dick 0927c83f78 Added getMappings method to SingleEMFTestCase
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@793982 13f79535-47bb-0310-9956-ffa450edef68
2009-07-14 17:27:57 +00:00
Michael Dick ea71783c57 OPENJPA-1167. Updating to EA4 version of the JPA specification from Geronimo. Adding stub methods for compilation purposes. Some additional refactoring may be needed (desired).
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@792326 13f79535-47bb-0310-9956-ffa450edef68
2009-07-08 21:20:32 +00:00
Michael Dick 19d8d3f21d OPENJPA-1164. Fix stupid spelling mistake
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@792239 13f79535-47bb-0310-9956-ffa450edef68
2009-07-08 17:45:32 +00:00
Michael Dick 08bafa5ef5 OPENJPA-1164. Making sleepTime configurable for SimpleWriteBehindCallback.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@792226 13f79535-47bb-0310-9956-ffa450edef68
2009-07-08 16:47:34 +00:00
Pinaki Poddar dcaa13461e OPENJPA-703: Beef up strong/weak exclusion of cache entries. Narrow down reason for exclusion.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@791971 13f79535-47bb-0310-9956-ffa450edef68
2009-07-07 20:29:34 +00:00
Michael Dick 8597b330e5 OPENJPA-1150. Adding support for simple write-behind cache scenarios.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@791628 13f79535-47bb-0310-9956-ffa450edef68
2009-07-06 22:09:32 +00:00
Michael Dick a1a94144bd OPENJPA-1156. Refactoring test code from OPENJPA-1061 to avoid path length problems in some environments. Specifically I've removed the primitiveidentity component of the package since it was not adding any semantic meaning to the tests. Further refactoring may be needed, but this should prevent the specific problem that was reported.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@790703 13f79535-47bb-0310-9956-ffa450edef68
2009-07-02 18:40:11 +00:00
Pinaki Poddar c2afd1cefd OPENJPA-703: Expand type of queries that can be cached especially with various projection terms. Refactor testing of PreparedQueryCache.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@790676 13f79535-47bb-0310-9956-ffa450edef68
2009-07-02 16:57:17 +00:00
Milosz Tylenda 278da3816f OPENJPA-1147: Enable streaming LOB tests by renaming to start with Test
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@790666 13f79535-47bb-0310-9956-ffa450edef68
2009-07-02 16:45:36 +00:00
Milosz Tylenda 6473b9820a OPENJPA-1147: Remove isTargetPlatform calls from TestAutoIncrement, add sequence creation statement
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@790645 13f79535-47bb-0310-9956-ffa450edef68
2009-07-02 16:20:30 +00:00
Jeremy Bauer 0ce16aef5f OPENJPA-1135 Add newline to end of file
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@790152 13f79535-47bb-0310-9956-ffa450edef68
2009-07-01 12:55:48 +00:00
Jeremy Bauer 0f45f13fc2 OPENJPA-1135 Correct access type related issues with attribute overrides and multi-level parsing.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@790150 13f79535-47bb-0310-9956-ffa450edef68
2009-07-01 12:52:56 +00:00
Pinaki Poddar db2082dea4 OPENJPA-1143: Added support for construct(), as(). Metamodel excludes static fields. tests edited to compile against EA3 JPA API.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@789723 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 13:40:17 +00:00
Michael Dick 1fce44737b OPENJPA-1061 committing patch from Jody Grassel.
modified:   openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCEnhancer.java
	modified:   openjpa-kernel/src/main/java/org/apache/openjpa/meta/ClassMetaData.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/TestInheritanceWithMSCID.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/TestMappedSuperclass.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/EntityMapping.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/PrimitiveIDMappedSuperclass.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/jointable/chardiscriminator/PIdJTCDMSCEntityB.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/jointable/chardiscriminator/PIdJTCDMSCEntityD.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/jointable/chardiscriminator/PIdJTCDMSCLeafA.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/jointable/chardiscriminator/PIdJTCDMSCLeafB1.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/jointable/chardiscriminator/PIdJTCDMSCLeafB2.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/jointable/chardiscriminator/PIdJTCDMSCLeafC.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/jointable/chardiscriminator/PIdJTCDMSCLeafD1.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/jointable/chardiscriminator/PIdJTCDMSCLeafD2.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/jointable/chardiscriminator/PIdJTCDMSCMappedSuperclass.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/jointable/chardiscriminator/PIdJTCDMSCRootEntity.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/jointable/intdiscriminator/PIdJTIDMSCEntityB.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/jointable/intdiscriminator/PIdJTIDMSCEntityD.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/jointable/intdiscriminator/PIdJTIDMSCLeafA.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/jointable/intdiscriminator/PIdJTIDMSCLeafB1.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/jointable/intdiscriminator/PIdJTIDMSCLeafB2.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/jointable/intdiscriminator/PIdJTIDMSCLeafC.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/jointable/intdiscriminator/PIdJTIDMSCLeafD1.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/jointable/intdiscriminator/PIdJTIDMSCLeafD2.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/jointable/intdiscriminator/PIdJTIDMSCMappedSuperclass.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/jointable/intdiscriminator/PIdJTIDMSCRootEntity.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/jointable/stringdiscriminator/PIdJTSDMSCEntityB.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/jointable/stringdiscriminator/PIdJTSDMSCEntityD.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/jointable/stringdiscriminator/PIdJTSDMSCLeafA.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/jointable/stringdiscriminator/PIdJTSDMSCLeafB1.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/jointable/stringdiscriminator/PIdJTSDMSCLeafB2.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/jointable/stringdiscriminator/PIdJTSDMSCLeafC.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/jointable/stringdiscriminator/PIdJTSDMSCLeafD1.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/jointable/stringdiscriminator/PIdJTSDMSCLeafD2.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/jointable/stringdiscriminator/PIdJTSDMSCMappedSuperclass.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/jointable/stringdiscriminator/PIdJTSDMSCRootEntity.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/singletable/chardiscriminator/PIdSTCDMSCEntityB.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/singletable/chardiscriminator/PIdSTCDMSCEntityD.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/singletable/chardiscriminator/PIdSTCDMSCLeafA.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/singletable/chardiscriminator/PIdSTCDMSCLeafB1.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/singletable/chardiscriminator/PIdSTCDMSCLeafB2.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/singletable/chardiscriminator/PIdSTCDMSCLeafC.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/singletable/chardiscriminator/PIdSTCDMSCLeafD1.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/singletable/chardiscriminator/PIdSTCDMSCLeafD2.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/singletable/chardiscriminator/PIdSTCDMSCMappedSuperclass.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/singletable/chardiscriminator/PIdSTCDMSCRootEntity.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/singletable/intdiscriminator/PIdSTIDMSCEntityB.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/singletable/intdiscriminator/PIdSTIDMSCEntityD.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/singletable/intdiscriminator/PIdSTIDMSCLeafA.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/singletable/intdiscriminator/PIdSTIDMSCLeafB1.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/singletable/intdiscriminator/PIdSTIDMSCLeafB2.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/singletable/intdiscriminator/PIdSTIDMSCLeafC.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/singletable/intdiscriminator/PIdSTIDMSCLeafD1.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/singletable/intdiscriminator/PIdSTIDMSCLeafD2.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/singletable/intdiscriminator/PIdSTIDMSCMappedSuperclass.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/singletable/intdiscriminator/PIdSTIDMSCRootEntity.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/singletable/stringdiscriminator/PIdSTSDMSCEntityB.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/singletable/stringdiscriminator/PIdSTSDMSCEntityD.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/singletable/stringdiscriminator/PIdSTSDMSCLeafA.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/singletable/stringdiscriminator/PIdSTSDMSCLeafB1.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/singletable/stringdiscriminator/PIdSTSDMSCLeafB2.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/singletable/stringdiscriminator/PIdSTSDMSCLeafC.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/singletable/stringdiscriminator/PIdSTSDMSCLeafD1.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/singletable/stringdiscriminator/PIdSTSDMSCLeafD2.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/singletable/stringdiscriminator/PIdSTSDMSCMappedSuperclass.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/idmsc/primitiveidentity/singletable/stringdiscriminator/PIdSTSDMSCRootEntity.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/testinterfaces/EntityB.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/testinterfaces/EntityD.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/testinterfaces/LeafA.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/testinterfaces/LeafB1.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/testinterfaces/LeafB2.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/testinterfaces/LeafC.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/testinterfaces/LeafD1.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/testinterfaces/LeafD2.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/testinterfaces/MSC.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/entities/testinterfaces/RootEntity.java
	modified:   openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataParser.java
	modified:   openjpa-persistence/src/main/java/org/apache/openjpa/persistence/XMLPersistenceMetaDataParser.java

Conflicts:

	openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCEnhancer.java
	openjpa-kernel/src/main/java/org/apache/openjpa/meta/ClassMetaData.java
	openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataParser.java
	openjpa-persistence/src/main/java/org/apache/openjpa/persistence/XMLPersistenceMetaDataParser.java

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@789518 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 01:04:57 +00:00
Donald Woods 6ec1122a7e OPENJPA-1148 Build failures with 64bit Sun JDK6 on Linux due to PermGen space. Part 1 - cleanup of setting jvm arguments for surefire.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@789410 13f79535-47bb-0310-9956-ffa450edef68
2009-06-29 18:54:32 +00:00
David Ezzio 636bd5f213 OpenJPA-525: merged change 786218 from 1.1.x branch to trunk, fix for Oracle and null CLOBs.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@787868 13f79535-47bb-0310-9956-ffa450edef68
2009-06-23 23:03:42 +00:00
Pinaki Poddar ecf43f87f7 OPENJPA-1143: Build dependency to 1.0-EA3-SNAPSHOT (latest unpublished JPA Spec), refactored MetaModel/CriteriaQuery API to compile against the new JPA API, line length limit increased to 120
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@787832 13f79535-47bb-0310-9956-ffa450edef68
2009-06-23 21:04:32 +00:00
Donald Woods 4b70d52d9c OPENJPA-946 Oracle create table(s) exceptions. Updated patch and tests provided by Tim McConnell.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@787741 13f79535-47bb-0310-9956-ffa450edef68
2009-06-23 16:18:28 +00:00
Michael Dick 0e055fb013 OPENJPA-1119 committing patch from Rick Curtis.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@787359 13f79535-47bb-0310-9956-ffa450edef68
2009-06-22 19:16:19 +00:00
Michael Dick 1c4fdebe83 Temporarily disable criteria testcases per email on dev mailing list
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@787306 13f79535-47bb-0310-9956-ffa450edef68
2009-06-22 16:34:08 +00:00
Milosz Tylenda 79ad8c4943 OPENJPA-1123: Test for database-specific query hints
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@786615 13f79535-47bb-0310-9956-ffa450edef68
2009-06-19 18:33:28 +00:00
Donald Woods 6c1cc88175 OPENJPA-1117 Missing AgentClass attribute in openjpa-all-xxx.jar manifest.mf. Also included some jvm arguments from OPENJPA-1119 which were required to fix some OOM PermGen space problems with 64bit IBM 6 SDK on Windows.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@786555 13f79535-47bb-0310-9956-ffa450edef68
2009-06-19 15:43:46 +00:00
Michael Dick 7f0b0234c0 Move properties parsing in PersistenceTestCase into a separate method for reuse in subclasses.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@786309 13f79535-47bb-0310-9956-ffa450edef68
2009-06-18 21:56:56 +00:00
Pinaki Poddar 0b0fb31bce OPENJPA-1013: criteria fetch joins
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@785431 13f79535-47bb-0310-9956-ffa450edef68
2009-06-16 22:22:08 +00:00
Donald Woods 0d8b1dc074 OPENJPA-1111 Validation mode of callback should cause a PersistenceException when no provider is available. Also some config rework as suggested by Pinaki in reviewing OPENJPA-1114. This is Part 1, as the thrown PersistenceException is not marked as Fatal and contains a null description, but does have the stack.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@785366 13f79535-47bb-0310-9956-ffa450edef68
2009-06-16 20:11:45 +00:00
Pinaki Poddar d6ae199de7 OPENJPA-1013: Joins, key/value, parameters, embedded
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@785341 13f79535-47bb-0310-9956-ffa450edef68
2009-06-16 18:57:17 +00:00
Michael Dick 4c9be63dc6 OPENJPA-1133 committing patch provided by Ravi Palacherla. PostgreSQL
Dictionary will now use "false" as a placeholder instead of 0 for
columns of type BIT.
	modified:   openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/PostgresDictionary.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/meta/EntityBool.java
	new file:   openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/meta/TestBooleanValue.java

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@785268 13f79535-47bb-0310-9956-ffa450edef68
2009-06-16 15:51:15 +00:00
Jeremy Bauer 6ee7af451c OPENJPA-926 Do not validate access hierarchy when mapped superclass has no persistent attributes
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@783968 13f79535-47bb-0310-9956-ffa450edef68
2009-06-12 02:51:49 +00:00
Jeremy Bauer 62be4544b3 OPENJPA-1135 Apply overrides to deferred embeddable attributes
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@783966 13f79535-47bb-0310-9956-ffa450edef68
2009-06-12 02:40:14 +00:00
Albert Lee edb329a475 OPENJPA-891 - Fix non-versioned entity locking support and add tests.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@783633 13f79535-47bb-0310-9956-ffa450edef68
2009-06-11 05:25:25 +00:00
Albert Lee 7b06c5cfbf OPENJPA-932 - Enable test case to be Java 2 security compliance.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@783440 13f79535-47bb-0310-9956-ffa450edef68
2009-06-10 18:15:01 +00:00
Donald Woods 9c0f517f55 OPENJPA-1130 Need to include a couple more resources in the tests.jar to enable the base TestCase classes
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@783432 13f79535-47bb-0310-9956-ffa450edef68
2009-06-10 17:22:17 +00:00
Donald Woods f503abe979 OPENJPA-1130 Use maven-jar-plugin to create a o-p-j-tests.jar to share base TestCase classes across modules
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@783404 13f79535-47bb-0310-9956-ffa450edef68
2009-06-10 15:55:14 +00:00
Pinaki Poddar b961b8baa2 OPENJPA-1013: Aliasing for query nodes, single attribute join support, reorganization of test harness
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@783166 13f79535-47bb-0310-9956-ffa450edef68
2009-06-10 00:41:35 +00:00
Pinaki Poddar 6a8483460d OPENJPA-900: Remove hint key ordering for performance overhead
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@782783 13f79535-47bb-0310-9956-ffa450edef68
2009-06-08 21:05:12 +00:00
Milosz Tylenda 338d56bbf3 OPENJPA-1123: MySQL query hints support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@782362 13f79535-47bb-0310-9956-ffa450edef68
2009-06-07 10:54:59 +00:00
Milosz Tylenda ff52a40fb4 OPENJPA-1124: Make TestDateQueries and TestQueryTimeout pass regardless of system locale
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@782217 13f79535-47bb-0310-9956-ffa450edef68
2009-06-06 10:08:11 +00:00
Michael Dick 8a2210c65a OPENJPA-1083 committing patch provided by Ravi Palacherla
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@781791 13f79535-47bb-0310-9956-ffa450edef68
2009-06-04 16:45:34 +00:00
Fay Wang be8b9808f6 OPENJPA-1013: subquery support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@781621 13f79535-47bb-0310-9956-ffa450edef68
2009-06-03 23:44:58 +00:00
Donald Woods b99931efa8 fix license header location for XML validation
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@781492 13f79535-47bb-0310-9956-ffa450edef68
2009-06-03 17:54:10 +00:00
Donald Woods 549115f77c fix missing license header problems found by rat plugin during EA2 creation
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@781462 13f79535-47bb-0310-9956-ffa450edef68
2009-06-03 16:26:16 +00:00
Milosz Tylenda d875749226 OPENJPA-907: Correct TestParentChild to pass on Oracle and PostgreSQL - patch provided by Ravi Palacherla
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@781104 13f79535-47bb-0310-9956-ffa450edef68
2009-06-02 18:00:30 +00:00
Donald Woods f90952b286 OPENJPA-1102 additional validation factory tests. test scenario #4 will be addressed in OPENJPA-1111.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@780704 13f79535-47bb-0310-9956-ffa450edef68
2009-06-01 16:18:16 +00:00
Milosz Tylenda cb98d4fc33 OPENJPA-736: JDBC 3 way of retrieving generated keys - allow user to disable it, doc and test updates.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@780260 13f79535-47bb-0310-9956-ffa450edef68
2009-05-30 13:22:56 +00:00
Michael Dick 2b942805f2 OPENJPA-952. Committing patch from Rick Curtis
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@780086 13f79535-47bb-0310-9956-ffa450edef68
2009-05-29 20:06:29 +00:00
Jeremy Bauer 016d49b4c0 OPENJPA-962 Committing code and tests contributed by Dianne Richards
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@780068 13f79535-47bb-0310-9956-ffa450edef68
2009-05-29 18:54:08 +00:00
Jeremy Bauer 49596dc4e6 OPENJPA-1074 Fix for bidirectional ordered relationships. Modified order column tests to be included in compile time enhancement.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@780038 13f79535-47bb-0310-9956-ffa450edef68
2009-05-29 17:24:54 +00:00
Catalina Wei dbc271305f OPENJPA-967 add query test string for JPA2 path nagivation thru KEY appear in FROM clause
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@779833 13f79535-47bb-0310-9956-ffa450edef68
2009-05-29 04:26:29 +00:00
Michael Dick b2a8732a8b Setting eol-style
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@779699 13f79535-47bb-0310-9956-ffa450edef68
2009-05-28 17:55:10 +00:00
Donald Woods c9e74d4c7a update pom names to better match the module name and add descriptions where missing
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@779579 13f79535-47bb-0310-9956-ffa450edef68
2009-05-28 12:10:45 +00:00
Donald Woods 85bc7a5e80 OPENJPA-1102 Support application/container provided ValidatorFactory
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@779554 13f79535-47bb-0310-9956-ffa450edef68
2009-05-28 10:43:55 +00:00
Michael Dick c1b842d492 OPENJPA-1026. Committing patch from B.J. Reed and enabling newline check.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@779416 13f79535-47bb-0310-9956-ffa450edef68
2009-05-28 02:50:00 +00:00
Michael Dick 3464d8e9b8 OPENJPA-1015. Enforce column width for testcases
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@779361 13f79535-47bb-0310-9956-ffa450edef68
2009-05-28 00:22:33 +00:00
Fay Wang fcebb24e61 OPENJPA-1013: clean up test cases
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@779297 13f79535-47bb-0310-9956-ffa450edef68
2009-05-27 20:19:42 +00:00
Michael Dick b3ab297d62 OPENJPA-1092. Enable TestEJBQueryInterface
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@778867 13f79535-47bb-0310-9956-ffa450edef68
2009-05-26 20:08:29 +00:00
Jeremy Bauer 5b53615609 OPENJPA-926 Modify XML-based explicit access tests to use build-time enhancement
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@778831 13f79535-47bb-0310-9956-ffa450edef68
2009-05-26 18:29:29 +00:00
Donald Woods 137d0883bd remove duplicate artifact versions that are provided by the parent pom
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@778738 13f79535-47bb-0310-9956-ffa450edef68
2009-05-26 15:12:57 +00:00
Catalina Wei b1e8eec3ce OPENJPA-1098 JPA2 Query support for subselect_identification_variable
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@778540 13f79535-47bb-0310-9956-ffa450edef68
2009-05-26 00:05:36 +00:00
Albert Lee 24c1e49edd OPENJPA-1090 - Commit contribution by Tim McConnell.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@778055 13f79535-47bb-0310-9956-ffa450edef68
2009-05-23 22:50:37 +00:00
Albert Lee 3f28f44d3a OPENJPA-946 - Commit contribution by Tim McConnell.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@777649 13f79535-47bb-0310-9956-ffa450edef68
2009-05-22 18:32:26 +00:00
Fay Wang 9638a84e37 OPENJPA-1013: more test cases
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@777646 13f79535-47bb-0310-9956-ffa450edef68
2009-05-22 18:25:52 +00:00
Albert Lee 0a05d8023a OPENJPA-891 - Eliminate tests of compatible lock mode type.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@777558 13f79535-47bb-0310-9956-ffa450edef68
2009-05-22 15:02:43 +00:00
Albert Lee 26b83c8300 OPENJPA-891 - Eliminate tests of compatible lock mode type.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@777549 13f79535-47bb-0310-9956-ffa450edef68
2009-05-22 14:40:22 +00:00
David Ezzio a224644c4c OpenJPA-1099: Replaced <xmp> tag with <pre> tag in Javadoc comments.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@777539 13f79535-47bb-0310-9956-ffa450edef68
2009-05-22 14:16:23 +00:00
Michael Dick 291e27eba9 OPENJPA-1015. Committing patch provided by BJ Reed. Additional testcases have been added which do not conform - I've updated some of them but some still exist so validation is not enabled by default
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@777135 13f79535-47bb-0310-9956-ffa450edef68
2009-05-21 14:39:31 +00:00
Pinaki Poddar 70f55bdee8 OPENJPA-1013: Joins, MetaModel validation, Array type
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@776951 13f79535-47bb-0310-9956-ffa450edef68
2009-05-21 05:05:39 +00:00
Fay Wang 768cd337b0 OPENJPA-1069: support of @OrderBy("DESC") on ElementCollection containing basic type
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@776878 13f79535-47bb-0310-9956-ffa450edef68
2009-05-20 21:59:24 +00:00
Fay Wang f91a31dae4 OPENJPA-1013: OrderBy support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@776551 13f79535-47bb-0310-9956-ffa450edef68
2009-05-20 05:09:38 +00:00
Fay Wang 9ef9654a99 OPENJPA-1013: non-default escape character support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@776495 13f79535-47bb-0310-9956-ffa450edef68
2009-05-19 23:30:12 +00:00
Fay Wang 598c25f2b9 OPENJPA-1013: NOT IN/ IS (NOT) NULL/LIKE support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@776435 13f79535-47bb-0310-9956-ffa450edef68
2009-05-19 20:04:10 +00:00
Michael Dick 175554580d OPENJPA-918. Committing testcases based on patch provided by B.J. Reed
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@776411 13f79535-47bb-0310-9956-ffa450edef68
2009-05-19 18:51:21 +00:00
Fay Wang e4488c4034 OPENJPA-1013: constructor test case
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@776205 13f79535-47bb-0310-9956-ffa450edef68
2009-05-19 06:46:59 +00:00
Catalina Wei 2ce5299a73 OPENJPA-1094 JPA2 Query support KEY to appear in subquery
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@776117 13f79535-47bb-0310-9956-ffa450edef68
2009-05-18 22:23:04 +00:00
Donald Woods c7a2b9252c OPENJPA-1077 fix invalid attributes, which caused validation failure only on IBM SDK
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@776000 13f79535-47bb-0310-9956-ffa450edef68
2009-05-18 16:06:42 +00:00
Fay Wang 76764564b1 OPENJPA-1013: parameter support for Criteria Query
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@775997 13f79535-47bb-0310-9956-ffa450edef68
2009-05-18 15:56:35 +00:00
Pinaki Poddar 7b581bf651 OPENJPA-703: ORDER BY queries are cachable
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@775924 13f79535-47bb-0310-9956-ffa450edef68
2009-05-18 12:46:53 +00:00
Fay Wang 78f0f54dc3 OPENJPA-1013: add more test scenarios for parameter settting in Criteria Query
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@775367 13f79535-47bb-0310-9956-ffa450edef68
2009-05-15 22:08:32 +00:00
Fay Wang a5f85ac7f8 OPENJPA-1013: TYPE expression support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@775306 13f79535-47bb-0310-9956-ffa450edef68
2009-05-15 20:05:48 +00:00
Donald Woods 63c9be2716 OPENJPA-247 Add testcase showing new-delete-new-find issue has been fixed. Patch from: BJ Reed
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@775295 13f79535-47bb-0310-9956-ffa450edef68
2009-05-15 19:27:41 +00:00
Donald Woods 20fb414d02 OPENJPA-1077 fix validation failure on IBM SDK
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@775140 13f79535-47bb-0310-9956-ffa450edef68
2009-05-15 14:06:28 +00:00
Fay Wang 2203aedf46 OPENJPA-1013: MEMBER OF support for criteria query
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@775009 13f79535-47bb-0310-9956-ffa450edef68
2009-05-15 05:27:38 +00:00
Fay Wang 9d30d4819e OPENJPA-1013: IS EMPTY/SIZE() support for criteria query
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@774955 13f79535-47bb-0310-9956-ffa450edef68
2009-05-14 22:52:03 +00:00
Fay Wang f029f2de85 OPENJPA-1013: groupBy/Having support for Criteria query
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@774954 13f79535-47bb-0310-9956-ffa450edef68
2009-05-14 22:29:59 +00:00
Donald Woods cb115bcd16 OPENJPA-1077 Validation-mode element support added to persistence.xml and to createEMF properties Map
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@774930 13f79535-47bb-0310-9956-ffa450edef68
2009-05-14 21:14:45 +00:00
Catalina Wei d7ddfb1055 OPENJPA-1064 JPA2 Query no support for embeddable of element collection in predicate and subquery
JPA2 spec (section 4.12) does not support comparisons over embeddable class.


git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@774928 13f79535-47bb-0310-9956-ffa450edef68
2009-05-14 21:08:27 +00:00
Fay Wang 0b37738fb8 OPENJPA-1013: case/simple case expression test case
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@774862 13f79535-47bb-0310-9956-ffa450edef68
2009-05-14 18:23:18 +00:00
Jeremy Bauer e1ccb46414 OPENJPA-962 Committing code and tests contributed by Dianne Richards
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@774860 13f79535-47bb-0310-9956-ffa450edef68
2009-05-14 18:19:34 +00:00
Jeremy Bauer 90ef23a4a9 OPENJPA-926 Add annotation support for embeddables and correct Transient issue
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@774177 13f79535-47bb-0310-9956-ffa450edef68
2009-05-13 03:04:58 +00:00
Catalina Wei f221b1fa85 OPENJPA-1064 JPA2 Query add support for embeddable of element collection in predicate and subquery
- Add test strings for any, some, member of predicates
- Fix a bug in parameter processing of embeddable object

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@773776 13f79535-47bb-0310-9956-ffa450edef68
2009-05-12 04:12:27 +00:00
Jeremy Bauer 1f37b7725c OPENJPA-926 Tests and code updates for explicit access types
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@773704 13f79535-47bb-0310-9956-ffa450edef68
2009-05-11 21:59:15 +00:00
Donald Woods 19bfc4139a OPENJPA-1071 Derby test suit speed-up
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@773600 13f79535-47bb-0310-9956-ffa450edef68
2009-05-11 15:20:36 +00:00
Catalina Wei 4606fffc37 OPENJPA-703 PreparedQuery detecting query cache-ability
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@773404 13f79535-47bb-0310-9956-ffa450edef68
2009-05-10 21:11:36 +00:00
Fay Wang 02a2830e2f OPENJPA-1013: fix compiler error in test cases
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@773367 13f79535-47bb-0310-9956-ffa450edef68
2009-05-10 17:06:34 +00:00
Fay Wang c0bf7e40d6 OPENJPA-1013: check in strictly-typed criteria test cases.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@773314 13f79535-47bb-0310-9956-ffa450edef68
2009-05-10 08:25:24 +00:00
Albert Lee f6f99775bf OPENJPA-891 Fine tune test case to optimize runtime duration.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@773149 13f79535-47bb-0310-9956-ffa450edef68
2009-05-09 01:20:22 +00:00
Jeremy Bauer 3eff16e07a OPENJPA-1074 Maintain contiguous index for collection element removal
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@773070 13f79535-47bb-0310-9956-ffa450edef68
2009-05-08 19:53:16 +00:00
Fay Wang 3182ed978e OPENJPA-1072: set up foreign key relationship for the relation within an embeddable in an element collection.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@772874 13f79535-47bb-0310-9956-ffa450edef68
2009-05-08 07:48:08 +00:00
Pinaki Poddar 9a8246799c OPENJPA-1010: MetaDataRespository knows about meta-class. The naming and support for meta-class added to MetaDataFactory. Implemented in PersistenceMetaDataFactory. AnnotationProcessor6 aligned with this naming policy interface.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@772820 13f79535-47bb-0310-9956-ffa450edef68
2009-05-07 23:57:04 +00:00
Pinaki Poddar 240348ba69 Table name not allowed for flat inheritance mapping
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@772689 13f79535-47bb-0310-9956-ffa450edef68
2009-05-07 16:02:07 +00:00
Pinaki Poddar 46c0110bef Table name not allowed for flat inheritance mapping
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@772679 13f79535-47bb-0310-9956-ffa450edef68
2009-05-07 15:30:52 +00:00
Pinaki Poddar 03c2cce7f5 OPENJPA-1010: Omit @GeneratedValue annotation if target is lower than JDK6
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@772663 13f79535-47bb-0310-9956-ffa450edef68
2009-05-07 14:36:13 +00:00
Fay Wang 75dfd10c59 OPENJPA-1069: orderBy on ElementCollection of basic types
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@772528 13f79535-47bb-0310-9956-ffa450edef68
2009-05-07 07:16:31 +00:00
Pinaki Poddar 6759d41517 Metamodel testing classes
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@772474 13f79535-47bb-0310-9956-ffa450edef68
2009-05-07 00:19:20 +00:00
Pinaki Poddar 89182580bb OPENJPA-1013,OPENJPA-1014: Support In() and IsNull()
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@772058 13f79535-47bb-0310-9956-ffa450edef68
2009-05-06 05:39:17 +00:00
Catalina Wei ed82fda48c OPENJPA-1064 JPA2 Query add support for embeddable of element collection in predicate and subquery
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@772015 13f79535-47bb-0310-9956-ffa450edef68
2009-05-06 00:03:09 +00:00
Pinaki Poddar 0392538775 OPENJPA-1013,OPENJPA-1014: Type-strict Criteria API (skeletal) implementation as per JPA 2.0.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@771948 13f79535-47bb-0310-9956-ffa450edef68
2009-05-05 18:03:31 +00:00
Jeremy Bauer 22a5143d1f OPENJPA-869 Fix nondeterministic ordering issue with OrderColumn test
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@771722 13f79535-47bb-0310-9956-ffa450edef68
2009-05-05 13:42:23 +00:00
Michael Dick 2c2e78149d OPENJPA-1045. L2 cache included / excluded types may be specified via configuration properties
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@770729 13f79535-47bb-0310-9956-ffa450edef68
2009-05-01 15:47:33 +00:00
Pinaki Poddar 861db8ddd0 OPENJPA-1049: Register type alias for MappedSuperclass.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@770516 13f79535-47bb-0310-9956-ffa450edef68
2009-05-01 02:22:35 +00:00
Fay Wang f9fd4837b3 OPENJPA-1055: add MapKeyTemporal and MapKeyEnumerated support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@770400 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 19:07:18 +00:00
Jeremy Bauer 02846623a8 OPENJPA-964 Committing contributions provided by Donald Woods
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@770297 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 15:50:53 +00:00
Fay Wang 1677b481b2 OPENJPA-1053: fix update by setting an embeddable which contains a cascade delete relation with another entity.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@769879 13f79535-47bb-0310-9956-ffa450edef68
2009-04-29 19:08:11 +00:00
Pinaki Poddar 8f182fc261 OPENJPA-1008: Test cases for JPA 2.0 metamodel generation and population
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@769549 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 21:21:52 +00:00
David Ezzio 09859699f9 OpenJPA-1002: fixed select range for Oracle drivers, patch submitted by Amy Yang and Ravi Palacherla
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@769505 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 19:14:40 +00:00
Pinaki Poddar d86b15e30d EXclude JDK6 dependent source and test
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@769497 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 18:51:46 +00:00
Pinaki Poddar 7adb7932e8 OPENJPA-1008: Facade OpenJPA metamodel to JPA 2.0
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@769478 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 17:50:25 +00:00
Pinaki Poddar 29a5f7acd2 OPENJPA-1050: Use parameterized type whenever applicable
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@768588 13f79535-47bb-0310-9956-ffa450edef68
2009-04-25 19:29:07 +00:00
Pinaki Poddar a868ae3435 OPENJPA-926,OPENJPA-1050: handling corner cases of access type. moving uniformaly to access code. adding type parameters.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@768498 13f79535-47bb-0310-9956-ffa450edef68
2009-04-25 09:11:11 +00:00
Pinaki Poddar 0ffbce338f OPENJPA-926: entity without any property can have unknown access type.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@768428 13f79535-47bb-0310-9956-ffa450edef68
2009-04-24 22:24:45 +00:00
Pinaki Poddar 2c7432cccd OPENJPA-703: Set original query string for prepared query
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@768395 13f79535-47bb-0310-9956-ffa450edef68
2009-04-24 18:49:46 +00:00
Pinaki Poddar 178f0a180a OPENJPA-926: Support explicit access types
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@767973 13f79535-47bb-0310-9956-ffa450edef68
2009-04-23 16:55:45 +00:00
Fay Wang 0e30a59b08 OPENJPA-1024: clean up test cases
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@767246 13f79535-47bb-0310-9956-ffa450edef68
2009-04-21 18:23:07 +00:00
Catalina Wei f3b437ab76 1035 JPA2 Query allow embeddable as orderby item
add more test strings for IS NULL and IS EMPTY predicates with path navigation thru key path or embeddable

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@767084 13f79535-47bb-0310-9956-ffa450edef68
2009-04-21 09:21:02 +00:00
Fay Wang 282b8770cd OPENJPA-1024: clean up test case
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@766845 13f79535-47bb-0310-9956-ffa450edef68
2009-04-20 20:13:55 +00:00
Catalina Wei 32fd2a52d1 1035 JPA2 Query fix setParameter for key path in predicates
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@766576 13f79535-47bb-0310-9956-ffa450edef68
2009-04-20 05:21:40 +00:00
Fay Wang 8bbf149781 OPENJPA-1024: subquery support of nullif and coalesce for enum literals
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@766204 13f79535-47bb-0310-9956-ffa450edef68
2009-04-18 02:54:35 +00:00
David Ezzio e4b87fd6b3 Fix for OpenJPA-1002, patch submitted by Ravi Palacherla
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@765801 13f79535-47bb-0310-9956-ffa450edef68
2009-04-16 23:27:02 +00:00
Fay Wang 0daf1bffc8 OPENJPA-1041: allow orderBy on nested embeddables
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@765800 13f79535-47bb-0310-9956-ffa450edef68
2009-04-16 23:24:07 +00:00
Fay Wang b2f74fcbd5 OPENJPA-1024: clean up test cases
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@765742 13f79535-47bb-0310-9956-ffa450edef68
2009-04-16 20:11:03 +00:00
Fay Wang 5681d06afe OPENJPA-1024: clean up testcases
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@765716 13f79535-47bb-0310-9956-ffa450edef68
2009-04-16 18:42:05 +00:00
Catalina Wei 5239148763 1035 JPA2 Query map key path in predicates
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@765469 13f79535-47bb-0310-9956-ffa450edef68
2009-04-16 05:34:49 +00:00
Pinaki Poddar 21b41a50fe OPENJPA-1039: treat AND OR operators as non-associative
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@765085 13f79535-47bb-0310-9956-ffa450edef68
2009-04-15 08:34:45 +00:00
Catalina Wei affdc073d0 OPENJPA-1035 JPA2 Query allow map key/value path to appear as argument to scalar functions
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@765064 13f79535-47bb-0310-9956-ffa450edef68
2009-04-15 06:18:17 +00:00
Pinaki Poddar e55f36f813 OPENJPA-1010: Tests for Canonical Metamodel Generator from annotated source code.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@765031 13f79535-47bb-0310-9956-ffa450edef68
2009-04-15 01:48:06 +00:00
Fay Wang 0398c0e7dd OPENJPA-1024: support case expression in subquery
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@764779 13f79535-47bb-0310-9956-ffa450edef68
2009-04-14 13:53:41 +00:00
Catalina Wei f758a191ee OPENJPA-1035 JPA2 Query allow map key/value path to appear as argument to scalar functions
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@764668 13f79535-47bb-0310-9956-ffa450edef68
2009-04-14 04:09:05 +00:00
Catalina Wei 8c31381f18 OPENJPA-1021 allow MapKey on relation field
- add JPA2 Query support for MapKey on relation field
- remove @AllowFailure in test cases

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@764218 13f79535-47bb-0310-9956-ffa450edef68
2009-04-11 16:47:15 +00:00
Fay Wang d00cf9d468 OPENJPA-1024: support enum literal in case expression
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@764094 13f79535-47bb-0310-9956-ffa450edef68
2009-04-10 22:57:00 +00:00
Jeremy Bauer 69d01f2813 OPENJPA-1034 Remove OrderColumn attributes and corresponding tests
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@764041 13f79535-47bb-0310-9956-ffa450edef68
2009-04-10 20:38:28 +00:00
Fay Wang 16c8b6d2dc OPENJPA-1024: add enum literal support for case expression
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@763860 13f79535-47bb-0310-9956-ffa450edef68
2009-04-10 02:51:31 +00:00
Michael Dick 3b2585f39b OPENJPA-1028 OPENJPA-1021 fix eol style for new classes
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@763677 13f79535-47bb-0310-9956-ffa450edef68
2009-04-09 15:07:33 +00:00
Catalina Wei be8731aafa OPENJPA-967 JPA2 Query support for MapKey fixes
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@763516 13f79535-47bb-0310-9956-ffa450edef68
2009-04-09 05:11:20 +00:00
Fay Wang 2901ea6e52 OPENJPA-1028: fixed setMappedByValue when embeddable is involved.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@763427 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 22:06:56 +00:00
Fay Wang e4ec2cf90d OPENJPA-1021: fix test case problem
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@763301 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 16:13:09 +00:00
Fay Wang da5c1da5c6 OPENJPA-1021: fix test cases
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@763295 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 15:58:19 +00:00
Fay Wang 5580dd3ea6 OPENJPA-1021: allow MapKey on relation fields
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@763284 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 15:39:54 +00:00
Pinaki Poddar 96cb35ffa3 OPENJPA-1024: Scalar expression in SubQuery requires subquery expression be enclosed in parentheses
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@763149 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 09:06:11 +00:00
Fay Wang d0cb71dd59 OPENJPA-1021: support MapKey annotation on relation fields
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@763015 13f79535-47bb-0310-9956-ffa450edef68
2009-04-07 22:32:36 +00:00
Catalina Wei 05ebf66372 OPENJPA-1024 JPA2 support scalar expressions in subquery
add test strings

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@762871 13f79535-47bb-0310-9956-ffa450edef68
2009-04-07 17:51:36 +00:00
Catalina Wei df18282acd OPENJPA-1024 JPA2 support scalar expressions in subquery
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@762854 13f79535-47bb-0310-9956-ffa450edef68
2009-04-07 17:06:19 +00:00
Michael Dick b5d5ea2734 OPENJPA-1023. set svn:eol on .properties
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@762563 13f79535-47bb-0310-9956-ffa450edef68
2009-04-06 23:28:17 +00:00
Albert Lee 4386138356 OPENJPA-1022 - correct test case to properly handle notify/wait testing protocol between multi-threads test scenario. This fix corrects some timing related failures.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@762559 13f79535-47bb-0310-9956-ffa450edef68
2009-04-06 22:59:21 +00:00
Albert Lee bdce39ae28 OPENJPA-1022 - Ensure LockMode READ/OPTIMISTIC & WRITE/OPTIMISTIC_FORCE_INCREMENT are distinct in type but semantics equivalent.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@762409 13f79535-47bb-0310-9956-ffa450edef68
2009-04-06 16:30:24 +00:00
Albert Lee 718370e1ef OPENJPA-957 - Create Fetch*HintHandler(s) for property processing in EntityManager/Query interface methods.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@762161 13f79535-47bb-0310-9956-ffa450edef68
2009-04-05 21:29:42 +00:00
Catalina Wei 5e820a36c9 OPENJPA-967 JPA2 Query embeddable MapKey rework
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@761851 13f79535-47bb-0310-9956-ffa450edef68
2009-04-04 01:10:30 +00:00
Michael Dick b6e661e24a OPENJPA-1015 fix line wrapping in source files. Based on patch contributed by B.J. Reed. Updates made to do enforce line wrapping during the process-sources phase of the build.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@761509 13f79535-47bb-0310-9956-ffa450edef68
2009-04-03 03:09:53 +00:00
Fay Wang f21f7b5ae5 OPENJPA-1004: fix problems with IdClass which has a derived identity and the relation corresponding to the derived identity uses generatedKey
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@761326 13f79535-47bb-0310-9956-ffa450edef68
2009-04-02 15:38:34 +00:00
Catalina Wei 33ed6bfb7f JPA2 Query support for embeddables; nested embeddables; relationships from embeddables
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@761031 13f79535-47bb-0310-9956-ffa450edef68
2009-04-01 19:53:54 +00:00
Michael Dick 80be256e13 OPENJPA-975 committing patch from B.J. Reed
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@760914 13f79535-47bb-0310-9956-ffa450edef68
2009-04-01 15:15:42 +00:00
Jeremy Bauer a5e3bdd592 OPENJPA-990 Committing code and test updates contributed by Donald Woods
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@760056 13f79535-47bb-0310-9956-ffa450edef68
2009-03-30 17:21:57 +00:00
Milosz Tylenda 7f5471bae7 git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@759470 13f79535-47bb-0310-9956-ffa450edef68 2009-03-28 14:38:49 +00:00
Jeremy Bauer f8bb2a83e6 OPENJPA-773 Updates for 03/13/2009 JSR-317 public draft.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@759348 13f79535-47bb-0310-9956-ffa450edef68
2009-03-27 20:58:10 +00:00
Catalina Wei ad0c7db14c OPENJPA-961 JPA2 Query support for element collection
add support for element collection within embeddable object

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@759330 13f79535-47bb-0310-9956-ffa450edef68
2009-03-27 20:18:39 +00:00
Catalina Wei c7fabe7ff7 OPENJPA-956 JPA2 Query support ElementCollection in FROM clause
add query test strings

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@758906 13f79535-47bb-0310-9956-ffa450edef68
2009-03-26 22:45:39 +00:00
Catalina Wei 7e6ca9043e OPENJPA-956 support elementCollection in FROM clause
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@758868 13f79535-47bb-0310-9956-ffa450edef68
2009-03-26 21:36:08 +00:00
Pinaki Poddar 32796f751b OPENJPA-5: Upgrade to JDK6
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@758490 13f79535-47bb-0310-9956-ffa450edef68
2009-03-26 01:01:39 +00:00
Jeremy Bauer a4124b4743 OPENJPA-885 Committing additional detach tests contributed by Dianne Richards
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@758442 13f79535-47bb-0310-9956-ffa450edef68
2009-03-25 21:43:57 +00:00
Fay Wang f48b254eba OPENJPA-967: Qualified Identifier in-memory query test cases
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@757670 13f79535-47bb-0310-9956-ffa450edef68
2009-03-24 05:55:13 +00:00
Michael Dick b546423063 OPENJPA-896. Setting eol-style:native and removing windows eol characters from XML files.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@757388 13f79535-47bb-0310-9956-ffa450edef68
2009-03-23 12:42:41 +00:00
Michael Dick 90b84c5d73 OPENJPA-896. Setting eol-style:native and removing windows eol characters from source files.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@757278 13f79535-47bb-0310-9956-ffa450edef68
2009-03-22 23:37:24 +00:00
Pinaki Poddar c3175eea3c OPENJPA-995: Refactor OpenJPA Criteria query implementation as 'dynamic query' extension.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@756730 13f79535-47bb-0310-9956-ffa450edef68
2009-03-20 19:47:26 +00:00
Fay Wang 9e683c7612 OPENJPA-963: commit patch provided by Donald Woods
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@756193 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19 20:54:28 +00:00
Albert Lee 1d92b9a5c0 OPENJPA-991 - disable TestException.testThrowsOptimisticException() until this issue is addressed. This will avoid the test hang condition and allow other tests to proceed, when run in DB2.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@756180 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19 20:34:28 +00:00
Catalina Wei ed0f74a34b OPENJPA-967 add query test strings for JPA2 path nagivation thru KEY appear in FROM, WHERE, and ORDER BY clause
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@756151 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19 19:36:46 +00:00
Catalina Wei 6f253f050b OPENJPA-967 JPA2 add support for collection valued path thru KEY appear in FROM clause
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@756104 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19 17:33:03 +00:00
Jeremy Bauer bb1bc8a39d OPENJPA-878 Committing code and test updates contributed by Donald Woods.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@755818 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19 02:54:29 +00:00
Jeremy Bauer 2edc92d97f OPENJPA-972 Committing code doc update and tests contributed by Donald Woods.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@755615 13f79535-47bb-0310-9956-ffa450edef68
2009-03-18 15:18:44 +00:00
Michael Dick 1d94611932 OPENJPA-947. Reduce testcase logging
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@755580 13f79535-47bb-0310-9956-ffa450edef68
2009-03-18 12:37:31 +00:00
Jeremy Bauer 65a8219817 OPENJPA-885 Committing code and tests contributed by Dianne Richards.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@755468 13f79535-47bb-0310-9956-ffa450edef68
2009-03-18 04:01:04 +00:00
Jeremy Bauer cb271bfa1d OPENJPA-878 Committing code, tests, and documentation updates for Donald Woods.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@755115 13f79535-47bb-0310-9956-ffa450edef68
2009-03-17 04:40:23 +00:00
Catalina Wei 7c9ef84fb9 OPENJPA-967 JPA2 JPQL allow KEY(e) of basic types appear in conditional expression
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@755102 13f79535-47bb-0310-9956-ffa450edef68
2009-03-17 03:13:10 +00:00
Catalina Wei 29a2d30a8a OPENJPA-967 JPA2 support qualified path
add support for ORDER BY & GROUP BY a path thru KEY navigation

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@754961 13f79535-47bb-0310-9956-ffa450edef68
2009-03-16 17:16:39 +00:00
Fay Wang 2860368801 OPENJPA-978: make the third argument in substring function
optional.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@753596 13f79535-47bb-0310-9956-ffa450edef68
2009-03-14 03:28:14 +00:00
Catalina Wei d8da810820 OPENJPA-967 JPA2 Query support for selection of state field thru KEY navigation
Sample JPQL: select KEY(e).name from Dept d join d.emps e

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@753473 13f79535-47bb-0310-9956-ffa450edef68
2009-03-13 23:20:45 +00:00
Albert Lee 0e7c84ef81 OPENJPA-866 - Commit contributions by Tim McConnell.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@753024 13f79535-47bb-0310-9956-ffa450edef68
2009-03-12 21:31:11 +00:00
Pinaki Poddar c8c43e4065 Add no-args constructor such that runtime enhancer can use
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@752930 13f79535-47bb-0310-9956-ffa450edef68
2009-03-12 16:50:21 +00:00
Albert Lee c5a3a56b48 OPENJPA-905 - Commit contribution by Tim McConnell.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@752912 13f79535-47bb-0310-9956-ffa450edef68
2009-03-12 16:00:42 +00:00
Pinaki Poddar 393111b875 OPENJPA-857: PersistenceProductDerivation sets Compatibility according to current specification. Allow multiple specifications to coexist.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@752557 13f79535-47bb-0310-9956-ffa450edef68
2009-03-11 18:38:35 +00:00
Albert Lee 6e6cb3786c OPENJPA-891 - Complete new LockModeType supports in EntityManager. Manual updated. Build and TCK passed. Code reviewed by Pinaki P. and Mike D.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@752306 13f79535-47bb-0310-9956-ffa450edef68
2009-03-10 23:41:03 +00:00
Pinaki Poddar 4506244327 OPENJPA-958,959: timeout on query
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@752005 13f79535-47bb-0310-9956-ffa450edef68
2009-03-10 07:22:23 +00:00
Pinaki Poddar a1917d1378 OPENJPA-968: Change default detach to be in-place rather than copy to align with JPA 2.0
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@751910 13f79535-47bb-0310-9956-ffa450edef68
2009-03-09 23:27:50 +00:00
Michael Dick ca9d49a5f4 Fix formatting for procedureList classes
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@751790 13f79535-47bb-0310-9956-ffa450edef68
2009-03-09 18:55:33 +00:00
Catalina Wei de5e6c9ba9 OPENJPA-967 JPA2 Query support for selection of KEY, VALUE, ENTRY of a Map value
more test scenarios for Map having @MapKeyClass or @MapKeyJoinColumn annotations

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@751766 13f79535-47bb-0310-9956-ffa450edef68
2009-03-09 17:08:34 +00:00
Pinaki Poddar cae33419ae OPENJPA-955: test+documentation on MethodQL. Allow candidate class be optional on MethodQL. Do not cache MethodQLQuery.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@750798 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 07:50:54 +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
Catalina Wei 30ee661fdc OPENJPA-879 JPA2 Query support for selecting KEY, ENTRY and VALUE of a Map value
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@750517 13f79535-47bb-0310-9956-ffa450edef68
2009-03-05 17:30:20 +00:00
Fay Wang dff6bf561b OPENJPA-937: AssociationOverrides support when applied to
MappedSuperclass.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@750469 13f79535-47bb-0310-9956-ffa450edef68
2009-03-05 14:51:53 +00:00
Fay Wang 2f3ef42f4f OPENJPA-937: back off test case. Will check it in later.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@750225 13f79535-47bb-0310-9956-ffa450edef68
2009-03-04 23:26:51 +00:00
Fay Wang 0098cc1e25 OPENJPA-937: AssociationOverrides support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@750122 13f79535-47bb-0310-9956-ffa450edef68
2009-03-04 19:42:51 +00:00
Jeremy Bauer b611d3f34e OPENJPA-927 Committing code contributed by Dianne Richards
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@750113 13f79535-47bb-0310-9956-ffa450edef68
2009-03-04 19:23:40 +00:00
Albert Lee 8bf4da08ff OPENJPA-891 - correct tests failure due to CPU speed sensitive wait between threads interaction.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@749497 13f79535-47bb-0310-9956-ffa450edef68
2009-03-03 00:38:28 +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 781c837812 OPENJPA-903 - Commit contribution submitted by Tim McConnell. [Ref: http://archives.postgresql.org/pgsql-jdbc/2008-01/msg00089.php]
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@749423 13f79535-47bb-0310-9956-ffa450edef68
2009-03-02 19:32:14 +00:00
Albert Lee a95c0f0f89 OPENJPA-891 - Fix problematic thread test case synchronization problem.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@749135 13f79535-47bb-0310-9956-ffa450edef68
2009-03-01 22:15:02 +00:00
Michael Dick f3d1704863 OPENJPA-213. Scale and precision specified for doubles upgrade column type to NUMERIC.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@749090 13f79535-47bb-0310-9956-ffa450edef68
2009-03-01 20:38:21 +00:00
Fay Wang b811a6c43b OPENJPA-931: IdClass support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@748349 13f79535-47bb-0310-9956-ffa450edef68
2009-02-26 23:35:54 +00:00
Fay Wang d22fc6ab7c OPENJPA-930: fix test case error caused by
TestAttrOverridesXml

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@748296 13f79535-47bb-0310-9956-ffa450edef68
2009-02-26 20:51:51 +00:00
Albert Lee bcfb4e9c83 Remove @Allowfailure in lock manager tests after FinderCache fix.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@748276 13f79535-47bb-0310-9956-ffa450edef68
2009-02-26 19:27:19 +00:00
Pinaki Poddar a9c858b39a OPENJPA-766: Allow an explanatory message for @AllowFailure tests
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@748185 13f79535-47bb-0310-9956-ffa450edef68
2009-02-26 15:47:00 +00:00
Pinaki Poddar f5cc8d8b9c OPENJPA-942: Allow Tests to specify target database platform
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@747969 13f79535-47bb-0310-9956-ffa450edef68
2009-02-25 23:42:44 +00:00
Jeremy Bauer 909c838138 OPENJPA-934 Fixed bugs in test code and added instructions to run in an Oracle environment.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@747496 13f79535-47bb-0310-9956-ffa450edef68
2009-02-24 18:52:16 +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
Fay Wang 62c76e42ea OPENJPA-930: orm xml support for AttributeOverride
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@747239 13f79535-47bb-0310-9956-ffa450edef68
2009-02-24 00:39:48 +00:00
Pinaki Poddar 9d7360cb35 OPENJPA-935: Detect table for embedded PC to avoid extra select before delete.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@746640 13f79535-47bb-0310-9956-ffa450edef68
2009-02-22 05:52:06 +00:00
Fay Wang e2fef6a276 OPENJPA-930: AttributeOverride support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@746630 13f79535-47bb-0310-9956-ffa450edef68
2009-02-22 04:11:32 +00:00
Fay Wang f72b68bfbb OPENJPA-931: nested embeddedId/MappedById support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@746446 13f79535-47bb-0310-9956-ffa450edef68
2009-02-21 07:29:40 +00:00
Pinaki Poddar cfd133447f OPENJPA-924: Set JDBC query parameters with type information
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@746060 13f79535-47bb-0310-9956-ffa450edef68
2009-02-19 23:58:42 +00:00
Fay Wang 47c15ce621 OPENJPA-871: fix test case problem
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@746043 13f79535-47bb-0310-9956-ffa450edef68
2009-02-19 22:52:30 +00:00
Fay Wang 40ec58ce0d OPENJPA-871: check in test case for multiple MappedById
annotations with generated key

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@745945 13f79535-47bb-0310-9956-ffa450edef68
2009-02-19 17:48:28 +00:00
Albert Lee 679989fd16 OPENJPA-466 - Commit patch contributed by Tim McConnell.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@745737 13f79535-47bb-0310-9956-ffa450edef68
2009-02-19 05:34:30 +00:00
Catalina Wei 1a407b6d68 OPENJPA-906 fix testcase TestEntityTypeExpression
committing patch from Tim McConnell

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@745706 13f79535-47bb-0310-9956-ffa450edef68
2009-02-19 02:13:02 +00:00
Fay Wang 357cf347c8 OPENJPA-871: mappedById support
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@745699 13f79535-47bb-0310-9956-ffa450edef68
2009-02-19 00:30:06 +00:00
Catalina Wei 350dcbc92a OPENJPA-925 update testcase comments
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@745597 13f79535-47bb-0310-9956-ffa450edef68
2009-02-18 18:34:09 +00:00
Albert Lee ba80c16806 Insert missing assertion on failure condition.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@745588 13f79535-47bb-0310-9956-ffa450edef68
2009-02-18 18:12:04 +00:00
Catalina Wei d1c23c2d9d OPENJPA-925 Bidirectional OneToOne relation incorrectly set in loadEagerJoin
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@745408 13f79535-47bb-0310-9956-ffa450edef68
2009-02-18 08:06:12 +00:00
Pinaki Poddar 3fc7f54a01 OPENJPA-924: Support cache of Finder queries.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@745293 13f79535-47bb-0310-9956-ffa450edef68
2009-02-17 23:21:37 +00:00
Michael Dick 3adf70a029 OPENJPA-917 add testcases contributed by B.J. Reed. Changes to QueryImpl were already made in OPENJPA-900 svn rev 743396
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@743836 13f79535-47bb-0310-9956-ffa450edef68
2009-02-12 18:56:08 +00:00
Jeremy Bauer 7d0452763a OPENJPA-869 Added support for order column table attribute
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@743594 13f79535-47bb-0310-9956-ffa450edef68
2009-02-12 01:55:45 +00:00
Jeremy Bauer a1f6b1550f OPENJPA-919 Committing test code contributed by Donald Woods
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@743473 13f79535-47bb-0310-9956-ffa450edef68
2009-02-11 20:06:42 +00:00
Fay Wang 1b7ff075c9 OPENJPA-871: MappedById support (spec 2.4.1.2 Ex3b, 5b)
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@743437 13f79535-47bb-0310-9956-ffa450edef68
2009-02-11 18:19:13 +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
Michael Dick b20e5e7086 OPENJPA-876 committing patch provided by Donald Woods
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@742775 13f79535-47bb-0310-9956-ffa450edef68
2009-02-09 22:42:09 +00:00
Catalina Wei 32a6c11b0a OPENJPA-703 cleanup TestOptimizeForClause testcase
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@742184 13f79535-47bb-0310-9956-ffa450edef68
2009-02-08 22:09:07 +00:00
Catalina Wei 64be080321 OPENJPA-802 JPQ2 fix TestOrderColumn, enforce ordered results
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@742181 13f79535-47bb-0310-9956-ffa450edef68
2009-02-08 22:01:47 +00:00
Catalina Wei 80aea14f18 OPENJPA-912 Potential NPE in setInverseRelation
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@741994 13f79535-47bb-0310-9956-ffa450edef68
2009-02-08 01:43:45 +00:00
Catalina Wei 0416d6b54c OPENJPA-807 JPQ2 JPQL fix testcase, enforce ordered results
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@741916 13f79535-47bb-0310-9956-ffa450edef68
2009-02-07 17:16:22 +00:00
Fay Wang 16778feb29 OPENJPA-871: fix test case name clash problem
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@741752 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 22:02:01 +00:00
Catalina Wei ed3889ff69 OPENJPA-703 fix TestOptimizeForClause testcase
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@741745 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 21:43:53 +00:00
Catalina Wei 72fa143e53 OPENJPA-703 add testcase for getSingleResult
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@741737 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 21:26:32 +00:00
Fay Wang 6bbbb786c2 OPENJPA-871: check in MappedById test case
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@741701 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 20:11:54 +00:00
Catalina Wei 9c003aa909 OPENJPA-807 JPQ2 JPQL fix testcase
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@741691 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 19:44:55 +00:00
Catalina Wei 26b54075bb OPENJPA-856 JPQ2 JPQL support for entity type expression
fix testcase

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@741665 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 18:28:44 +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 b4a09c4dab OPENJPA-849 Committing code for Dianne Richards that reverts driver property name back to openjpa property.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@741386 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 03:32:35 +00:00
Pinaki Poddar 889ca9d6a4 OPENJPA-703: Update Prepared Query Cache documentation.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@741275 13f79535-47bb-0310-9956-ffa450edef68
2009-02-05 20:06:02 +00:00
Jeremy Bauer f99be0c0e0 OPENJPA-849 Committing code and corresponding tests contributed by Dianne Richards
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@740986 13f79535-47bb-0310-9956-ffa450edef68
2009-02-05 03:21:25 +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