Commit Graph

941 Commits

Author SHA1 Message Date
Milosz Tylenda 110cb20e79 OPENJPA-1248: Improve LOB streaming with PostgreSQL when connections are being wrapped by data source; refactor and modify test case not to run Reader LOB tests while on PostgreSQL
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@885935 13f79535-47bb-0310-9956-ffa450edef68
2009-12-01 21:13:30 +00:00
Albert Lee cbbe382ecd OPENJPA-1402 - Improve concurrency by not locking relation field whenever appropriate for mixed lock manager.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@884744 13f79535-47bb-0310-9956-ffa450edef68
2009-11-27 05:11:21 +00:00
Pinaki Poddar 3d07bcd372 Special comparison for two boolean constants
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@884233 13f79535-47bb-0310-9956-ffa450edef68
2009-11-25 19:32:15 +00:00
Albert Lee f6a6ee15f2 OPENJPA-1394 - DB2 supports Order By clause with recording locking using "WITH R*" construct. By enabling this feature in the DB2 dictionary, row locking can be perform with the fetch and eliminate the time window other thread snike in to fetch the same row.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@882358 13f79535-47bb-0310-9956-ffa450edef68
2009-11-19 23:28:45 +00:00
Michael Dick 27996efb48 OPENJPA-1384:
Try current classloader when loading DBDictionary.
Submitted By: B.J. Reed

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@881613 13f79535-47bb-0310-9956-ffa450edef68
2009-11-17 23:09:57 +00:00
Pinaki Poddar d9d6898558 OPENJPA-1051
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@880980 13f79535-47bb-0310-9956-ffa450edef68
2009-11-16 21:49:59 +00:00
Pinaki Poddar 9a7bab2a6a OPENJPA-1051: Simplify check for uniqueness of column names. Patch contributed by Ravi Palacherla.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@880972 13f79535-47bb-0310-9956-ffa450edef68
2009-11-16 21:41:55 +00:00
Pinaki Poddar cbde4958f3 TeamCity commits left two files behind
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@880929 13f79535-47bb-0310-9956-ffa450edef68
2009-11-16 19:45:40 +00:00
Pinaki Poddar 9c275904f3 OPENJPA-1387: Revert unique colum related changes to before 880685 plus other changes after that related to OPENJPA-1051 and OPENJPA-1381.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@880922 13f79535-47bb-0310-9956-ffa450edef68
2009-11-16 19:34:11 +00:00
Pinaki Poddar 5143d0cafd OPENJPA-1387: Remove non-nullable constraint from Unique column.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@880868 13f79535-47bb-0310-9956-ffa450edef68
2009-11-16 17:38:16 +00:00
Pinaki Poddar 69d2415b57 OPENJPA-1387: Remove non-nullable constraint from Unique column.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@880865 13f79535-47bb-0310-9956-ffa450edef68
2009-11-16 17:32:21 +00:00
Pinaki Poddar 05c785704c OPENJPA-1387: Remove non-nullable constraint from Unique column.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@880834 13f79535-47bb-0310-9956-ffa450edef68
2009-11-16 16:29:18 +00:00
Pinaki Poddar 93ae72d15f OPENJPA-1051: Simplify check for uniqueness of column names. Patch contributed by Ravi Palacherla.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@880821 13f79535-47bb-0310-9956-ffa450edef68
2009-11-16 15:58:24 +00:00
Pinaki Poddar a91e85e6db OPENJPA-1051: Simplify check for uniqueness of column names. Patch contributed by Ravi Palacherla.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@880689 13f79535-47bb-0310-9956-ffa450edef68
2009-11-16 09:33:29 +00:00
Pinaki Poddar 61f9b32a49 OPENJPA-1387: Remove non-nullable constraint from Unique column.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@880686 13f79535-47bb-0310-9956-ffa450edef68
2009-11-16 09:19:24 +00:00
Michael Dick f6327de653 OPENJPA-1173:
Updating PostgreSQL driver.
Submitted by: Tim McConnell

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@835716 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13 03:04:03 +00:00
Pinaki Poddar 70fc46f93e OPENJPA-459: Bulk update using a join instead of a subselect
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@835257 13f79535-47bb-0310-9956-ffa450edef68
2009-11-12 06:35:31 +00:00
Albert Lee 4991e6bdc2 OPENJPA-1142 - Propagate lock level into LockException so that the proper optimistic/pessimistic exception is translated.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@835190 13f79535-47bb-0310-9956-ffa450edef68
2009-11-12 02:04:12 +00:00
Jeremy Bauer ab18db113b OPENJPA-1248 Set null or empty_lob as appropriate when inserting a new streaming lob for update on Oracle. Also configured test to retain connection over the life of the tx and updated manual to document this requirement.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@834564 13f79535-47bb-0310-9956-ffa450edef68
2009-11-10 17:53:32 +00:00
Albert Lee 8f2ed40ac9 Use List<SQLException> generic.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@834281 13f79535-47bb-0310-9956-ffa450edef68
2009-11-09 23:50:09 +00:00
Donald Woods 00fcf4cfd3 OPENJPA-839 fix pom data so unprovided depends will be pulled automatically by maven and mark JAXB depends as optional
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@832878 13f79535-47bb-0310-9956-ffa450edef68
2009-11-04 21:35:07 +00:00
Jeremy Bauer ac531c5875 OPENJPA-1083 Fixed a mapping tool failure caused by the inability to discover and drop multi-column foreign key constraints. Multi-column FK's were not getting dropped, but got added after clearing out the tables. Trying to add an existing FK caused an exception when using Oracle.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@832587 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03 22:48:43 +00:00
Albert Lee ea6499afc0 OPENJPA-1306 - Correct secondary table locking problem and test cases to match. Also fixed multiple SQLs validation test case problem.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@832506 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03 18:50:48 +00:00
Pinaki Poddar d59954d4b4 Check for null clob
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@832357 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03 09:22:42 +00:00
Pinaki Poddar 760cf901ed OPENJPA-1369: HSQLDB Error code for unique constraint violation
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@832095 13f79535-47bb-0310-9956-ffa450edef68
2009-11-02 20:40:31 +00:00
Pinaki Poddar 74b0ac1956 OPENJPA-1369: Use CONCAT function for HSQL 1.8.x
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@832092 13f79535-47bb-0310-9956-ffa450edef68
2009-11-02 20:33:53 +00:00
Donald Woods a2abcbbfe3 OPENJPA-839 Fix jaxb depends for Java SE 5 users and keep it from getting pulled into the aggregate jars by the shade plugin. Also, removed duplicate maven-source-plugin usage in the parent pom.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@830721 13f79535-47bb-0310-9956-ffa450edef68
2009-10-28 18:54:53 +00:00
Donald Woods cb31d309b2 OPENJPA-839 Create source jars for all artifacts by using maven-shade-plugin for the aggregate jars. Also, removed OSGi metadata from openjpa.jar, as this will be handled by a new openjpa-osgi.jar instead.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@830564 13f79535-47bb-0310-9956-ffa450edef68
2009-10-28 14:45:15 +00:00
Fay Wang b646b8810d OPENJPA-871: support JoinColumn in conjunction with MapsId annotation
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@828889 13f79535-47bb-0310-9956-ffa450edef68
2009-10-22 22:52:39 +00:00
Michael Dick 105d46c6ea OPENJPA-1308:
Remove extraneous cast of VARCHAR to VARCHAR for DB2.
Submitted By: B.J. Reed

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@828772 13f79535-47bb-0310-9956-ffa450edef68
2009-10-22 16:19:17 +00:00
Jeremy Bauer 04df2fac82 OPENJPA-1115 Committing code and tests contributed by Dianne Richards. This commit cleans up some issues with manual/user specified delimiters and adds initial support for full delimiting via the delimited-identifiers element in orm.xml.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@827727 13f79535-47bb-0310-9956-ffa450edef68
2009-10-20 16:31:39 +00:00
Pinaki Poddar 2ef5d26a8e OPENJPA-1355: Correct argument list for Postgres dictionary
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@827712 13f79535-47bb-0310-9956-ffa450edef68
2009-10-20 15:54:34 +00:00
Catalina Wei a32bb62381 OPENJPA-1185 Subquery overhaul
fix subquery correlation involving association table

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@826135 13f79535-47bb-0310-9956-ffa450edef68
2009-10-17 00:07:04 +00:00
Albert Lee 732e45caba Remove unused imports.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@826076 13f79535-47bb-0310-9956-ffa450edef68
2009-10-16 20:35:07 +00:00
Fay Wang 65d2ea8b19 OPENJPA-1351: fix ClassCastException when downlevel jdbc driver is used.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@825699 13f79535-47bb-0310-9956-ffa450edef68
2009-10-15 23:32:44 +00:00
Richard G. Curtis 63a3408d7d OPENJPA-1224: backing out changes while investigating a test regression.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@822288 13f79535-47bb-0310-9956-ffa450edef68
2009-10-06 14:14:49 +00:00
Richard G. Curtis 38a54f39f7 OPENJPA-250: Moved preloading to later in the init process and only create MDR if preload is configured.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@821925 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 17:14:29 +00:00
Fay Wang 97aca65ddc OPENJPA-1237: allow customized MappingRepository
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@821236 13f79535-47bb-0310-9956-ffa450edef68
2009-10-03 03:42:01 +00:00
Fay Wang c14838950c OPENJPA-1330: support join table strategy for uni-directional many-to-one relation and uni-/bi-directional one-to-one relation.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@820839 13f79535-47bb-0310-9956-ffa450edef68
2009-10-01 23:18:56 +00:00
Fay Wang c2a723816b OPENJPA-1330: bi-directional many-to-one/one-to-many using join table strategy
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@820748 13f79535-47bb-0310-9956-ffa450edef68
2009-10-01 18:49:05 +00:00
Richard G. Curtis c06481b452 OPENJPA-1224. Updated DBDictionary and AbstractDB2Dictionary to properly support java.math.BigDecimal.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@820050 13f79535-47bb-0310-9956-ffa450edef68
2009-09-29 18:12:15 +00:00
Fay Wang c8d1003612 OPENJPA-1253: refactoring the checking of non-default mapping to AbstractFieldStrategy
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@819822 13f79535-47bb-0310-9956-ffa450edef68
2009-09-29 03:31:34 +00:00
Pinaki Poddar baf800f3b0 OPENJPA-1050: Use generics for BrokerFactory
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@819800 13f79535-47bb-0310-9956-ffa450edef68
2009-09-29 02:43:32 +00:00
Milosz Tylenda 363f7f6e3f OPENJPA-1248: Remove OracleDictionary.insertBlobForStreamingLoad(Row row, Column col, Object ob) - it was dead code.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@819280 13f79535-47bb-0310-9956-ffa450edef68
2009-09-27 09:35:38 +00:00
Fay Wang 9f29552e85 OPENJPA-1253: support foreign key strategy for uni-directional one to many mapping using Map with entity as the Map key.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@819139 13f79535-47bb-0310-9956-ffa450edef68
2009-09-26 13:42:19 +00:00
Fay Wang ef54e75107 OPENJPA-1253: support bi-directional one-to-many map using join table strategy
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@818616 13f79535-47bb-0310-9956-ffa450edef68
2009-09-24 20:26:04 +00:00
Fay Wang 7d3497781c OPENJPA-1253: clean up code for uni-directional one-to-many Map using foreign key strategy
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@818531 13f79535-47bb-0310-9956-ffa450edef68
2009-09-24 16:12:09 +00:00
Fay Wang 067a6f0ffb OPENJPA-1253: support non-default uni-directional one to many map using foreign key strategy
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@818410 13f79535-47bb-0310-9956-ffa450edef68
2009-09-24 09:00:12 +00:00
Fay Wang 6f1b9627fe OPENJPA-1253: support non-default bi-directional one-to-many using foreign key strategy to find/query from the ower's side
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@817831 13f79535-47bb-0310-9956-ffa450edef68
2009-09-22 20:38:36 +00:00
Richard G. Curtis 4378977891 OPENJPA-250: Committing to trunk. Submitted by Patrick Linskey, Simon Droscher, and Rick Curtis.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@817429 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21 21:59:21 +00:00
Fay Wang 19da9769b0 OPENJPA-1253: support non-default uni-directional OneToMany mapping using foreign key strategy.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@817399 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21 20:21:50 +00:00
Richard G. Curtis fdd330a116 OPENJPA-1172 - Committing changes to trunk. Patch submitted by Rick Curtis
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@817370 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21 18:51:23 +00:00
Fay Wang cf7f69bbd5 OPENJPA-1253: support non-default One-To-Many mappings
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@816795 13f79535-47bb-0310-9956-ffa450edef68
2009-09-18 21:53:47 +00:00
Donald Woods 9467818818 OPENJPA-1310 SQLServer requires JAXB marshalled XML to be in UTF-16 instead of UTF-8. Also updated some of the XmlElement names to match the case used in the XmlType annotation.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@816767 13f79535-47bb-0310-9956-ffa450edef68
2009-09-18 20:06:12 +00:00
Catalina Wei 3f43e3dd0e OPENJPA-1309 DB2 requires CAST for argument passed to datastore MOD function
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@816737 13f79535-47bb-0310-9956-ffa450edef68
2009-09-18 18:38:00 +00:00
Michael Dick 846d1ef82a OPENJPA-1173:
Revert driver update (not in repo yet).

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@816320 13f79535-47bb-0310-9956-ffa450edef68
2009-09-17 18:31:10 +00:00
Michael Dick 1318f98bc4 OPENJPA-1173:
Updating postgresql test dependency to v8.4-701
Submitted By: Tim McConnell


