A. Abram White
ea8b942364
Be a little more flexible on the exceptions thrown when persisting instances
...
with auto-generated keys already assigned values.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@645610 13f79535-47bb-0310-9956-ffa450edef68
2008-04-07 16:52:31 +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
Albert Lee
1b5aac791d
OPENJPA-559 : Add SerialVersionUID.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@644852 13f79535-47bb-0310-9956-ffa450edef68
2008-04-04 19:43:36 +00:00
Patrick Linskey
690cb80eb9
Change OpenJPAEntityManagerFactory.getStoreCache(String) to create the cache on-demand if it doesn't exist. This turns an error condition into functional behavior, so there should be no backward-compat issue.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@644635 13f79535-47bb-0310-9956-ffa450edef68
2008-04-04 07:34:53 +00:00
Patrick Linskey
dd7014a527
OPENJPA-556. This implementation does some extra copying to accomodate DataCache.getAll(), which takes a List instead of a Collection.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@644627 13f79535-47bb-0310-9956-ffa450edef68
2008-04-04 06:55:13 +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
ee8155bb60
OPENJPA-552 Remove dis-allowing Connection* properties in
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@644129 13f79535-47bb-0310-9956-ffa450edef68
2008-04-03 01:18:39 +00:00
Patrick Linskey
999ce2e670
OPENJPA-536. Committing on behalf of Amy Yang.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@644115 13f79535-47bb-0310-9956-ffa450edef68
2008-04-03 00:01:47 +00:00
Michael Dick
79b23557d3
OPENJPA-529. Clone issue with the configuration was accidentally re-introduced
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@644006 13f79535-47bb-0310-9956-ffa450edef68
2008-04-02 18:35:50 +00:00
A. Abram White
6aa8fd3c35
Always consider the inclusion of subclasses as part of the query compilation
...
key, even when the candidate class is encoded in the query string instead of
set programmatically.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@643586 13f79535-47bb-0310-9956-ffa450edef68
2008-04-01 21:29:26 +00:00
Patrick Linskey
6b5e0c6967
OPENJPA-544. Take advantage of tiger dependency.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@643248 13f79535-47bb-0310-9956-ffa450edef68
2008-04-01 03:21:23 +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
Kevin W. Sutter
608a906aaf
OPENJPA-544. Maybe this is a Windows-ism, or an IBM JDK-ism, but I still need the explicit <version>2.4</version> element for the surefire plugin...
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@640887 13f79535-47bb-0310-9956-ffa450edef68
2008-03-25 16:22:35 +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
Kevin W. Sutter
6af619cd89
OPENJPA-540. Committing a simpler version of the patch. Got rid of the ClassResolver classloader and am now just relying on the Class.forName() classloading. This is similar to the processing used for the other *ManagedRuntime classes.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@640666 13f79535-47bb-0310-9956-ffa450edef68
2008-03-25 01:35:28 +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
Michael Dick
635ee199fe
OPENJPA-537
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@639647 13f79535-47bb-0310-9956-ffa450edef68
2008-03-21 13:58:16 +00:00
Kevin W. Sutter
b949f7adc5
OPENJPA-529. Revert the clone() operation on the Configuration object. This is causing problems with the subclassing enhancement.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@639431 13f79535-47bb-0310-9956-ffa450edef68
2008-03-20 19:57:30 +00:00
Patrick Linskey
5f0094893e
Fixed JavaDoc
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@638667 13f79535-47bb-0310-9956-ffa450edef68
2008-03-19 01:01:43 +00:00
Patrick Linskey
aff3abd8ed
Fixed JavaDoc
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@637439 13f79535-47bb-0310-9956-ffa450edef68
2008-03-15 16:57:32 +00:00
Patrick Linskey
4bed57d778
Added license header.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@636531 13f79535-47bb-0310-9956-ffa450edef68
2008-03-12 22:01:23 +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
Patrick Linskey
282c8e0c5b
Improve product derivation debugging; add test case.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@636052 13f79535-47bb-0310-9956-ffa450edef68
2008-03-11 18:29:19 +00:00
Albert Lee
ba5d11b43b
OPENJPA-532 This patch enables command runnable to process once when no persistence unit is found by the tool commands. This allows command option(s) which does not require pu definition to function properly.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@634150 13f79535-47bb-0310-9956-ffa450edef68
2008-03-06 04:12:11 +00:00
Patrick Linskey
85c7a33365
OPENJPA-521. License headers.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@633950 13f79535-47bb-0310-9956-ffa450edef68
2008-03-05 17:59:15 +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
Patrick Linskey
126358f0e4
Fix NPE reported on newsgroup.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@633739 13f79535-47bb-0310-9956-ffa450edef68
2008-03-05 01:21:58 +00:00
Patrick Linskey
f3dd4c0397
OPENJPA-521. Committing on behalf of Qin Feng.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@633738 13f79535-47bb-0310-9956-ffa450edef68
2008-03-05 01:12:19 +00:00
Patrick Linskey
777818d283
OPENJPA-520. Committing on behalf of Qin Feng.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@633723 13f79535-47bb-0310-9956-ffa450edef68
2008-03-05 00:24:45 +00:00
Patrick Linskey
86e17fc210
Improve the error message when failing to find a field in a given identification variable's type.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@633668 13f79535-47bb-0310-9956-ffa450edef68
2008-03-04 22:05:51 +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
Patrick Linskey
1b76c6df24
Possible fix for http://www.nabble.com/InstantiationException-in-latest-OpenJPA-build-tp15799949p15799949.html , which seems to be caused by an attempt to reflectively instantiate a ClassResolverImpl. I've done zero research into how this regression made its way into the codebase, and have not created a test case.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@633326 13f79535-47bb-0310-9956-ffa450edef68
2008-03-03 23:41:17 +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
Michael Dick
ca9828726d
OPENJPA-528 reverting behavior. Original fix caused problems with the TCK.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@633075 13f79535-47bb-0310-9956-ffa450edef68
2008-03-03 12:54:56 +00:00
Michael Dick
a4600fbe98
OPENJPA-528 Handle foreignKey column names similarly to joins in PeristenceMetaDataDefaults.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@632486 13f79535-47bb-0310-9956-ffa450edef68
2008-02-29 23:06:06 +00:00
Michael Dick
527b09ce6e
OPENJPA-529 cloning configuration before running enhancer
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@632462 13f79535-47bb-0310-9956-ffa450edef68
2008-02-29 22:16:30 +00:00
Patrick Linskey
9ece24ade3
Better error message.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@632412 13f79535-47bb-0310-9956-ffa450edef68
2008-02-29 19:16:27 +00:00
Patrick Linskey
66d6230a41
Additional test case for enums in queries
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@632404 13f79535-47bb-0310-9956-ffa450edef68
2008-02-29 18:41:16 +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
Patrick Linskey
e097063b0a
Trivial whitespace change.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@631329 13f79535-47bb-0310-9956-ffa450edef68
2008-02-26 18:40:13 +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
Albert Lee
c3e2f01204
Fix TestVersion's "InvalidStateException: The context has been closed." problem: em1 and em2 are using the same em from currentEntityManager(). This test is very similar to (if not the same as) *.persistence.jdbc.annotation.TestVersion.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@630516 13f79535-47bb-0310-9956-ffa450edef68
2008-02-23 19:38:00 +00:00