Commit Graph

878 Commits

Author SHA1 Message Date
Fay Wang 13e3c48cae OPENJPA-1580: disable query cache when pagination is involved.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@925048 13f79535-47bb-0310-9956-ffa450edef68
2010-03-18 23:52:33 +00:00
Pinaki Poddar 15c64cb8f4 OPENJPA-1584: Reparameterization when main and subquery using share query parameters in same or different declaration order
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@925036 13f79535-47bb-0310-9956-ffa450edef68
2010-03-18 23:01:30 +00:00
Pinaki Poddar 8c1175054f OPENJPA-1583: Timestamp version field in bulk update
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@924938 13f79535-47bb-0310-9956-ffa450edef68
2010-03-18 18:32:19 +00:00
Pinaki Poddar 4f11cba18a OPENJPA-1565: Some MySQL drivers return 0 error code for timeout exception
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@924651 13f79535-47bb-0310-9956-ffa450edef68
2010-03-18 05:54:26 +00:00
Pinaki Poddar cb895a2b25 OPENJPA-1565: Oracle exception code 72000 is not fatal
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@924638 13f79535-47bb-0310-9956-ffa450edef68
2010-03-18 05:26:36 +00:00
Pinaki Poddar 1b20902b50 OPENJPA-1565,OPENJPA-1578:
Modify tests to raise correct lock/query exception
Fill in details in exception
Use retreive mode while initializing not store mode 

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@924626 13f79535-47bb-0310-9956-ffa450edef68
2010-03-18 03:42:50 +00:00
Fay Wang 41ce320cc0 OPENJPA-1577: disable query cache when user-defined field strategy is used.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@924055 13f79535-47bb-0310-9956-ffa450edef68
2010-03-16 23:41:36 +00:00
Pinaki Poddar 0f5508e680 Better diagnostic messages on why a query can not be cached
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@923940 13f79535-47bb-0310-9956-ffa450edef68
2010-03-16 19:10:49 +00:00
Pinaki Poddar 992ba73a71 OPENJPA-1565: Raise correct Query/LockTimeout exception
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@923928 13f79535-47bb-0310-9956-ffa450edef68
2010-03-16 18:39:02 +00:00
Pinaki Poddar f3b00d7801 OPENJPA-1565: Raise correct Query/LockTimeout exception
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@923864 13f79535-47bb-0310-9956-ffa450edef68
2010-03-16 16:47:15 +00:00
Pinaki Poddar 845f9b5018 OPENJPA-1578: Set CacheMode properties properly
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@923755 13f79535-47bb-0310-9956-ffa450edef68
2010-03-16 14:30:53 +00:00
Catalina Wei a5ca9aae2d OPENJPA-1573: Incorrect SQL for HAVING = entity variable
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@923589 13f79535-47bb-0310-9956-ffa450edef68
2010-03-16 06:11:18 +00:00
Pinaki Poddar d1b0d0fd6d OPENJPA-1575: Detect parametrized fields in a query expression to exclude queries from cache that use parameters for externized fields.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@923441 13f79535-47bb-0310-9956-ffa450edef68
2010-03-15 21:07:14 +00:00
Fay Wang d69fb9a65a OPENJPA-1570: fix @Strategy inside MappedSuper class
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@922688 13f79535-47bb-0310-9956-ffa450edef68
2010-03-13 23:14:35 +00:00
Catalina Wei 8f45b5bf0b OPENJPA-1568: Make createConnectionFactory() in JDBCConfigurationImpl public
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@922441 13f79535-47bb-0310-9956-ffa450edef68
2010-03-12 22:31:45 +00:00
Catalina Wei e2df6f49e4 OPENJPA-1568: Make createConnectionFactory() in JDBCConfigurationImpl public
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@922399 13f79535-47bb-0310-9956-ffa450edef68
2010-03-12 19:18:07 +00:00
Catalina Wei 6503eabef5 OPENJPA-1550: When batchLimit=-1 or >1 and an exception is caused, the params and failedObject are missing from the resultant exception.
avoid NullPointerException for JDBC provider using PureQUery APIs.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@922355 13f79535-47bb-0310-9956-ffa450edef68
2010-03-12 17:17:23 +00:00
Pinaki Poddar f04031edc1 OPENJPA-1565: Raise correct timeout exceptions.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@922290 13f79535-47bb-0310-9956-ffa450edef68
2010-03-12 15:17:58 +00:00
Pinaki Poddar 4be5a5a194 OPENJPA-1565: Raise correct time out exception
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@922288 13f79535-47bb-0310-9956-ffa450edef68
2010-03-12 15:08:16 +00:00
Michael Dick dd210a2831 OPENJPA-1558:
Check whether the result type is in the same entity hierarchy before using discriminator value when loading a relationship.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@921620 13f79535-47bb-0310-9956-ffa450edef68
2010-03-10 23:19:25 +00:00
Fay Wang 2798b0dd73 OPENJPA-1556: fix @Strategy inside Embeddable
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@921436 13f79535-47bb-0310-9956-ffa450edef68
2010-03-10 16:29:02 +00:00
Donald Woods f82184314e OPENJPA-1550 Fix comment
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@921177 13f79535-47bb-0310-9956-ffa450edef68
2010-03-09 22:34:06 +00:00
Donald Woods 695bd9c4bf OPENJPA-1550 When batchLimit=-1 or >1 and an exception is caused, the params and failedObject are missing from the resultant exception. Original patch contributed by Heath Thomann.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@921174 13f79535-47bb-0310-9956-ffa450edef68
2010-03-09 22:29:18 +00:00
Craig Russell 17652a870b OPENJPA-1530 change TYPE to ENGINE in DDL for MySQL
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@920979 13f79535-47bb-0310-9956-ffa450edef68
2010-03-09 16:48:50 +00:00
Michael Dick c58af533fb OPENJPA-1178:
Remove uneeded imports

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@920540 13f79535-47bb-0310-9956-ffa450edef68
2010-03-08 22:07:27 +00:00
Michael Dick 62092d763a OPENJPA-1118:
Remove Numbers.valueOf() - prefer autoboxing

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@920503 13f79535-47bb-0310-9956-ffa450edef68
2010-03-08 20:43:37 +00:00
Donald Woods 82694335dd OPENJPA-740 Handle case where size is unkown by defaulting back to old value (64KB)
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@920492 13f79535-47bb-0310-9956-ffa450edef68
2010-03-08 20:23:03 +00:00
Donald Woods 1873fcd368 OPENJPA-740 In MySQLDictionary use LONGBLOB, MEDIUMBLOB, TINYBLOB based on the column size, instead of always using BLOB which can only hold 64KB. Patch contributed by Simone Gianni.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@920476 13f79535-47bb-0310-9956-ffa450edef68
2010-03-08 19:35:47 +00:00
Donald Woods 4b3d520ee9 OPENJPA-1492 Change access on ReverseMappingTool#getAnnotationsForMeta(Object) to public. Request from Laird Nelson.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@920404 13f79535-47bb-0310-9956-ffa450edef68
2010-03-08 17:07:32 +00:00
Michael Dick 4dc0267629 OPENJPA-1551:
Storing connectionFactoryName in BrokerImpl - this factory will be used at JDBCStore creation time to override the value from the configuration

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@919557 13f79535-47bb-0310-9956-ffa450edef68
2010-03-05 19:35:53 +00:00
Fay Wang 8248d81a68 OPENJPA-1547: fix subquery syntax error for NOT IN (subquery with MEMBER OF)
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@918188 13f79535-47bb-0310-9956-ffa450edef68
2010-03-02 21:24:01 +00:00
Jeremy Bauer 208f5388ce OPENJPA-1540 Modified Informix dictionary to detect non-delimited identifier case for the Informix driver. Also added missing method override.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@917727 13f79535-47bb-0310-9956-ffa450edef68
2010-03-01 21:29:01 +00:00
Pinaki Poddar 11149ec5fb OPENJPA-1543: Remove fragmented messages. Change to TRACE level logging.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@917657 13f79535-47bb-0310-9956-ffa450edef68
2010-03-01 19:16:22 +00:00
Pinaki Poddar c1a3272872 OPENJPA-1543: Remove fragmented messages. Change to TRACE level logging.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@917656 13f79535-47bb-0310-9956-ffa450edef68
2010-03-01 19:12:21 +00:00
Fay Wang ea49b4cc6a OPENJPA-1536: fix the where clause in sql generation problem when join table strategy is used in toOne eager fetch
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@916106 13f79535-47bb-0310-9956-ffa450edef68
2010-02-25 03:33:00 +00:00
Donald Woods 0befad7051 [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@915979 13f79535-47bb-0310-9956-ffa450edef68
2010-02-24 21:04:54 +00:00
Donald Woods 099d18901e [maven-release-plugin] prepare release 2.0.0-beta2
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@915977 13f79535-47bb-0310-9956-ffa450edef68
2010-02-24 21:04:42 +00:00
Kevin W. Sutter baa3705699 OPENJPA-1516. Additional comments on the free() method to indicate that callers need to ensure thread-safety.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@915472 13f79535-47bb-0310-9956-ffa450edef68
2010-02-23 18:35:44 +00:00
Pinaki Poddar 2f3da18be0 Throw informative error messages on bad enum field
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@911530 13f79535-47bb-0310-9956-ffa450edef68
2010-02-18 19:11:36 +00:00
Pinaki Poddar 7b6c11a6cd OPENJPA-924: Remove logging from FinderCache -- such low-level details seem to confuse rather to inform the user.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@911496 13f79535-47bb-0310-9956-ffa450edef68
2010-02-18 17:23:06 +00:00
Fay Wang 3854f9b5e6 OPENJPA-931: support nested embeddedId in IdClass during remove
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@907853 13f79535-47bb-0310-9956-ffa450edef68
2010-02-09 00:17:50 +00:00
Michael Dick 69c5eb11ff OPENJPA-1498. Minor message file improvements
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@906993 13f79535-47bb-0310-9956-ffa450edef68
2010-02-05 16:37:54 +00:00
Fay Wang 814fef0f7d OPENJPA-1493: performance fix in getTableIndex
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@906614 13f79535-47bb-0310-9956-ffa450edef68
2010-02-04 19:38:27 +00:00
Catalina Wei ec0eeedf35 OPENJPA-1493: Performance improvement in SelectImpl.getTableIndex() for JPQL without subselect
The JUnit regression uncovers an issue in Criteria Query
add @AllowFailure in TestTypesafeCriteria.testValues5(), it is found the expected sql is incorrect. A separate issue will address this problem.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@905898 13f79535-47bb-0310-9956-ffa450edef68
2010-02-03 05:26:58 +00:00
Fay Wang 1a216e9fb7 OPENJPA-1483: support count distinct compound key
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@905540 13f79535-47bb-0310-9956-ffa450edef68
2010-02-02 07:58:31 +00:00
Milosz Tylenda 97496b0bd6 OPENJPA-1367: Improvements for H2 database. Commit patch provided by Prashant Bhat with slight modifications. Information on CROSS JOIN provided by Thomas Mueller.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@905001 13f79535-47bb-0310-9956-ffa450edef68
2010-01-31 11:15:01 +00:00
Fay Wang 1000f39d35 OPENJPA-1486: lazily fetched embeddable should not be materialized in the query result
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@904277 13f79535-47bb-0310-9956-ffa450edef68
2010-01-28 21:57:48 +00:00
Donald Woods 9c90ca5506 merged in r902968 from beta branch
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@902988 13f79535-47bb-0310-9956-ffa450edef68
2010-01-25 21:50:14 +00:00
Jeremy Bauer 671417a73a OPENJPA-1115 Fix auto gen id related jUnit regressions on PostgreSQL.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@902177 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 17:02:13 +00:00
Fay Wang b08a0d179b OPENJPA-1455: VALUES CURRENT SCHEMA fails in DB2 on zOS. Change the SQL to SELECT CURRENT SCHEMA FROM SYSIBM.SYSDUMMY1.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@901775 13f79535-47bb-0310-9956-ffa450edef68
2010-01-21 17:03:33 +00:00