git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@816317 13f79535-47bb-0310-9956-ffa450edef68
2009-09-17 18:10:09 +00:00
Jeremy Bauer add24283b4 OPENJPA-1249 Make insertBlobForStreamingLoad method usage consistent for Oracle DB to eliminate NPE in updateBlob path.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@816287 13f79535-47bb-0310-9956-ffa450edef68
2009-09-17 17:19:09 +00:00
Fay Wang 8c1e1a7ea5 OPENJPA-1253: support non-default uni-directional OneToMany using foreign key strategy, using JoinColumn annotation.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@816085 13f79535-47bb-0310-9956-ffa450edef68
2009-09-17 07:49:13 +00:00
Fay Wang 72f2cb8516 OPENJPA-1253: allow JoinColumn in conjunction with OneToMany annotation
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@815988 13f79535-47bb-0310-9956-ffa450edef68
2009-09-16 22:13:26 +00:00
Donald Woods 416b8d3ccb OPENJPA-1227 SQL generation error when using data cache. Patch and testcase contributed by David Minor.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@814706 13f79535-47bb-0310-9956-ffa450edef68
2009-09-14 15:42:03 +00:00
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
Fay Wang 558446dfe9 OPENJPA-1295: fix the escape character
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@814166 13f79535-47bb-0310-9956-ffa450edef68
2009-09-12 14:58:07 +00:00
Pinaki Poddar fb34e0a0ec Update error code for Oracle. Will pass ..openjpa.persistence.exception.TestException.testThrowsEntityExistsException
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@814096 13f79535-47bb-0310-9956-ffa450edef68
2009-09-12 00:51:05 +00:00
Fay Wang 1aab5c3c6c OPENJPA-1295: fix the problem of escape character for MySQL
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@814074 13f79535-47bb-0310-9956-ffa450edef68
2009-09-11 23:15:06 +00:00
Pinaki Poddar 6b96b82d31 OPENJPA-1294: getNewConnection()
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@814072 13f79535-47bb-0310-9956-ffa450edef68
2009-09-11 22:59:15 +00:00
Pinaki Poddar ec90648e2b OPENJPA-703: Support RangeResultObjectProvider for prepared query cache
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@814065 13f79535-47bb-0310-9956-ffa450edef68
2009-09-11 22:27:27 +00:00
Pinaki Poddar 5120b0e629 OPENJPA-1294: Allow a new connection to obtain query for size of the result set when the original connection is still being open.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@814053 13f79535-47bb-0310-9956-ffa450edef68
2009-09-11 22:12:18 +00:00
Pinaki Poddar 38f31390a9 bad argument corrected
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@813981 13f79535-47bb-0310-9956-ffa450edef68
2009-09-11 18:49:30 +00:00
Fay Wang c534d29cb7 OPENJPA-1285: fix InitializerError in JDBCStoreManager$RefCountConnection.prepareStatement(JDBCStoreManager.java:1543)
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@813930 13f79535-47bb-0310-9956-ffa450edef68
2009-09-11 17:14:52 +00:00
Pinaki Poddar a8640cc5d2 OPENJPA-1285: Dynamic JDBC 4 Wrappers use constructor to save reflection cost
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@813149 13f79535-47bb-0310-9956-ffa450edef68
2009-09-09 22:43:49 +00:00
Jeremy Bauer ed40459a2a OPENJPA-1289 Added Oracle specific type to compatibility checking method. Added new method to dictionary to pass in XML indicator. Updated Oracle dictionary to use it to make LOB determination.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@813098 13f79535-47bb-0310-9956-ffa450edef68
2009-09-09 19:56:37 +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
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
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 12015d3f1d getLong was using INT. Patch by Criag Russell.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@808701 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28 00:53:50 +00:00
Fay Wang 4083018e38 OPENJPA-1266: no need to cast for JDBC escape syntax for date, time, timestamp in DB2
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@808086 13f79535-47bb-0310-9956-ffa450edef68
2009-08-26 16:10:55 +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
David Ezzio 6303e9a753 OpenJPA-525 : Applied Milosz Tylenda's OPENJPA-525.3.patch to trunk, after testing by Amy Yang.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@807642 13f79535-47bb-0310-9956-ffa450edef68
2009-08-25 14:09:23 +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 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
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 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
Fay Wang ccfbe6cd31 OPENJPA-1185: check in embeddable in subquery support on behalf of Catalina
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@804011 13f79535-47bb-0310-9956-ffa450edef68
2009-08-13 20:01:38 +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
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
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
Donald Woods 538f1fd084 OPENJPA-1233 Update DerbyDictionary with new reserved words. The following reserved words were added, based on the Derby 10.5 docs -
COALESCE, CURRENT_ROLE, GETCURRENTCONNECTION, NONE, OVER, ROW_NUMBER, XMLQUERY

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@802801 13f79535-47bb-0310-9956-ffa450edef68
2009-08-10 14:03:29 +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
Pinaki Poddar 931496e6ea correct ordering of message parameters with actual message
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799824 13f79535-47bb-0310-9956-ffa450edef68
2009-08-01 10:25:48 +00:00
Catalina Wei 53805483fc OPENJPA-1185 JPA2 fix thread-safe problems of subquery restructured code.
Committing patch provided by Fay Wang.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@799134 13f79535-47bb-0310-9956-ffa450edef68
2009-07-29 23:53:46 +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
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
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 37c2620b1e OPENJPA-1171:
Replace StringBuffer with StringBuilder in SQLBuffer to reduce synchronization

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@796340 13f79535-47bb-0310-9956-ffa450edef68
2009-07-21 15:15:17 +00:00
Donald Woods 048419e89b OPENJPA-1184 Inverse relations not set for MapKey field when using parallel eager select. Patch contributed by David Minor.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@795949 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 18:36:24 +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 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
Pinaki Poddar 6dd615ebc3 OPENJPA-703: correct comment
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@794075 13f79535-47bb-0310-9956-ffa450edef68
2009-07-14 21:32:42 +00:00
Pinaki Poddar 229cb12699 OPENJPA-703: correct comment
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@794069 13f79535-47bb-0310-9956-ffa450edef68
2009-07-14 21:21:14 +00:00
Michael Dick 47173558ef OPENJPA-466:
Synchronize the call to obtain the next sequence value.
Submitted by: Tim McConnell.
	modified:   openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/NativeJDBCSeq.java

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@793599 13f79535-47bb-0310-9956-ffa450edef68
2009-07-13 14:54:26 +00:00
Albert Lee 56ae0ae6ae OPENJPA-525 - Semi-revert the original solution due to regression in ResultSetResult.translate() method. Implemented an alternative solution to perform the same original intent. Based on Milosz, the current solution caused some failure in MySQL. He agreed for this interim commit and look for cause of failures in MySQL.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@792284 13f79535-47bb-0310-9956-ffa450edef68
2009-07-08 20:01:08 +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 9f62d5ebfa Quick formatting fix (add braces)
modified:   openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingInfo.java

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@791908 13f79535-47bb-0310-9956-ffa450edef68
2009-07-07 16:58:08 +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
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
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
Milosz Tylenda 5d1bd85ca8 OPENJPA-1132: Use MySQL-specific syntax for dropping foreign and primary keys.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@784402 13f79535-47bb-0310-9956-ffa450edef68
2009-06-13 14:42:45 +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
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
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 a2c286bf3b OPENJPA-1122: Remove JDBC 3 related reflection from DBDictionary
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@782338 13f79535-47bb-0310-9956-ffa450edef68
2009-06-07 08:13:41 +00:00
Michael Dick 4b7e773753 OPENJPA-1083 Adding trace message
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@781826 13f79535-47bb-0310-9956-ffa450edef68
2009-06-04 18:33:32 +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
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
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
Michael Dick 0d6f1a0214 OPENJPA-1054. Added testcase for callable statements and fixed typo.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@779764 13f79535-47bb-0310-9956-ffa450edef68
2009-05-28 20:45:27 +00:00
Michael Dick 3c88ac3d20 OPENJPA-1054 committing patch from Rick Curtis and Fay Wang. Testcase has been updated to use jMock instead of creating its own mock objects
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@779715 13f79535-47bb-0310-9956-ffa450edef68
2009-05-28 18:31:12 +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 2e9f4187cc OPENJPA-1067. Merely log SQLException from setQueryTimeout for DB2 on Z/OS
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@778852 13f79535-47bb-0310-9956-ffa450edef68
2009-05-26 19:12:40 +00:00
Milosz Tylenda 3a91680b6d localizer.properties: Correct error in sybase-compliance value.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@778180 13f79535-47bb-0310-9956-ffa450edef68
2009-05-24 15:56:21 +00:00
Milosz Tylenda e8e52d38ea DBDictionary: Correct errors in comments.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@778116 13f79535-47bb-0310-9956-ffa450edef68
2009-05-24 10:55:25 +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
Albert Lee 6d91126dd6 OPENJPA-908 - Commit contribution by Tim McConnell.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@777615 13f79535-47bb-0310-9956-ffa450edef68
2009-05-22 16:45:46 +00:00
Michael Dick ef204040c2 OPENJPA-1067. Restoring original behavior - pending JDBC spec interpretation with DB2
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@776469 13f79535-47bb-0310-9956-ffa450edef68
2009-05-19 21:26:37 +00:00
Michael Dick 42ae6a6998 OPENJPA-975. Committing patch from B.J. Reed.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@776413 13f79535-47bb-0310-9956-ffa450edef68
2009-05-19 18:56:10 +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
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
David Ezzio 817be5bef6 Removed recently added errant author tag
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@775130 13f79535-47bb-0310-9956-ffa450edef68
2009-05-15 13:24:52 +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
David Ezzio 862edc8fe1 OpenJPA-1051: Fixed MappingDefaultsImpl to avoid column name duplications when long column names are supplied for a database that accepts only shorter names. Changes submitted for Ravi Palacherla.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@774580 13f79535-47bb-0310-9956-ffa450edef68
2009-05-13 22:54:32 +00:00
Milosz Tylenda 13819e01f7 OPENJPA-466: Get rid of possible duplicate sequence values
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@773999 13f79535-47bb-0310-9956-ffa450edef68
2009-05-12 17:43:28 +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
Milosz Tylenda c26d742712 OPENJPA-736: Restore method signatures per Albert's request
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@773666 13f79535-47bb-0310-9956-ffa450edef68
2009-05-11 19:51:39 +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
Pinaki Poddar 3213665811 OPENJPA-1079: Allow connection to be accessed by the client
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@773284 13f79535-47bb-0310-9956-ffa450edef68
2009-05-09 23:18:58 +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 da17643624 OPENJA-1070:support for composite foreign keys on MySQL Version >= 5
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@772828 13f79535-47bb-0310-9956-ffa450edef68
2009-05-08 01:31:37 +00:00
Milosz Tylenda 195525392c OPENJPA-736: Change the way generated keys are retrieved so that the feature works also with databases other than DB2
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@772756 13f79535-47bb-0310-9956-ffa450edef68
2009-05-07 19:57:34 +00:00
Michael Dick 09a77eeae3 OPENJPA-1067. Do not call setQueryTimeout for DB2 on Z/OS
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@772456 13f79535-47bb-0310-9956-ffa450edef68
2009-05-06 22:40:43 +00:00
Pinaki Poddar b68eeddd7d Capture post-compilation result type in prepared query
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@772291 13f79535-47bb-0310-9956-ffa450edef68
2009-05-06 14:56:15 +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
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
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 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
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
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
Milosz Tylenda 4d1b86e860 OPENJPA-933: Database version detection in MySQLDictionary is not reliable
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@766310 13f79535-47bb-0310-9956-ffa450edef68
2009-04-18 12:26:26 +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
Jeremy Bauer d9039ca640 OPENJPA-1029 SQLServerDictionary updates contributed by Donald Woods
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@765841 13f79535-47bb-0310-9956-ffa450edef68
2009-04-17 03:15:38 +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
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
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
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
Milosz Tylenda 171fe56aa2 OPENJPA-966: Added missing super call from within MySQLDictionary.decorate(Connection) method.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@764733 13f79535-47bb-0310-9956-ffa450edef68
2009-04-14 10:47:56 +00:00
Catalina Wei 4da7ad3790 OPENJPA-967 JPA2 Query support for embeddable MapKey improvement/rework
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@764279 13f79535-47bb-0310-9956-ffa450edef68
2009-04-12 03:19:46 +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
Milosz Tylenda 62aabafc53 OPENJPA-983: FirebirdDictionary improvements
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@763992 13f79535-47bb-0310-9956-ffa450edef68
2009-04-10 17:57:57 +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
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 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 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 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 983775de06 OPENPA-957 - Correct > 80 columns build problem.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@762181 13f79535-47bb-0310-9956-ffa450edef68
2009-04-05 22:56:16 +00:00
Albert Lee bb01292ce9 OPENJPA-957 - Guard NPE as fetch may be null in getForUpdateClause.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@762177 13f79535-47bb-0310-9956-ffa450edef68
2009-04-05 22:37: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
Milosz Tylenda 616f8fdbee OPENJPA-723: Feature request for PostgreSQL XML Column Mapping
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@762073 13f79535-47bb-0310-9956-ffa450edef68
2009-04-05 12:07:49 +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
Patrick Linskey 318d408ab7 fixed spacing issue with some localization messages that wrap. This pushes some lines to 81 characters; we could re-wrap these lines if needed.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@761417 13f79535-47bb-0310-9956-ffa450edef68
2009-04-02 20:26:09 +00:00
Milosz Tylenda 0aedae4370 OPENJPA-883: Documentation is out of date for some MySQLDictionary properties
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@761373 13f79535-47bb-0310-9956-ffa450edef68
2009-04-02 18:45:32 +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
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
Fay Wang 66f829f7eb OPENJPA-999: add eol to localizer.properties
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@758366 13f79535-47bb-0310-9956-ffa450edef68
2009-03-25 17:51:51 +00:00
Fay Wang fac1cf7614 OPENJPA-999: put back sql-warning message to Localizer.properties
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@758364 13f79535-47bb-0310-9956-ffa450edef68
2009-03-25 17:46:30 +00:00
Fay Wang 31ae580252 OPENJPA-973: allow DB2 jcc driver to access Informix
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@757512 13f79535-47bb-0310-9956-ffa450edef68
2009-03-23 19:19:24 +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
Albert Lee 7ad6a01e84 OPENJPA-992 - Correct proper DB2 SQLState to EntityExistsException translation.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@756238 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19 22:27:45 +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
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
Albert Lee ca00078072 OPENJPA-988 - Refactoring JPA2/MixedLockManager from persistence module to jdbc module. No functional changes.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@756066 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19 16:03:15 +00:00
Fay Wang b00ef73b40 OPENJPA-973: allow db2 jcc driver to access Informix
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@756045 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19 15:32:33 +00:00