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
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
Albert Lee
944ee1607b
OPENJPA-878 - per agreement with Donald, removing un-needed code.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@756010 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19 14:09:15 +00:00
Pinaki Poddar
c5c5398497
OPENJPA-985: Support dynamic addition of slices.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@755861 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19 07:10:53 +00:00
Jeremy Bauer
05c5ad096b
OPENJPA-878 Committing code and test updates contributed by Donald Woods.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@755819 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19 02:54:39 +00:00
Michael Dick
ff8d46578c
OPENJPA-970. Committing patch provided by Donald Woods
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@755396 13f79535-47bb-0310-9956-ffa450edef68
2009-03-17 21:04:37 +00:00
Jeremy Bauer
390f390b29
OPENJPA-878 Committing code, tests, and documentation updates for Donald Woods.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@755113 13f79535-47bb-0310-9956-ffa450edef68
2009-03-17 04:39:56 +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
44ffbd2f79
OPENJPA-967: remove duplicate column in the associate
...
table when MapKey is specified.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@754773 13f79535-47bb-0310-9956-ffa450edef68
2009-03-15 22:04:03 +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
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
Fay Wang
c67cd5d0be
OPENJPA-973: allow db2jcc driver to work with informix
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@752304 13f79535-47bb-0310-9956-ffa450edef68
2009-03-10 23:33:45 +00:00
Albert Lee
dfe19d2f4f
OPENJPA-891 - remove unneeded code. Code review changes per Pinaki's comment.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@752193 13f79535-47bb-0310-9956-ffa450edef68
2009-03-10 17:58:08 +00:00
Fay Wang
ab9d17f12e
OPENJPA-679: fix ReverseMappingTool problem
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@752178 13f79535-47bb-0310-9956-ffa450edef68
2009-03-10 17:37:57 +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
Fay Wang
1ece64d1df
OPENJPA-965: Open up FinderQueryImpl for jdbc-like and non-jdbc
...
implementation
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@751775 13f79535-47bb-0310-9956-ffa450edef68
2009-03-09 17:41:58 +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
23b0b87674
OPENJPA-966: Support MySQL Replication Driver
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@751487 13f79535-47bb-0310-9956-ffa450edef68
2009-03-08 18:11:55 +00:00
Catalina Wei
dab2ec2ead
Open up FinderCacheImpl for non-JDBC or JDBC-like implementation of preparing statement/query execution
...
cleanup imports
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@751330 13f79535-47bb-0310-9956-ffa450edef68
2009-03-07 22:09:17 +00:00
Catalina Wei
b45109cec3
OPENJPA-965 Open up FinderCacheImpl for non-JDBC or JDBC-like implementation of preparing statement/query execution
...
An approache not exposing FinderCacheImpl to jdbc kernel
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@751301 13f79535-47bb-0310-9956-ffa450edef68
2009-03-07 17:49:31 +00:00
Fay Wang
b612d64620
OPENJPA-965: Open up FinderCacheImpl for jdbc and non-jdbc
...
like implementation
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@751148 13f79535-47bb-0310-9956-ffa450edef68
2009-03-07 00:40:53 +00:00
Albert Lee
70cfcaaee1
OPENJPA-891 - Remove _recoverable attribute in StoreException and use _fatal instead, per Pinaki's suggestion.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@751109 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 22:22:15 +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
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
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
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
Michael Dick
efc6ba4735
OPENJPA-884: Logging oversight in DB2Dictionary
...
https://issues.apache.org/jira/browse/OPENJPA-884
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@749077 13f79535-47bb-0310-9956-ffa450edef68
2009-03-01 19:31:06 +00:00
Albert Lee
cc38e27eef
OPENJPA-891 - change supportIsolationForUpdate to supportsIsolationForUpdate in line with existing naming convention.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@748957 13f79535-47bb-0310-9956-ffa450edef68
2009-03-01 03:27:37 +00:00
Pinaki Poddar
e11b753da5
OPENJPA-924: Add localized statements for logging
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@748625 13f79535-47bb-0310-9956-ffa450edef68
2009-02-27 18:12:20 +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
Pinaki Poddar
bf16127d19
OPENJPA-924: Only cache finder queries without read locks
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@748126 13f79535-47bb-0310-9956-ffa450edef68
2009-02-26 13:04:01 +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
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
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
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
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
f08e4e1791
OPENJPA-924: Cache primary key field indices. Simplify QueryStatistics template.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@745329 13f79535-47bb-0310-9956-ffa450edef68
2009-02-18 00:49:51 +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
Pinaki Poddar
556e09b69f
OPENJPA-703: Use template for QueryStatistics.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@745123 13f79535-47bb-0310-9956-ffa450edef68
2009-02-17 15:41:28 +00:00
Pinaki Poddar
2582d4de0b
OPENJPA-703: Clean up unused varaibles in PreparedQueryCache implementaion and remove support for Class based keys kep as placeholder for finder queries.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@744966 13f79535-47bb-0310-9956-ffa450edef68
2009-02-16 17:00:07 +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
Pinaki Poddar
0916d4b109
OPENJPA-703: Align data loading for Prepared Query Results to Select oriented result object provider
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@742601 13f79535-47bb-0310-9956-ffa450edef68
2009-02-09 16:29:37 +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
Fay Wang
e2aea2d05a
OPENJPA-871: MappedById support
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@741595 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 15:34:53 +00:00
Catalina Wei
9f0a175b8d
OPENJPA-703 make substituteParams() utility method public
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@741347 13f79535-47bb-0310-9956-ffa450edef68
2009-02-05 23:53:25 +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
Pinaki Poddar
b7ca8734b9
OPENJPA-703: Parse SQL for both ?n and ? style parameter markers
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@740208 13f79535-47bb-0310-9956-ffa450edef68
2009-02-03 04:13:51 +00:00
Pinaki Poddar
c71522fa9a
OPENJPA-703:How user parameters are converted to Object[] is determined by the Executors. Because they are the consumer of this information. kernel.Query toParameterArray() was making many implict assumptions. A detailed test with paramenetrs and forcing PreparedQueryCacheImpl to cache JPQL only.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@740184 13f79535-47bb-0310-9956-ffa450edef68
2009-02-03 01:41:25 +00:00
Pinaki Poddar
64329e007e
OPENJPA-703: Support Collection-valued parameters. Handle re-parameterization when collection-valued parameter has different size across invocations.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@740016 13f79535-47bb-0310-9956-ffa450edef68
2009-02-02 15:57:27 +00:00
Pinaki Poddar
2065e905dd
OPENJPA-703: Use Prepared Query for packed results.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@739796 13f79535-47bb-0310-9956-ffa450edef68
2009-02-01 17:34:04 +00:00
Pinaki Poddar
4ed05803e1
OPENJPA-703: A separate executor for Prepared SQL.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@739784 13f79535-47bb-0310-9956-ffa450edef68
2009-02-01 16:50:45 +00:00
Pinaki Poddar
e30261e55a
OPENJPA-703: Support PersistenceCapable as query parameter during reparameterization of Prepared Query.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@739589 13f79535-47bb-0310-9956-ffa450edef68
2009-01-31 19:37:01 +00:00
Pinaki Poddar
1ddbd61042
OPENJPA-703: Cleaning first Prepared Query Cache commit
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@739425 13f79535-47bb-0310-9956-ffa450edef68
2009-01-30 22:06:30 +00:00
Fay Wang
6453c64343
OPENJPA-870: orphanRemoval support
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@739155 13f79535-47bb-0310-9956-ffa450edef68
2009-01-30 03:15:09 +00:00
Pinaki Poddar
295442d82f
OPENJPA-703: Prepared Query Cache
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@739123 13f79535-47bb-0310-9956-ffa450edef68
2009-01-30 01:27:35 +00:00
Catalina Wei
8e60655cd7
OPENJPA-865 JPA2 Query support for collection-valued input parameter in in-expression
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@738940 13f79535-47bb-0310-9956-ffa450edef68
2009-01-29 17:51:35 +00:00
Fay Wang
f65c4aebcd
OPENJPA-870: orphanRemoval support
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@738933 13f79535-47bb-0310-9956-ffa450edef68
2009-01-29 17:35:45 +00:00
Fay Wang
209f903388
OPENJPA-851: fix a bug in the embeddable processing.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@737164 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 19:48:10 +00:00
Jeremy Bauer
017e518bba
OPENJPA-802 Base OrderColumn support and corresponding tests
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@736915 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 04:54:33 +00:00
Catalina Wei
d49fdb1ea2
OPENJPA-856 JPQ2 JPQL add support for entity type expression
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@736881 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 01:19:47 +00:00
Michael Dick
c5736acdf4
OPENJPA-864 do not remove table aliases for databases which use JoinSyntaxes.SYNTAX_DATABASE (no joins).
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@736748 13f79535-47bb-0310-9956-ffa450edef68
2009-01-22 19:16:37 +00:00
Fay Wang
c21184bf11
OPENJPA-851: ManyToMany Map support
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@736245 13f79535-47bb-0310-9956-ffa450edef68
2009-01-21 06:50:16 +00:00
Fay Wang
88f288b47a
OPENJPA-851: enhanced bi-directional map support in
...
update operation
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@734617 13f79535-47bb-0310-9956-ffa450edef68
2009-01-15 07:05:13 +00:00
Catalina Wei
388c56f05f
OPENJPA-846 XML column support for MySQL
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@734601 13f79535-47bb-0310-9956-ffa450edef68
2009-01-15 03:11:00 +00:00
Fay Wang
c99c9d24f9
OPENJPA-851: enhanced map support for JPA 2.0 (Spec 10.1.26,
...
10.1.27, 10.1.28, 10.1.29, 10.1.30, 2.7)
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@734319 13f79535-47bb-0310-9956-ffa450edef68
2009-01-14 04:11:32 +00:00
Michael Dick
500fc71ba3
OPENJPA-843 move testcases to openjpa-persistence-jdbc module to resolve compile failure
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@733970 13f79535-47bb-0310-9956-ffa450edef68
2009-01-12 23:56:33 +00:00
Catalina Wei
9ab2dd6c4a
OPENJPA-843 Unnecessary version update on inverse-side of a 1-m relationship
...
Committing patch provided by Dinkar Rao
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@733932 13f79535-47bb-0310-9956-ffa450edef68
2009-01-12 22:16:06 +00:00
Catalina Wei
2309a59df5
OPENJPA-853 Informix Cursor not open problem
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@733204 13f79535-47bb-0310-9956-ffa450edef68
2009-01-10 00:44:36 +00:00
Catalina Wei
4427455757
OPENJPA-855 JPA2 Query updates add support for Index function
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@733142 13f79535-47bb-0310-9956-ffa450edef68
2009-01-09 20:13:20 +00:00
Pinaki Poddar
f30eb24709
remove unused import statement
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@732084 13f79535-47bb-0310-9956-ffa450edef68
2009-01-06 19:56:20 +00:00
Catalina Wei
fb7ab1908b
OPENJPA-557 Primary key sequences broken with postgres schemas
...
Commit patch provided by Milosz Tylenda
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@729180 13f79535-47bb-0310-9956-ffa450edef68
2008-12-24 00:18:32 +00:00
Pinaki Poddar
94efd58dd9
OPENJPA-845: Evaluate ordering value for PCPath to support ORDER BY slice queries that involves ordering terms not included in projection items and hence requires in-memory ordering from multiple slices.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@729084 13f79535-47bb-0310-9956-ffa450edef68
2008-12-23 20:08:39 +00:00
Fay Wang
6ff7d9a922
OPENJPA-838: remove cache from StoreCollectionFieldStrategy
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@728750 13f79535-47bb-0310-9956-ffa450edef68
2008-12-22 19:36:50 +00:00
Jeremy Bauer
c924cc2fc8
OPENJPA-803 Added support to allow a specific schema name to be specified on sequence generators per JPA 2.0.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@728147 13f79535-47bb-0310-9956-ffa450edef68
2008-12-19 21:22:18 +00:00
Catalina Wei
0500645b7a
OPENJPA-835 Loading nested toMany EAGER relation resuled in PersistenceException
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@727895 13f79535-47bb-0310-9956-ffa450edef68
2008-12-19 02:17:36 +00:00
Pinaki Poddar
574d559860
OPENJPA-825: Introduced internal locking for shared contexts (BrokerImpl/QueryImpl).
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@727864 13f79535-47bb-0310-9956-ffa450edef68
2008-12-19 00:08:23 +00:00
Pinaki Poddar
0f7f03d8b0
OPENJPA-825: Cache unique flag for query to avoid lcoking. Use StateManager's instance lock rather than acquiring Broker's lock.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@727297 13f79535-47bb-0310-9956-ffa450edef68
2008-12-17 06:23:00 +00:00
Fay Wang
4cf216c21f
OPENJPA-782: embeddable support
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@727084 13f79535-47bb-0310-9956-ffa450edef68
2008-12-16 16:44:26 +00:00
Catalina Wei
debe82b8d0
OPENJPA-805 JPQL iteration 1 - add support for COALESCE and NULLIF expressions
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@725881 13f79535-47bb-0310-9956-ffa450edef68
2008-12-12 01:29:19 +00:00
Catalina Wei
979a6e373c
OPENJPA-805 JPQL iteration 1: add support for Case Expressions
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@725728 13f79535-47bb-0310-9956-ffa450edef68
2008-12-11 16:16:32 +00:00
Catalina Wei
2bb40626e6
OPENJPA-805 JPQL iteration 1 add support for select ScalarExpression & Order By selectAlias
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@725530 13f79535-47bb-0310-9956-ffa450edef68
2008-12-11 01:43:52 +00:00
Pinaki Poddar
62e1deae8f
OPENJPA-801: PCPath is now a CandidatePath. But why was it not before?
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@724856 13f79535-47bb-0310-9956-ffa450edef68
2008-12-09 20:08:32 +00:00
Catalina Wei
569641f095
OPENJPA-795 enhancer throws an exception when parsing column name "first.name" because it thinks 'first' is a table name
...
In U2 database column name may contain '.'
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@724817 13f79535-47bb-0310-9956-ffa450edef68
2008-12-09 18:49:49 +00:00
Michael Dick
82e702867e
OPENJPA-817 fixed in trunk
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@724765 13f79535-47bb-0310-9956-ffa450edef68
2008-12-09 16:04:37 +00:00
Fay Wang
e78a1bc079
OPENJPA-782: embeddable support
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@724437 13f79535-47bb-0310-9956-ffa450edef68
2008-12-08 18:27:45 +00:00
Michael Dick
7a6ac4afc7
Reverting OPENJPA_817 in trunk. Conflict with Issue 706 causes unpredictable results
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@723914 13f79535-47bb-0310-9956-ffa450edef68
2008-12-05 23:00:22 +00:00
Michael Dick
c15fb7dfbb
OPENJPA-817 preserve order of statements with ConstraintUpdateManager merge to trunk
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@723854 13f79535-47bb-0310-9956-ffa450edef68
2008-12-05 20:30:05 +00:00
Fay Wang
55b1fa6cd3
OPENJPA-815: retrieval fails for an entity that contains an
...
embeddable, which contains a toMany relation.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@723480 13f79535-47bb-0310-9956-ffa450edef68
2008-12-04 23:03:42 +00:00
Albert Lee
ef7f18f30c
OPENJPA-811 - Committ on behalf of Pinaki Poddar and Dinkar Rao.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@723088 13f79535-47bb-0310-9956-ffa450edef68
2008-12-03 21:41:54 +00:00
Kevin W. Sutter
68d48f948e
OPENJPA-774. Committing the patch provided by Alexey Ousov in trunk and the 1.3.x branch.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@719388 13f79535-47bb-0310-9956-ffa450edef68
2008-11-20 21:48:54 +00:00
Fay Wang
bb937f3634
OPENJPA-742: add get lineNumber/ColumnNumber to SourceTracker
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@719314 13f79535-47bb-0310-9956-ffa450edef68
2008-11-20 18:16:46 +00:00
Pinaki Poddar
9d40841d48
OPENJPA-340: Let DBDictionary generate Unique Constraint names rather than Unique trying to auto-generate such names in lesser scope. Strengthen the tests to have exactly same named unique columns in two classes to verify that the unique constraint names are unique across tables.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@713778 13f79535-47bb-0310-9956-ffa450edef68
2008-11-13 18:33:07 +00:00
Michael Dick
02608cc658
OPENJPA-765 Check for isInsertable and isUpdatable in HandlerFieldStrategy
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@712928 13f79535-47bb-0310-9956-ffa450edef68
2008-11-11 03:44:43 +00:00
Pinaki Poddar
e11d0f7e12
Generate unique name for unique constraints created by @Column(unique=true)
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@712300 13f79535-47bb-0310-9956-ffa450edef68
2008-11-07 22:49:13 +00:00
Albert Lee
ea9378fc96
OPENJPA-580 - Improve jdbc url mapping to DB dictionary alias.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@711726 13f79535-47bb-0310-9956-ffa450edef68
2008-11-05 22:31:42 +00:00
Albert Lee
f55dff2069
OPENJPA-761 - test for null column object and post a more meaning message to the warning log in SchemaGenerator.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@711432 13f79535-47bb-0310-9956-ffa450edef68
2008-11-04 21:56:35 +00:00
Fay Wang
7e24608f52
OPENJPA-762: Batch execution fails for Oracle when batch
...
limit is set to -1.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@711404 13f79535-47bb-0310-9956-ffa450edef68
2008-11-04 21:03:56 +00:00
Albert Lee
675ee18565
OPENJPA-760 - Commit contributions on behalf of Georgi Naplatanov.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@710180 13f79535-47bb-0310-9956-ffa450edef68
2008-11-03 21:52:49 +00:00
A. Abram White
3cc3bfe87c
Use full table name according to DBDictionary when constructing GetMapValue
...
subquery, which may include schema.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@710015 13f79535-47bb-0310-9956-ffa450edef68
2008-11-03 06:36:49 +00:00
Michael Dick
e1bd3c4dcb
Code cleanup: remove some unnescessary casts
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@707937 13f79535-47bb-0310-9956-ffa450edef68
2008-10-26 04:31:28 +00:00
Jeremy Bauer
044764a395
OPENJPA-750: Updates to code and doc based on code review comments
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@707655 13f79535-47bb-0310-9956-ffa450edef68
2008-10-24 15:24:21 +00:00
Jeremy Bauer
c49f0e17d6
OPENJPA-750: Added option to Sybase dictionary to ignore truncation warnings, added doc for new dictionary option, and code to log any SQLWarnings when update count isn't expected value.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@707270 13f79535-47bb-0310-9956-ffa450edef68
2008-10-23 04:43:35 +00:00
Fay Wang
703a2b9b60
OPENJPA-745: streamline the fix to be consistent with the fix
...
in OPENJPA-750
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@707214 13f79535-47bb-0310-9956-ffa450edef68
2008-10-22 22:12:37 +00:00
Fay Wang
ac40fde3f1
OPENJPA-745: raise string right truncation error for Sybase. Move
...
the call to _dict.initializedSettings inside the block of
checking whether _conn is null in JDBCStoreManager.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@706494 13f79535-47bb-0310-9956-ffa450edef68
2008-10-21 02:11:41 +00:00
Fay Wang
1e4aa60859
OPENJPA-745 raise string right truncation error for Sybase
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@706493 13f79535-47bb-0310-9956-ffa450edef68
2008-10-21 02:03:26 +00:00
Catalina Wei
7131ef0748
OPENJPA-744 Extra SQL on LAZY/EAGER ManyToOne relation
...
Further improved code and additional testcases.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@705335 13f79535-47bb-0310-9956-ffa450edef68
2008-10-16 19:37:02 +00:00
Catalina Wei
5128ee06a4
OPENJPA-744 Extra SQL on LAZY/EAGER ManyToOne relation
...
Further improved for performance when OneToMany is fetch EAGER, the inverse ManyToOne relations are set such that relation fields in entities after detach remain valid.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@704585 13f79535-47bb-0310-9956-ffa450edef68
2008-10-14 17:22:39 +00:00
Catalina Wei
212ddcefc9
OPENJPA-744 OneToMany EAGER loading generates extra SQLs on inverse ManyToOne relation
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@703912 13f79535-47bb-0310-9956-ffa450edef68
2008-10-13 04:37:48 +00:00
Fay Wang
050a99a3e4
OPENJPA-736 use jdbc api getGeneratedKey to combine insert
...
and select SQL for generated id strategy = GenerationType.IDENTITY.
Found some indentation problem and fixed it. No logic change.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@701555 13f79535-47bb-0310-9956-ffa450edef68
2008-10-03 22:39:53 +00:00
Fay Wang
e7867662bd
OPENJPA-736 use jdbc api getGeneratedKey to combine insert
...
and select SQL for generated id strategy = GenerationType.IDENTITY
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@701537 13f79535-47bb-0310-9956-ffa450edef68
2008-10-03 21:16:50 +00:00
Catalina Wei
baa01d79dd
OPENJPA-731 Bug on FetchType.EAGER when QuerySQLCache is turned on
...
Committing patch provided by Fay Wang
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@699156 13f79535-47bb-0310-9956-ffa450edef68
2008-09-26 03:05:52 +00:00
Catalina Wei
a098b86d73
OPENJPA-720 The pushdown sql for version columns in primary and secondary tables has unpredictable ordering in the select and from clause
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@694057 13f79535-47bb-0310-9956-ffa450edef68
2008-09-10 23:06:36 +00:00
Kevin W. Sutter
8e6db6cb65
OPENJPA-715. Committing the testcase provided by Ekin Sokmen and the patch provided by Fay Wang. Committing the change for both the 1.2.x service stream and 1.3.0 snapshot (trunk).
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@693282 13f79535-47bb-0310-9956-ffa450edef68
2008-09-08 21:32:17 +00:00
Pinaki Poddar
939b122c09
OPENJPA-697: Join if version column is in secondary table
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@693162 13f79535-47bb-0310-9956-ffa450edef68
2008-09-08 16:54:21 +00:00
Pinaki Poddar
a60fab2d7e
OPENJPA-710: Do not add ORDER BY clause for unordered collection field. But select the field as it is expecetd subsequently for loading.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@691421 13f79535-47bb-0310-9956-ffa450edef68
2008-09-02 23:07:22 +00:00
Catalina Wei
650161a887
OPENJPA-708 sub-sub-query generates SQL with syntax error
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@690823 13f79535-47bb-0310-9956-ffa450edef68
2008-08-31 23:53:36 +00:00
Pinaki Poddar
aa1516f04b
OPENJPA-697: Add new capabilities to support version columns to spread across primary and secondary tables
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@690346 13f79535-47bb-0310-9956-ffa450edef68
2008-08-29 17:46:15 +00:00
Catalina Wei
15f6ece819
OPENJPA-706 Changes for supporting DB generated version
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@689649 13f79535-47bb-0310-9956-ffa450edef68
2008-08-27 22:53:28 +00:00
Pinaki Poddar
62c0cba64b
OPENJPA-697: Implement newly added getJavaType(int i) abstarct method to save derivations unaware of multi-column versioning support from compiler error
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@689219 13f79535-47bb-0310-9956-ffa450edef68
2008-08-26 20:51:30 +00:00
Pinaki Poddar
42f2f394fb
OPENJPA-705: Secondary table for Embdded field is to be looked up in the owner's secondary table.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@688919 13f79535-47bb-0310-9956-ffa450edef68
2008-08-25 23:28:31 +00:00
Pinaki Poddar
f0126e921f
OPENJPA-697: Upgrade version strategy for multiple numeric-valued columns to support @VersionColumns.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@688734 13f79535-47bb-0310-9956-ffa450edef68
2008-08-25 14:25:36 +00:00
Catalina Wei
322689a573
OPENJPA-700 DB2 lastGeneratedKeyQuery should use new syntax for db2UDBV82OrLater
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@688135 13f79535-47bb-0310-9956-ffa450edef68
2008-08-22 17:48:55 +00:00
Pinaki Poddar
4dd92231c5
Generate informative error message when query fails due to wrong unbound variables
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@687122 13f79535-47bb-0310-9956-ffa450edef68
2008-08-19 18:42:26 +00:00
Albert Lee
a7b9f8f7f3
Minor typo corrections in message files.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@686401 13f79535-47bb-0310-9956-ffa450edef68
2008-08-15 22:19:24 +00:00
Pinaki Poddar
d76c646acc
OPENJPA-111: Validate native SQL parameters by the numbers of parameters in StoreQuery level and bypass validation at facade layer
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@686349 13f79535-47bb-0310-9956-ffa450edef68
2008-08-15 19:38:10 +00:00
Pinaki Poddar
aae1260665
OPENJPA-693: Support 1.5 directional mapping where Parent maps its Children but Child refers to Parent via Parent's primary key value. Introduces a concept of implicit ForeignKey that marks the shared mapped column without any database schema impact.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@686037 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 20:52:16 +00:00
Catalina Wei
f4845dae9b
OPENJPA-679 java.lang.ArrayIndexOutOfBoundsException may occur when a relation field is annotated as a primary key and a foreign key
...
Commit patch provided by Fay Wang
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@685042 13f79535-47bb-0310-9956-ffa450edef68
2008-08-12 05:10:54 +00:00
Pinaki Poddar
ffb59c35fc
OPENJPA-692: Detect orphaning relation and change row update to delete for join table entry.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@684822 13f79535-47bb-0310-9956-ffa450edef68
2008-08-11 17:18:31 +00:00
Pinaki Poddar
6dbe8a9e57
OPENJPA-692: Bi-directional mapping with JoinTable
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@684442 13f79535-47bb-0310-9956-ffa450edef68
2008-08-10 10:11:50 +00:00
Pinaki Poddar
237c092ebb
OPENJPA-677: Make a judgement whether reading discrimnator value from the result makes sense in a context
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@683916 13f79535-47bb-0310-9956-ffa450edef68
2008-08-08 08:59:12 +00:00
Pinaki Poddar
9ebfe800a5
OPENJPA-677: While loading intermediate data be more strict about when superclass oid can be allowed
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@683902 13f79535-47bb-0310-9956-ffa450edef68
2008-08-08 08:06:18 +00:00
Catalina Wei
053ad36618
OPENJPA-681 Subquery generates SQL with syntax error
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@683876 13f79535-47bb-0310-9956-ffa450edef68
2008-08-08 06:46:29 +00:00
Michael Dick
b53a58f948
OPENJPA-676 remove extra bracket
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@683304 13f79535-47bb-0310-9956-ffa450edef68
2008-08-06 15:45:08 +00:00
Michael Dick
62a6555c89
OPENJPA-676 remove extraneous cast
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@683299 13f79535-47bb-0310-9956-ffa450edef68
2008-08-06 15:34:33 +00:00
Michael Dick
ce3f368ab0
OPENJPA-676 close connection used for CONTIGUOUS or TRANSACTIONAL sequences
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@683296 13f79535-47bb-0310-9956-ffa450edef68
2008-08-06 15:31:01 +00:00
Pinaki Poddar
3b00de3b26
OPENJPA-665: Check for null constraint on insert and update
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@682610 13f79535-47bb-0310-9956-ffa450edef68
2008-08-05 07:23:41 +00:00
Pinaki Poddar
b683569de0
OPENJPA-485:
...
OPENJPA-497: Saving NPE
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@682570 13f79535-47bb-0310-9956-ffa450edef68
2008-08-05 03:19:13 +00:00
Pinaki Poddar
8cb82a6f33
OPENJPA-485: ORDER BY clause in JPQL generates syntactically wrong SQL for TABLE_PER_CLASS inheritance hierarchy
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@681781 13f79535-47bb-0310-9956-ffa450edef68
2008-08-01 19:03:34 +00:00
Michael Dick
68f051fccf
OPENJPA-670 committing patch provided by Jeremy Bauer
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@681370 13f79535-47bb-0310-9956-ffa450edef68
2008-07-31 13:52:50 +00:00
Pinaki Poddar
4af04f30d9
OPENJPA-187: Allow managed, unmanaged, transient entity as binding query parameter.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@681207 13f79535-47bb-0310-9956-ffa450edef68
2008-07-30 21:30:26 +00:00
Michael Dick
191f26d72d
OPENJPA-669 DBDictionary can specify the type of native sequences.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@680501 13f79535-47bb-0310-9956-ffa450edef68
2008-07-28 21:12:17 +00:00
Pinaki Poddar
72b5b4def8
OPENJAP-664: Check length constraint onIndex name, not on the table on which index is created
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@680413 13f79535-47bb-0310-9956-ffa450edef68
2008-07-28 17:29:15 +00:00
Pinaki Poddar
1111ee16ff
OPENJPA-665: Sets column i/o conditions accordingly when column is set as not nullable.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@679487 13f79535-47bb-0310-9956-ffa450edef68
2008-07-24 18:45:44 +00:00
Pinaki Poddar
315cc2d155
OPENJPA-664: Check for length of schema component name during generation of SQL DDL generation.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@679442 13f79535-47bb-0310-9956-ffa450edef68
2008-07-24 16:05:10 +00:00
Catalina Wei
62a8c5c32f
OPENJPA-292 Extra JOIN on eager bi-directional relationship
...
commit openjpa_292_1.patch and testcase_241_292.patch on behalf of Fay Wang
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@679262 13f79535-47bb-0310-9956-ffa450edef68
2008-07-24 01:39:55 +00:00
Catalina Wei
98802147f7
OPENJPA-241 Extra SQL on lazy CMR load
...
commit openjpa_241_1.patch on behalf of Fay Wang
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@679261 13f79535-47bb-0310-9956-ffa450edef68
2008-07-24 01:36:44 +00:00
A. Abram White
37d610ca2c
Fix a bug in which joined classes using an application identity hierarchy
...
couldn't be loaded correctly as an inverse relation.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@679152 13f79535-47bb-0310-9956-ffa450edef68
2008-07-23 18:20:25 +00:00
Patrick Linskey
2ed656a2a0
OPENJPA-458. Adding license header to new file.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@678950 13f79535-47bb-0310-9956-ffa450edef68
2008-07-22 23:54:44 +00:00
Catalina Wei
8cfa25c524
OPENJPA-241 Extra SQL on lazy CMR load
...
commit openjpa_241.patch on behalf of Fay Wang
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@678828 13f79535-47bb-0310-9956-ffa450edef68
2008-07-22 17:41:30 +00:00
Pinaki Poddar
b4c557d0c0
OPENJPA-660: SQL Query Cache supports binding non-primary key parameters to cached SQL. Commit fix on behalf of Fay Wang. Original test case developed by Vikram Bhatia.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@678722 13f79535-47bb-0310-9956-ffa450edef68
2008-07-22 11:54:26 +00:00
Pinaki Poddar
4c0bf1be10
OPENJPA-207: Support multi-level derived identity. Enhancer has been modified.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@678518 13f79535-47bb-0310-9956-ffa450edef68
2008-07-21 17:55:17 +00:00
Pinaki Poddar
c7e78fc80d
OPENJPA-662: Allow version field values be loaded in projection query
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@677704 13f79535-47bb-0310-9956-ffa450edef68
2008-07-17 20:11:42 +00:00
Pinaki Poddar
6e3aca63ec
OPENJPA-349: Validate the row if auto-assigned identity happens to be only column.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@677145 13f79535-47bb-0310-9956-ffa450edef68
2008-07-16 03:55:45 +00:00
Catalina Wei
89695ec253
OPENJPA-51 A non-correlated subquery resulting SQL syntax error
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@676787 13f79535-47bb-0310-9956-ffa450edef68
2008-07-15 02:06:55 +00:00
Catalina Wei
b2812a4cce
OPENJPA-51 Incorrect SQL with syntax error for JPQL subqueries
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@676467 13f79535-47bb-0310-9956-ffa450edef68
2008-07-14 03:46:44 +00:00
Pinaki Poddar
85b0b0b45b
OPENJPA-656: reusing existing error message key from a different package
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@676081 13f79535-47bb-0310-9956-ffa450edef68
2008-07-11 21:14:42 +00:00
Pinaki Poddar
026c96d513
OPENJPA-656: raise error messages with connection parameters on connect failure
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@676073 13f79535-47bb-0310-9956-ffa450edef68
2008-07-11 20:28:49 +00:00
Pinaki Poddar
cc85528f69
OPENJPA-656 : raise informational error on initial connection failure
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@675952 13f79535-47bb-0310-9956-ffa450edef68
2008-07-11 13:48:50 +00:00
Pinaki Poddar
07919b9bec
OPENJPA-657 Removing DOM 3 level methods in parsing XML
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@675812 13f79535-47bb-0310-9956-ffa450edef68
2008-07-10 23:56:07 +00:00
Pinaki Poddar
89e7531398
Initialize Database Prodcut/Vendor name to empty string to avoid NPE
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@675387 13f79535-47bb-0310-9956-ffa450edef68
2008-07-10 00:16:25 +00:00
Catalina Wei
25a69ffe0a
OPENJPA-648 Table generator uses incorrect schema name
...
commit OPENJPA-648_1.2.0.patch provided by Jeremy Bauer
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@673267 13f79535-47bb-0310-9956-ffa450edef68
2008-07-02 03:51:05 +00:00
Catalina Wei
de790be2ad
OPENJPA-235 SQL reordering to avoid non-nullable foreign key constraint violations
...
Fix problem in deletion for foreign key on delete cascade.
Commit openjpa-235-delete-cascade.patch provided by Fay Wang.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@673258 13f79535-47bb-0310-9956-ffa450edef68
2008-07-02 01:32:33 +00:00
Albert Lee
1aa44030d6
OPENJPA-634 - Use only the exception collection in the prepared statement to collect batch flush exceptions. This will preserve the order of exceptions thrown by underlying batch operations during the update manager flush processing.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@673197 13f79535-47bb-0310-9956-ffa450edef68
2008-07-01 20:32:48 +00:00
Pinaki Poddar
54d1a24320
OPENJPA-340: Unique names are unique.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@672960 13f79535-47bb-0310-9956-ffa450edef68
2008-07-01 00:02:11 +00:00
Pinaki Poddar
6868b1cc4a
OPENJPA-340: UniqueConstraint supported via XML Descriptors
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@672406 13f79535-47bb-0310-9956-ffa450edef68
2008-06-27 22:02:34 +00:00
Pinaki Poddar
ff4a96e707
OPENJPA-340: Support for @UniqueConstraints on @TableGenerator, @SecondaryTable and @JoinTable.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@672038 13f79535-47bb-0310-9956-ffa450edef68
2008-06-26 22:04:06 +00:00
Catalina Wei
2b3f7ec90c
OPENJPA-645 Date millisecond precision lost for Informix IDS and SQLServer
...
Commit the patch provided by Dinkar Rao
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@672017 13f79535-47bb-0310-9956-ffa450edef68
2008-06-26 20:11:51 +00:00
Catalina Wei
e3dbdac159
OPENJPA-644 Handle databaseProductVersion string from newer jcc driver for DB2 ISeries
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@672008 13f79535-47bb-0310-9956-ffa450edef68
2008-06-26 19:38:30 +00:00
Michael Dick
976a5e1faf
OPENJPA-642 committing patch provided by Fay Wang
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@671585 13f79535-47bb-0310-9956-ffa450edef68
2008-06-25 15:46:44 +00:00
Pinaki Poddar
f62ea1ab0d
OPENJPA-533: Update query can set single-valued association to NULL or non-NULL.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@669332 13f79535-47bb-0310-9956-ffa450edef68
2008-06-18 23:25:59 +00:00
Pinaki Poddar
a8e0dc180e
OPENJPA-458: Amplified SQL Exception processing. Introduced a new sql-error-state-codes.xml to specify database specific error code for different types of Store exceptions. This helps to narrow SQL exception to a specific errors which bubble up to user application.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@668814 13f79535-47bb-0310-9956-ffa450edef68
2008-06-17 20:07:12 +00:00
Catalina Wei
514a4bb907
OPENJPA-634 Batched updates resulted in SQLException was not propagated back to users application
...
fix OutOfMemoryException
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@667302 13f79535-47bb-0310-9956-ffa450edef68
2008-06-13 00:23:56 +00:00
Patrick Linskey
b3c7e8290c
Merge from ../branches/1.1.x. svn merge -c 661090 ../branches/1.1.x
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@666923 13f79535-47bb-0310-9956-ffa450edef68
2008-06-12 00:02:34 +00:00
Patrick Linskey
629977fb1c
OPENJPA-597. Merge from ../branches/1.1.x. svn merge -c 655600 ../branches/1.1.x
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@666915 13f79535-47bb-0310-9956-ffa450edef68
2008-06-11 23:55:46 +00:00
Patrick Linskey
1a45d110a2
OPENJPA-130. Merging r655581 from 1.1.x
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@666914 13f79535-47bb-0310-9956-ffa450edef68
2008-06-11 23:55:03 +00:00
Patrick Linskey
97a94847f6
OPENJPA-130. Merge from ../branches/1.1.x. svn merge -c 653008 ../branches/1.1.x
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@666905 13f79535-47bb-0310-9956-ffa450edef68
2008-06-11 23:46:28 +00:00
Patrick Linskey
547438ed18
OPENJPA-579, OPENJPA-585, OPENJPA-587, OPENJPA-588. Merge from ../active. svn merge -c 652987 ../active
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@666898 13f79535-47bb-0310-9956-ffa450edef68
2008-06-11 23:29:11 +00:00
Catalina Wei
545c6732c8
OPENJPA-634 Batched updates resulted in SQLException was not propagated back to users application
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@666595 13f79535-47bb-0310-9956-ffa450edef68
2008-06-11 09:48:06 +00:00
Pinaki Poddar
f1ac625b2c
OPENJPA-209: Detect identical instances being added to L1 cache multiple times during a load session.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@666515 13f79535-47bb-0310-9956-ffa450edef68
2008-06-11 03:33:35 +00:00
Catalina Wei
d965db7271
OPENJPA-634 Batched updates resulted in SQLException was not propagated back to users application
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@666512 13f79535-47bb-0310-9956-ffa450edef68
2008-06-11 03:03:16 +00:00
Pinaki Poddar
63c4899227
OPENJPA-602: Avoid NPE when table-per-class inheritance staregy with an abstract root. See test cases for further details.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@666314 13f79535-47bb-0310-9956-ffa450edef68
2008-06-10 20:34:52 +00:00
Catalina Wei
ddc42e8078
OPENJPA-631 provide detailed SQLException for batched statements that encountered error in DB2
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@666137 13f79535-47bb-0310-9956-ffa450edef68
2008-06-10 14:45:59 +00:00
Albert Lee
110e3ff4b0
OPENJPA-630 Enforce no statement batching support if batchlimit set to 1.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@665915 13f79535-47bb-0310-9956-ffa450edef68
2008-06-09 22:02:12 +00:00
Michael Dick
a4d905f345
OPENJPA-629 trim schema name for Informix only.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@665801 13f79535-47bb-0310-9956-ffa450edef68
2008-06-09 17:53:22 +00:00
Michael Dick
ffbc73ffa6
OPENJPA-629 trim schema name
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@665762 13f79535-47bb-0310-9956-ffa450edef68
2008-06-09 16:51:55 +00:00
Catalina Wei
8a80d753a3
OPENJPA-622 Informix -lock timieout, cursor not open problem for NonJTA datasource transaction RESOURCE_LOCAL in JEE
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@663358 13f79535-47bb-0310-9956-ffa450edef68
2008-06-04 19:49:41 +00:00
Catalina Wei
48b1fb5a37
OPENJPA-617 Add support for calculating update value in QueryImpl.updateInMemory
...
Help comitting patch provided by Fay Wang
Add support for in-memory math - sqrt, abs functions
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@661472 13f79535-47bb-0310-9956-ffa450edef68
2008-05-29 20:38:21 +00:00
Catalina Wei
d1aa6a2c48
OPENJPA-617 Removed hardcoding platform string.
...
a minor fix of the message text id from batch_update_success_count to batch-update-success-count.
Just caught that immediately after last commit.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@661207 13f79535-47bb-0310-9956-ffa450edef68
2008-05-29 04:27:42 +00:00
Catalina Wei
93417f99e3
OPENJPA-617 Removed hardcoding platform string.
...
also relocated 2 jdbc trace messages.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@661200 13f79535-47bb-0310-9956-ffa450edef68
2008-05-29 03:51:34 +00:00
Catalina Wei
faa0f26cdd
OPENJPA-612 Add support for calculating update value in QueryImpl.updateInMemory
...
Help comitting patch provided by Fay Wang
Add support for in-memory string function evulation
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@661124 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 22:19:31 +00:00
Catalina Wei
dbbd1236f2
OPENJPA-612 Add support for calculating update value in QueryImpl.updateInMemory
...
Help comitting patch provided by Fay Wang
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@660825 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 06:08:41 +00:00
Catalina Wei
c1e5f27724
OPENJPA-615 add trace to display connection properties default setting during DataSource initialization
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@660770 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 01:20:26 +00:00
Catalina Wei
2d217257d9
OPENJPA-614 set supportsTimestampNanos = false for SQLServer
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@660767 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 00:55:10 +00:00
Catalina Wei
93e15d846c
OPENJPA-574 fix a potential NullPointerException in checkUpdateCount for statement batching.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@659364 13f79535-47bb-0310-9956-ffa450edef68
2008-05-23 02:14:35 +00:00
Catalina Wei
81fc3ab605
OPENJPA-606 More changes to Informix specific properties in the InformixDictionary
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@659317 13f79535-47bb-0310-9956-ffa450edef68
2008-05-22 23:55:49 +00:00
Catalina Wei
72df500c6e
OPENJPA-574 Cached object in DataCache not evicted due to StatementBatching not reporting OptimisticException
...
Handle (-2) updateCount returned from Batching for Oracle.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@659030 13f79535-47bb-0310-9956-ffa450edef68
2008-05-22 07:39:21 +00:00
Catalina Wei
8a56c75597
OPENJPA-606 Informix specific message for reporting that it does not support "LOCATE" function
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@659028 13f79535-47bb-0310-9956-ffa450edef68
2008-05-22 07:34:23 +00:00
Catalina Wei
47f681a7b5
OPENJPA-607 Extraneous "( )" on DISTINCT, ALL, ANY results in SQL syntax errors on some database systems
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@659027 13f79535-47bb-0310-9956-ffa450edef68
2008-05-22 07:30:25 +00:00
Catalina Wei
b2bd03567d
OPENJPA-605 Informix will throw an exception when a unique index is explictily created on the primary key columns
...
Help committing new patch provided by Fay Wang
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@658576 13f79535-47bb-0310-9956-ffa450edef68
2008-05-21 07:42:38 +00:00
Catalina Wei
689eec175b
OPENJPA-606 InformixDictionary default property setting incorrectly set. Also fixed SQL problems as described in the issue.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@658544 13f79535-47bb-0310-9956-ffa450edef68
2008-05-21 03:23:18 +00:00
Catalina Wei
99a69bef33
OPENJPA-605 Informix will throw an exception when a unique index is explictily created on the primary key columns
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@658542 13f79535-47bb-0310-9956-ffa450edef68
2008-05-21 03:19:08 +00:00
Michael Dick
3a5e61238d
OPENJPA-213
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@658197 13f79535-47bb-0310-9956-ffa450edef68
2008-05-20 10:51:42 +00:00
Albert Lee
b4ac7e2f41
OPENJPA-601 - Don't initialize datasource for build action.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@656431 13f79535-47bb-0310-9956-ffa450edef68
2008-05-14 21:00:35 +00:00
Catalina Wei
956065baa0
OPENJPA-574 fix checkUpdateCount of (-2 SSUCCESS_NO_INFO) for Batching inserts in Oracle and DB2/ZOS.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@656114 13f79535-47bb-0310-9956-ffa450edef68
2008-05-14 06:18:18 +00:00
Albert Lee
a63b6d3e73
Remove company specific name in message file.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@655669 13f79535-47bb-0310-9956-ffa450edef68
2008-05-12 22:14:56 +00:00
Catalina Wei
5a16e92bd9
OPENJPA-598 Make BatchingPreparedStatementManagerImpl more flexible and extensible, Sub-task of OPENJPA-477
...
Committing patch provided by Fay Wang
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@654942 13f79535-47bb-0310-9956-ffa450edef68
2008-05-09 21:34:29 +00:00
Michael Dick
df0902d4cf
OPENJPA-594 committing patch provided by Dinkar Rao
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@654652 13f79535-47bb-0310-9956-ffa450edef68
2008-05-08 23:38:21 +00:00
Catalina Wei
b585833c0c
OPENJPA-574 DataCache entries not evicted when multiple OptimisticLockExceptions reported from backend DB.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@654631 13f79535-47bb-0310-9956-ffa450edef68
2008-05-08 21:31:31 +00:00
Catalina Wei
b796e1710f
OPENJPA-574 DataCache entries not evicted when multiple OptimisticLockExceptions reported from backend DB.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@654337 13f79535-47bb-0310-9956-ffa450edef68
2008-05-08 00:18:11 +00:00
Michael Dick
0f32d37668
OPENJPA-407 committing patch provided by Fay Wang and Jeremy Bauer
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@652913 13f79535-47bb-0310-9956-ffa450edef68
2008-05-02 21:09:14 +00:00
Michael Dick
bd2afc3f70
OPENJPA-149 OPENJPA-159 Moving suspendJTA code to ManagedRuntime
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@651441 13f79535-47bb-0310-9956-ffa450edef68
2008-04-24 22:28:42 +00:00
Albert Lee
d78e76aa5a
OPENJPA-567. Committing on behalf of Vikram Bhatia in trunk.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@651271 13f79535-47bb-0310-9956-ffa450edef68
2008-04-24 14:08:31 +00:00
Patrick Linskey
18a3db781b
OPENJPA-562, OPENJPA-536, OPENJPA-564, OPENJPA-536, OPENJPA-576, OPENJPA-577. Merging changes from 1.1.x branch.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@650714 13f79535-47bb-0310-9956-ffa450edef68
2008-04-23 01:10:43 +00:00
Albert Lee
2ba16b488a
Minor changes: 1) change a few constants from private to protected for use by sub-class. 2) add a couple of new constansts.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@650381 13f79535-47bb-0310-9956-ffa450edef68
2008-04-22 04:45:13 +00:00
Michael Dick
fe45f77f03
OPENJPA-542
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@649221 13f79535-47bb-0310-9956-ffa450edef68
2008-04-17 18:41:25 +00:00
Catalina Wei
50b81e6d77
OPENJPA-547 INNER JOIN FETCH query incorrectly generates LEFT join SQL
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@646455 13f79535-47bb-0310-9956-ffa450edef68
2008-04-09 18:09:42 +00:00
A. Abram White
9c19356c7c
Fix for OPENJPA-554.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@645589 13f79535-47bb-0310-9956-ffa450edef68
2008-04-07 16:18:26 +00:00
Catalina Wei
36c68c49f5
OPENJPA-555 MappingTool got NullPointerException in DB2Dictionary.isDB2ZOSV8xOrLater()
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@644177 13f79535-47bb-0310-9956-ffa450edef68
2008-04-03 05:52:38 +00:00
Albert Lee
1b8ccc6245
OPENJPA-417 - Change isStoreMapCollectionInEntityAsBlob() to getStoreMapCollectionInEntityAsBlob()
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@641891 13f79535-47bb-0310-9956-ffa450edef68
2008-03-27 16:56:05 +00:00
Albert Lee
315a348848
OPENJPA-417 - add openjpa.Compability(StoreMapCollectionInEntityAsBlob=true) option to enable map/collection stores as Blob in the database. This allows existing application continues to work.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@641842 13f79535-47bb-0310-9956-ffa450edef68
2008-03-27 15:08:07 +00:00
Catalina Wei
dbb722f5ec
OPENJPA-541 backout changes.
...
Customer reported that SQL92 joins are bit slower compare to oracle joins
(+) and there are known bugs with SQL92 joins.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@641408 13f79535-47bb-0310-9956-ffa450edef68
2008-03-26 17:06:46 +00:00
Patrick Linskey
b2c1e8f16f
OPENJPA-544. Get rid of JDK1.4 support, fold the jdk1.5 modules into their siblings, get rid of some ugly reflection that was there for 1.5 support, and move to the java.util.concurrent collections classes. This includes a wrapper around ConcurrentHashMap that allows nulls, since the old OpenJPA concurrent map allowed nulls and we rely on that behavior. The implication is that putIfAbsent() and some of the other special JDK1.5 methods don't obey the same contracts as in the java.util.concurrent package.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@640685 13f79535-47bb-0310-9956-ffa450edef68
2008-03-25 03:37:56 +00:00
Michael Dick
9dadffffc1
OPENJPA-543
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@640511 13f79535-47bb-0310-9956-ffa450edef68
2008-03-24 18:41:12 +00:00
Michael Dick
2d0a3c9157
OPENJPA-542
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@640494 13f79535-47bb-0310-9956-ffa450edef68
2008-03-24 18:17:35 +00:00
Catalina Wei
438b877006
OPENJPA-541 Generate SQL92 JOIN syntax for Oracle 9 or later releases
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@639874 13f79535-47bb-0310-9956-ffa450edef68
2008-03-21 21:46:55 +00:00
Catalina Wei
57ca9afbdd
OPENJPA-539 Can't create a table with a field of java type "Map" in Derby
...
commit patch for Fay Wang.
testcases have been modified.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@639746 13f79535-47bb-0310-9956-ffa450edef68
2008-03-21 18:23:19 +00:00
Michael Dick
831bd55051
OPENJPA-528 committing patch provided by Jeremy Bauer
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@639681 13f79535-47bb-0310-9956-ffa450edef68
2008-03-21 15:48:30 +00:00
Albert Lee
d93ac261ad
OPENJPA-535 - fix comment typos.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@636090 13f79535-47bb-0310-9956-ffa450edef68
2008-03-11 20:05:00 +00:00
Albert Lee
b4d72d5843
After OPENJPA-9, -help option in scripts is not working anymore. This is caused by Configurations.runAgainstAllAnchors returns true if no error is encountered (including no operation) during function execution. Since the check of the -help option is in the command's run method and if no anchor is found, the help check is skipped.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@633921 13f79535-47bb-0310-9956-ffa450edef68
2008-03-05 16:38:46 +00:00
Albert Lee
f67ace749a
OPENJPA-530 Update manual and code to match for the update manager values and default.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@633363 13f79535-47bb-0310-9956-ffa450edef68
2008-03-04 04:51:20 +00:00
Albert Lee
64402ea7da
OPENJPA-530 - Change BatchingPreparedStatementManagerImpl to correctly batch dispatched statements in the same order requested by the update managers.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@633317 13f79535-47bb-0310-9956-ffa450edef68
2008-03-03 22:59:07 +00:00
Albert Lee
c3ad06e8ff
Change _state and JDBCConfigurationState from private to protect enabling JDBCFechConfigurationImpl subclass to propagate correct state information in subclass's newInstance() method call.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@633310 13f79535-47bb-0310-9956-ffa450edef68
2008-03-03 22:40:13 +00:00
Patrick Linskey
7487d73507
OPENJPA-430. Reverting mapping defaults change; I'm not convinced that the code is correct, but internal Kodo tests fail with the new behavior. Changing for now; more investigation to follow.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@633245 13f79535-47bb-0310-9956-ffa450edef68
2008-03-03 19:38:47 +00:00
Albert Lee
177111b559
Potential NPE where custom can be null, Boolean.TRUE or Boolean.FALSE. Follow the pattern in update() and deleet()
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@631663 13f79535-47bb-0310-9956-ffa450edef68
2008-02-27 17:46:00 +00:00
Albert Lee
c4af04617e
OPENJPA-359 Improve Timestamp resolution for use by versioning.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@631028 13f79535-47bb-0310-9956-ffa450edef68
2008-02-25 22:59:29 +00:00
Patrick Linskey
6bb87e6203
OPENJPA-484. Also added 'h2' as an alias for H2Dictionary in the DBDictionary property.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@629627 13f79535-47bb-0310-9956-ffa450edef68
2008-02-20 21:58:01 +00:00
Michael Dick
161527339a
OPENJPA-517
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@628811 13f79535-47bb-0310-9956-ffa450edef68
2008-02-18 16:53:15 +00:00
Patrick Linskey
de8a4760c8
Enable some of the new tests.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@628375 13f79535-47bb-0310-9956-ffa450edef68
2008-02-16 19:30:20 +00:00
Srinivasa Segu
caa400cbb3
OPENJPA-516. Following the setFormOfUse(...) need to still call setString(...)
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@627879 13f79535-47bb-0310-9956-ffa450edef68
2008-02-14 21:36:58 +00:00
Catalina Wei
4b45bd5877
OPENJPA-477 fix setting up parameter list for PreparedStatement
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@627873 13f79535-47bb-0310-9956-ffa450edef68
2008-02-14 21:10:50 +00:00
Michael Dick
81cb7e17f9
OPENJPA-464 commiting patch provided by Teresa Kan
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@619664 13f79535-47bb-0310-9956-ffa450edef68
2008-02-07 22:11:21 +00:00
Michael Dick
0033a6b3d9
OPENJPA-511
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@619471 13f79535-47bb-0310-9956-ffa450edef68
2008-02-07 16:01:06 +00:00
Albert Lee
903170b333
Enable ability to subclass of JDBCFetchConfigurationmpl; change one constructor from private to protected.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@619147 13f79535-47bb-0310-9956-ffa450edef68
2008-02-06 20:45:20 +00:00
Pinaki Poddar
024faa31d7
OPENJPA-509 Fix & Test for insertion of MappedSuperClass-Entity-Embedded domain model insertion failure.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@618794 13f79535-47bb-0310-9956-ffa450edef68
2008-02-05 21:53:39 +00:00
Michael Dick
b92f6420af
OPENJPA-401 making temporary classloader optional for MappingTool ant task
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@618745 13f79535-47bb-0310-9956-ffa450edef68
2008-02-05 18:58:09 +00:00
Patrick Linskey
de14ad6630
OPENJPA-147. Changes resulting from tests via Kodo's harness.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@618738 13f79535-47bb-0310-9956-ffa450edef68
2008-02-05 18:34:55 +00:00
Patrick Linskey
18c90bbd0b
OPENJPA-508 Merge from ../branches/1.0.x. svn merge -c 617760 ../branches/1.0.x
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@617763 13f79535-47bb-0310-9956-ffa450edef68
2008-02-02 06:42:20 +00:00
Kevin W. Sutter
70f3a94b36
OPENJPA-505. Resolving some formatting issues with the r616658 commit.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@616878 13f79535-47bb-0310-9956-ffa450edef68
2008-01-30 20:01:09 +00:00
Patrick Linskey
0b4ce34920
OPENJPA-505. Committing on behalf of joe@bea.com (Joe Weinstein).
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@616658 13f79535-47bb-0310-9956-ffa450edef68
2008-01-30 06:49:26 +00:00
Catalina Wei
a8f6d3c116
OPENJPA-477 Making StoreManager more flexible and extensible
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@614763 13f79535-47bb-0310-9956-ffa450edef68
2008-01-24 01:33:48 +00:00
Michael Dick
8d18daabd7
OPENJPA-464 committing patch provided by Teresa Kan
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@614731 13f79535-47bb-0310-9956-ffa450edef68
2008-01-23 23:25:56 +00:00
Patrick Linskey
95018cef64
OPENJPA-430. Fixed bug that passed all column name checks through to the DBDictionary for potential renaming even when _defMissing is enabled.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@614640 13f79535-47bb-0310-9956-ffa450edef68
2008-01-23 19:51:45 +00:00
Patrick Linskey
8464ea75f1
OPENJPA-488. HSQL override is no longer necessary; correct if clause in DBDictionary.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@612523 13f79535-47bb-0310-9956-ffa450edef68
2008-01-16 17:25:47 +00:00
Patrick Linskey
8c4cf9511e
OPENJPA-488, OPENJPA-489, OPENJPA-490, OPENJPA-491, OPENJPA-492
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@612345 13f79535-47bb-0310-9956-ffa450edef68
2008-01-16 03:49:23 +00:00
Catalina Wei
0d3bc96fcb
OPENJPA-471 iSeries DB2 problem with using @GeneratedValue(strategy=GenerationType.IDENTITY)
...
or @GeneratedValue(strategy=GenerationType.SEQUENCE)
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@610697 13f79535-47bb-0310-9956-ffa450edef68
2008-01-10 06:55:17 +00:00
David Ezzio
d621aa765d
Removed duplicate prefixing of schema name in resolveTableName
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@610427 13f79535-47bb-0310-9956-ffa450edef68
2008-01-09 15:59:39 +00:00
Patrick Linskey
26ef9ddabb
Obtain the DBDictionary up-front in the mapping tool constructor to ensure that the dictionary is fully configured with connection-specific information.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@609824 13f79535-47bb-0310-9956-ffa450edef68
2008-01-08 00:57:05 +00:00
Pinaki Poddar
4fda4e9484
Allow access to underlying DataSource for extensibility
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@608008 13f79535-47bb-0310-9956-ffa450edef68
2008-01-02 05:12:25 +00:00
Pinaki Poddar
7bd70d36db
Allow JDBCStoreManager to avail configuration different than that of its StoreContext. Wrong tab corrected.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@604327 13f79535-47bb-0310-9956-ffa450edef68
2007-12-14 23:00:46 +00:00
Pinaki Poddar
2c18b555c7
Allow JDBCStoreManager to avail configuration different than that of its StoreContext
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@604318 13f79535-47bb-0310-9956-ffa450edef68
2007-12-14 22:35:06 +00:00
Pinaki Poddar
111098f1b3
Shows the failed SQL Statement when things break rather than internal ExpContext object
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@603031 13f79535-47bb-0310-9956-ffa450edef68
2007-12-10 20:13:20 +00:00
Pinaki Poddar
38f41d870e
OPENJPA-462: Adding SQLState in DerbyDictionary to demonstrate specialization
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@603028 13f79535-47bb-0310-9956-ffa450edef68
2007-12-10 20:11:22 +00:00
Pinaki Poddar
a54f842624
OPENJPA-462: Narrow StoreException by SQLException.getSQLState()
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@603001 13f79535-47bb-0310-9956-ffa450edef68
2007-12-10 19:15:35 +00:00
Catalina Wei
d3fb4cabf8
OPENJPA-460 Can't convert to: Time, InformixDictionary needs timeTypeName set to "DATETIME HOUR TO SECOND"
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@601576 13f79535-47bb-0310-9956-ffa450edef68
2007-12-05 23:37:34 +00:00
Marc Prud'hommeaux
5e650f0ce3
Changed JDK 1.5-specific String.contains() to JDK 1.4-compatible String.indexOf().
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@599596 13f79535-47bb-0310-9956-ffa450edef68
2007-11-29 22:08:54 +00:00
Michael Dick
55720f220b
OPENJPA-455
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@599192 13f79535-47bb-0310-9956-ffa450edef68
2007-11-28 23:13:50 +00:00
Marc Prud'hommeaux
5472692b41
OPENJPA-401 Swapped the order of the class loaders since the previous fix for OPENJPA-401 was causing intermittent failures in loading metadata when the mappingtool task was being run.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@599178 13f79535-47bb-0310-9956-ffa450edef68
2007-11-28 22:51:18 +00:00
Marc Prud'hommeaux
30024007cd
OPENJPA-223 Handle Indexes with multiple columns, which is a step towards a fix for OPENJPA-223
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@598829 13f79535-47bb-0310-9956-ffa450edef68
2007-11-28 00:25:53 +00:00
Patrick Linskey
5018dfaa88
OPENJPA-126: EntityManager serializability. Also includes a fix to make LoadListener.afterRefresh() work. Committing directly (not via remote queue) as I'm about to lose my internet connection for a while. Hopefully, my local testing is accurate.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@597155 13f79535-47bb-0310-9956-ffa450edef68
2007-11-21 17:40:54 +00:00
Patrick Linskey
c231cc814f
Oops, it looks like this change wasn't passing. Not sure why it got committed; I thought I checked it in through the gatekeeper.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@597010 13f79535-47bb-0310-9956-ffa450edef68
2007-11-21 09:46:08 +00:00
Patrick Linskey
99bb160dae
While looking at dynamic class loading, I noticed that we create a separate MappingRepository when doing an in-process schema redefinion. This seems to lead to potentially-out-of-sync states in the main configuration MappingRepository; this change shares the Configuration's repository with the MappingTool.
...
It looks like the old behavior was somewhat implicit, so I'm hoping that it wasn't necessary, and that this change will be a step forward.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@597002 13f79535-47bb-0310-9956-ffa450edef68
2007-11-21 09:20:56 +00:00
Patrick Linskey
d4e978f5ae
OPENJPA-447. It looks like some of our DBDictionaries might not be handling ranging properly even after this fix.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@596523 13f79535-47bb-0310-9956-ffa450edef68
2007-11-20 03:05:36 +00:00
Patrick Linskey
1dcd7b1d75
Minor reformatting to put , on the end of a param line instead of at the beginning of the next line.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@596519 13f79535-47bb-0310-9956-ffa450edef68
2007-11-20 02:56:07 +00:00
Patrick Linskey
f875a5e98b
OPENJPA-200
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@595912 13f79535-47bb-0310-9956-ffa450edef68
2007-11-17 06:38:33 +00:00
Patrick Linskey
74683912e3
New test case for enums and JPQL (including some disabled failing tests related to OPENJPA-200); simplification to JDBCStoreManager.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@595910 13f79535-47bb-0310-9956-ffa450edef68
2007-11-17 05:28:58 +00:00
Patrick Linskey
634bdc5c92
OPENJPA-9
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@595508 13f79535-47bb-0310-9956-ffa450edef68
2007-11-16 00:51:07 +00:00
Craig Russell
4a8d0b798b
OPENJPA-427 Change maxAutoAssignNameLength to 63 for PostgreSQL
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@595383 13f79535-47bb-0310-9956-ffa450edef68
2007-11-15 18:14:55 +00:00
Patrick Linskey
17a93adda5
OPENJPA-417. Added support for containers of primitives, embeddeds, externalizables, etc.
...
This does not include test cases for the following annotations:
KeyClassCriteria
KeyColumns (KeyColumn is tested, and follows similar pathways)
KeyEmbeddedMapping
KeyJoinColumns (KeyJoinColumn is tested, and follows similar pathways)
KeyStrategy
ElementColumns (ElementColumn is tested, and follows similar pathways)
ElementEmbeddedMapping
ElementStrategy
XEmbeddedMapping
XMappingOverrides (XMappingOverride is tested, and follows similar pathways)
This change presents a backward-compat issue for OpenJPA: in the past, a Collection<String> or Map<String,String> would be mapped as a BLOB by specifying @PersistentMap or @PersistentCollection on the field.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@592917 13f79535-47bb-0310-9956-ffa450edef68
2007-11-07 21:46:09 +00:00
Patrick Linskey
10de9ba4eb
Changed the default table name and index name lengths.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@592676 13f79535-47bb-0310-9956-ffa450edef68
2007-11-07 09:55:27 +00:00
Patrick Linskey
9b42c2d7a0
'key' is a reserved word in Derby.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@592558 13f79535-47bb-0310-9956-ffa450edef68
2007-11-06 21:27:52 +00:00
Patrick Linskey
af4ea13a2c
OPENJPA-430 -- strip hungarian notation prefixes. Checking in patch for Ben Short, along with minor whitespace reformatting and a small tweak to reduce computation if branch logic in correctName() will not use the calculated name.
...
The initial patch included a test for fields that would end up having duplicate names after truncation. The code, however, does not do anything to resolve / avoid duplicates. To make it work, we would need to change MappingDefaultsImpl.correctName() to take a ValueMapping as an argument, and do a two-pass algorithm to check for other fields that would turn into duplicates. Even doing this will not be foolproof, as a duplicate column might come from a subclass or an embedded class. Since this option is not enabled by default anyways, and the duplicate error would become evident during testing / schema creation, I do not believe that it would be worthwhile to spend much time addressing this.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@592319 13f79535-47bb-0310-9956-ffa450edef68
2007-11-06 07:36:55 +00:00
Catalina Wei
ac83668ffa
OPENJPA-375: undo this fix for DB2 (result set closed problem). The problem is resolved by setting DB2 datasource custom property "resultSetHoldability" to 1 in WebSphere.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@590481 13f79535-47bb-0310-9956-ffa450edef68
2007-10-30 21:51:47 +00:00
Patrick Linskey
98ef3d9063
OPENJPA-407. Assorted performance improvements found while working on this issue. This change does not include any SQL caching work.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@590150 13f79535-47bb-0310-9956-ffa450edef68
2007-10-30 16:56:47 +00:00
Michael Dick
6a26ae2531
OPENJPA-399 committing Teresa's patch
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@589788 13f79535-47bb-0310-9956-ffa450edef68
2007-10-29 18:26:15 +00:00
Kevin W. Sutter
2f2e39991d
OPENJPA-421. Committing Daniel's changes to ensure that the datasource configuration is complete before attempting to generate SQL.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@589723 13f79535-47bb-0310-9956-ffa450edef68
2007-10-29 16:23:17 +00:00
Michael Dick
80d2c39020
OPENJPA-423
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@589696 13f79535-47bb-0310-9956-ffa450edef68
2007-10-29 15:48:31 +00:00
Patrick Linskey
1f92ab5842
Formatting fix.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@589246 13f79535-47bb-0310-9956-ffa450edef68
2007-10-27 23:57:12 +00:00
Michael Dick
cb2a061dc7
OPENJPA-113 with testcase
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@587775 13f79535-47bb-0310-9956-ffa450edef68
2007-10-24 04:17:59 +00:00
Albert Lee
92919929f8
OPENJPA-413, commit localizer.properties files for Teresa in 110 trunk.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@587688 13f79535-47bb-0310-9956-ffa450edef68
2007-10-23 23:07:36 +00:00
Kevin W. Sutter
ba6274a19e
OPENJPA-410. Committing the change to make the "connecting to database" message a Trace message instead of an Info message.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@586588 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 19:37:44 +00:00
Kevin W. Sutter
a20d36c121
OPENJPA-399. Committing Teresa's most recent patch for this Issue. Should be ready for resolution now.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@585774 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 01:37:58 +00:00
Patrick Linskey
c2752e27da
Use cached and possibly-reset timeout value instead of re-obtaining the configured value. Discovered potential bug while walking through code; no report or reproducer.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@585392 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 06:22:44 +00:00
Marc Prud'hommeaux
5b67b240f1
The overridden toSelect() signature in the OracleDictionary was no longer appropriate since the DBDictionary.toSelect() change in revision #577972 (which fixed OPENJPA-378). This resulted in the special Oracle range handing to no longer take place, resulting in setFirstResult() and setMaxResults() effectively being ignored for Oracle.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@584463 13f79535-47bb-0310-9956-ffa450edef68
2007-10-14 01:02:19 +00:00
Michael Dick
2d6fbb5d13
OPENJPA-399 Committing Teresa's patch
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@584354 13f79535-47bb-0310-9956-ffa450edef68
2007-10-13 00:51:54 +00:00
Michael Dick
151cf2d034
OPENJPA-399 committing Teresa's patch
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@584330 13f79535-47bb-0310-9956-ffa450edef68
2007-10-12 23:42:34 +00:00
Michael Dick
31e436df3c
OPENJPA-401
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@584190 13f79535-47bb-0310-9956-ffa450edef68
2007-10-12 15:36:08 +00:00
Michael Dick
8c6e31a1d9
OPENJPA-397
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@582851 13f79535-47bb-0310-9956-ffa450edef68
2007-10-08 15:36:49 +00:00
Kevin W. Sutter
4fb0c28dc2
OPENJPA-395. Use getShort instead of getInt for the KEY_SEQ, DEFFERABILITY, and DELETE_RULE metadata fields.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@582838 13f79535-47bb-0310-9956-ffa450edef68
2007-10-08 14:41:14 +00:00
Patrick Linskey
5ef181ab94
OPENJPA-368. Committing Vikram's patch.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@581443 13f79535-47bb-0310-9956-ffa450edef68
2007-10-03 00:15:12 +00:00
Catalina Wei
fab1a92046
OPENJPA-389 et.commit() not issuing database commit for Native queries involving updates.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@581088 13f79535-47bb-0310-9956-ffa450edef68
2007-10-01 21:50:15 +00:00
Michael Dick
a92418ddd6
OPENJPA-388
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@580426 13f79535-47bb-0310-9956-ffa450edef68
2007-09-28 17:13:41 +00:00
Catalina Wei
5d4d50df96
OPENJPA-378 DB2 "FETCH FIRST <n> ROWS ONLY" clause should not be generated in subselect for SELECT COUNT(*) from (subselect ...) s
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@577973 13f79535-47bb-0310-9956-ffa450edef68
2007-09-21 03:32:14 +00:00
Catalina Wei
c0cf405648
OPENJPA-375 DB2 autoCommit(true) causes Result Set prematurely closed in WebContainer JEE environment.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@577015 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 18:50:25 +00:00
Catalina Wei
5e590a951e
OPENJPA-360 FOR UPDATE clause incorrectly generated
...
remove transient variable
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@575079 13f79535-47bb-0310-9956-ffa450edef68
2007-09-12 21:08:53 +00:00
Catalina Wei
a4bf964c08
OPENJPA-360 SQL FOR UPDATE OF incorrectly generated for DB2 UDB version8.1 or earlier and DB2 ISeries V5R3 or earlier.
...
These DB2 version also require the "optimize for <n> row" clause appear before FOR UPDATE clause.
Due to this requirement, the OPTIMIZE clause will appear before FOR UPDATE clause for all DB2 versions.
Also fixed the affected testcases.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@574464 13f79535-47bb-0310-9956-ffa450edef68
2007-09-11 05:32:37 +00:00
Patrick Linskey
cd66165d76
Fixing incorrect return value.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@574285 13f79535-47bb-0310-9956-ffa450edef68
2007-09-10 15:53:21 +00:00
Patrick Linskey
d022b18ad5
OPENJPA-130. Committing Ignacio's patch, with a few whitespace and method name tweaks.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@574143 13f79535-47bb-0310-9956-ffa450edef68
2007-09-10 06:11:29 +00:00
Patrick Linskey
a3a74cc233
OPENJPA-356
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@573676 13f79535-47bb-0310-9956-ffa450edef68
2007-09-07 19:27:13 +00:00
Michael Dick
caa4b76fe2
OPENJPA-353
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@573398 13f79535-47bb-0310-9956-ffa450edef68
2007-09-06 22:16:10 +00:00
Patrick Linskey
6d1c3bfd97
Removing numeric constant in favor of JDK1.4 literal, now that OpenJPA requires 1.4.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@573391 13f79535-47bb-0310-9956-ffa450edef68
2007-09-06 21:46:57 +00:00
Pinaki Poddar
44db5768cd
Allow dynamic configuration property. Changes include
...
1. Add getter/setter for boolean 'dynamic' field of Value
2. Add Value.assertChangeable() that Value subclasses must invoke prior to set
new internal state
3. Changes Configuration readOnly state from a boolean to a simple 3-step state
variable INIT_STATE_LIQUID/FREEZING/FROZEN. This is done to allow lazy
instantiation of some PluginValues after the BrokerFactory freezes configuration.
4. Removes assertNotReadOnly() check from Configuration implementations' setX()
methods.
5. Removes dynamic Value related methods from Configuration API and its
implementations
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@571294 13f79535-47bb-0310-9956-ffa450edef68
2007-08-30 20:19:44 +00:00
Patrick Linskey
e89b51c4c6
OPENJPA-344. Enable serialization of metadata and query compilation caches. This implementation requires that the user run a tool to build the cache, and set a configuration property to tell OpenJPA where the serialized data is stored.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@570948 13f79535-47bb-0310-9956-ffa450edef68
2007-08-29 22:07:44 +00:00
Marc Prud'hommeaux
614c53df58
Merging changes from 1.0.x branch into trunk (from branch point 567935:HEAD)
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@570908 13f79535-47bb-0310-9956-ffa450edef68
2007-08-29 19:37:59 +00:00
Patrick Linskey
065d3e2f59
OPENJPA-282. Fixed incorrect variable choice.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@570593 13f79535-47bb-0310-9956-ffa450edef68
2007-08-28 23:05:26 +00:00
Patrick Linskey
3fa609873b
OPENJPA-282 -- part two. No test case.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@570580 13f79535-47bb-0310-9956-ffa450edef68
2007-08-28 21:50:01 +00:00
Patrick Linskey
e959466d1d
OPENJPA-282. No test case.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@570579 13f79535-47bb-0310-9956-ffa450edef68
2007-08-28 21:48:53 +00:00
Kevin W. Sutter
953df22c39
OPENJPA-338. Committing Teresa's patch for correcting CASTing with DB2.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@570240 13f79535-47bb-0310-9956-ffa450edef68
2007-08-27 20:51:49 +00:00
Patrick Linskey
52d7ab7975
OPENJPA-321. Avoiding JDK1.5-specific String.replace() call. Also changed the method to return a well-balanced SQL, since it looks like the only usage is in a place where well-balanced-ness is possible.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567962 13f79535-47bb-0310-9956-ffa450edef68
2007-08-21 05:26:15 +00:00
Kevin W. Sutter
eaeebf20c7
OPENJPA-321. Committing Teresa's patch with a few minor formatting updates. Thanks, Teresa.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567928 13f79535-47bb-0310-9956-ffa450edef68
2007-08-21 03:15:37 +00:00
Patrick Linskey
dda1e8ef6f
OPENJPA-293. Allow runtime redefinition to be disabled via a configuration setting. We really should sweep through the code and change ImplHelper to take a Configuration as an argument, but that won't change the behavior; it'll just make some of the validations more eager.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567886 13f79535-47bb-0310-9956-ffa450edef68
2007-08-21 00:45:23 +00:00
Patrick Linskey
0a40e8c9a4
OPENJPA-323. If it was ok to comment out, it must be ok to remove altogether.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567858 13f79535-47bb-0310-9956-ffa450edef68
2007-08-20 22:25:37 +00:00
Kevin W. Sutter
6316c57e97
OPENJPA-323. Committing message updates per Teresa's patch. Thanks, Teresa!
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567748 13f79535-47bb-0310-9956-ffa450edef68
2007-08-20 16:50:20 +00:00
Marc Prud'hommeaux
f9fcb11a35
Fixed JDK 1.5-ism of Character.valueOf(char) by changing it to new Characher(char).
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567127 13f79535-47bb-0310-9956-ffa450edef68
2007-08-17 20:16:25 +00:00
Kevin W. Sutter
71f44f884e
OPENJPA-320. Updated the resevered schema prefixes for DB2.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@566855 13f79535-47bb-0310-9956-ffa450edef68
2007-08-16 21:18:35 +00:00
Michael Dick
6cd259f310
OPENJPA-143
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@566788 13f79535-47bb-0310-9956-ffa450edef68
2007-08-16 17:59:57 +00:00
Kevin W. Sutter
88f293dec9
OPENJPA-312. Committing these changes for Daniel. I decided to make a common private utility method out of the common code across the proposed patch, but the intent of the original patch is still there. Thanks, Daniel, for posting the fix.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@566381 13f79535-47bb-0310-9956-ffa450edef68
2007-08-15 22:56:44 +00:00
David J. Wisneski
c014c92538
Help Catalina committing OPENJPA-313.2.patch
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@566006 13f79535-47bb-0310-9956-ffa450edef68
2007-08-15 02:24:50 +00:00
Kevin W. Sutter
4e81825171
OPENJPA-313. Looks like this patch wasn't quite ready for prime time. I attempted to re-build and re-test right after applying this change and I got several testcase errors in openjpa-persistence-jdbc. I revert back ClassMapping.java and the problems go away. Needs some more work...
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@565896 13f79535-47bb-0310-9956-ffa450edef68
2007-08-14 20:17:39 +00:00
David J. Wisneski
26b0e49845
Help Catalina committing OPENJPA-313.r564688.patch
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@565845 13f79535-47bb-0310-9956-ffa450edef68
2007-08-14 17:38:00 +00:00
Kevin W. Sutter
5c9642d5f4
OPENJPA-244. Committing Albert's changes for Java 2 Security (minus the white space).
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@564408 13f79535-47bb-0310-9956-ffa450edef68
2007-08-09 22:27:17 +00:00
Patrick Linskey
0b1b37dbba
feedback from Bill Pugh of FindBugs fame
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@563357 13f79535-47bb-0310-9956-ffa450edef68
2007-08-07 00:19:53 +00:00
Patrick Linskey
d5ef5d1f3d
OPENJPA-308
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@563355 13f79535-47bb-0310-9956-ffa450edef68
2007-08-07 00:16:08 +00:00
Kevin W. Sutter
c34fb4e80e
OPENJPA-281. Committing the patch that I posted earlier this week. These changes do the proper eager loading of @Basic types. Along with a new testcase and updated AllFieldTypes.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@562986 13f79535-47bb-0310-9956-ffa450edef68
2007-08-05 23:30:08 +00:00
David J. Wisneski
6128ddbc2d
OPENJPA-266 load platform specific DBDictionary from dbdictionaryPlugin
...
Help committing Catalina's DBDictionaryFactory.patch
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@561413 13f79535-47bb-0310-9956-ffa450edef68
2007-07-31 18:01:19 +00:00
Patrick Linskey
747226b1d6
OPENJPA-293. All tests pass, but only because we don't currently test Java 5 + redefinition (only Java 5 + no redef). We need a new version of serp (1.13.1) to support that configuration; the new version has not yet made it into ibiblio.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@560016 13f79535-47bb-0310-9956-ffa450edef68
2007-07-26 22:08:37 +00:00
David J. Wisneski
c70b70b30f
OPENJPA-240 XMLMapping Query - rename XMLMapping interface to XMLMetaData
...
Help Catalina committing changes for renaming classes, part 2.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@559179 13f79535-47bb-0310-9956-ffa450edef68
2007-07-24 19:51:19 +00:00