Commit Graph

983 Commits

Author SHA1 Message Date
Michael Dick bd9b59c90f OPENJPA-1581:
make assertOpen public and call assertOpen before returning JPA cache

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@924868 13f79535-47bb-0310-9956-ffa450edef68
2010-03-18 15:44:25 +00:00
Pinaki Poddar 2ebb6e475a Better error message for multi-valued object path traversal
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@924633 13f79535-47bb-0310-9956-ffa450edef68
2010-03-18 04:38:57 +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
Jeremy Bauer 04bb066475 OPENJPA-1410 Disable loading of dynamic enhancement agent if OpenJPA is not loaded with the system classloader.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@924395 13f79535-47bb-0310-9956-ffa450edef68
2010-03-17 17:58:40 +00:00
Donald Woods e56be85085 OPENJPA-1097 Remove duplicate code in DetachManager and cleanup comments/traces in tests
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@923958 13f79535-47bb-0310-9956-ffa450edef68
2010-03-16 20:08:28 +00:00
Pinaki Poddar 8dc74c1e59 Do not repeat class name in stringfied object id
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@923938 13f79535-47bb-0310-9956-ffa450edef68
2010-03-16 18:58:37 +00:00
Donald Woods a99ea6218f OPENJPA-1097 Revert previous DetachManager and TestProxyCollection changes in r919696. New code changes Proxies to always remove classes on serialization if the entity is detachable and one of our Proxy subclasses.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@923873 13f79535-47bb-0310-9956-ffa450edef68
2010-03-16 17:09:45 +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
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
Pinaki Poddar 5fec1aaaa6 Print unenhanced classes one per line for better readability.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@922312 13f79535-47bb-0310-9956-ffa450edef68
2010-03-12 16:15:31 +00:00
Pinaki Poddar 732ff354b3 OPENJPA-1566: Allow access to keys of the statistics.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@922311 13f79535-47bb-0310-9956-ffa450edef68
2010-03-12 16:14:47 +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
Fay Wang f69da24268 OPENJPA-1505: allow duplicate entity listeners to be configurable
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@921538 13f79535-47bb-0310-9956-ffa450edef68
2010-03-10 20:05:09 +00:00
Richard G. Curtis 137ad1bacc OPENJPA-1559: Make DataCacheManager initialization thread safe.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@921410 13f79535-47bb-0310-9956-ffa450edef68
2010-03-10 15:47:00 +00:00
Donald Woods dbe6745966 OPENJPA-1524 Update JNDI lookup to find TransactionManager when running in Apache Aries. Still need to implement a better solution for non-Aries based OSGi environments.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@920553 13f79535-47bb-0310-9956-ffa450edef68
2010-03-08 22:48:24 +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 b9a230567e OPENJPA-1097 Detachment processing of our proxied mutable types (Date, Timestamp, etc) needs to be consistent as EM.clear() was not unproxying JavaTypes.OBJECT fields but detach()/detachAll() were. Thanks to Rick Curtis for the DetachManager changes.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@919696 13f79535-47bb-0310-9956-ffa450edef68
2010-03-06 03:26:24 +00:00
Donald Woods bb538f49f9 OPENJPA-1545 Fix checkstyle failure due to line too long (124 chars)
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@919661 13f79535-47bb-0310-9956-ffa450edef68
2010-03-05 22:55:05 +00:00
Richard G. Curtis b0eefe6ea8 OPENJPA-1545: Refectored code. Fixed bug where unloaded fields were being loaded due to detach.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@919657 13f79535-47bb-0310-9956-ffa450edef68
2010-03-05 22:38:59 +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
Richard G. Curtis a1ad33d72a OPENJPA-1545: Make new instance var transient in BrokerImpl.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@919491 13f79535-47bb-0310-9956-ffa450edef68
2010-03-05 16:54:43 +00:00
Richard G. Curtis 73d4992a2f OPENJPA-1545: Refactored detach code out of BrokerImpl.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@919475 13f79535-47bb-0310-9956-ffa450edef68
2010-03-05 16:32:37 +00:00
Richard G. Curtis 76d184c106 OPENJPA-1545: Adding new faster way to auto detach the entire persistence context. Committing code changes, test, and doc.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@918643 13f79535-47bb-0310-9956-ffa450edef68
2010-03-03 19:20:57 +00:00
Richard G. Curtis 64be0455c3 OPENJPA-1549: Optimize StateManagerImpl.proxyFields(..).
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@918245 13f79535-47bb-0310-9956-ffa450edef68
2010-03-02 23:09:13 +00:00
Richard G. Curtis a515a71fec OPENJPA-1548: Refactored ClassMetaData and cached hashCode() to improve performance.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@918167 13f79535-47bb-0310-9956-ffa450edef68
2010-03-02 20:04:42 +00:00
Michael Dick 06e6582ab8 OPENJPA-1500: Remove WriteBehind variable declarations in OpenJPAConfigImpl
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@917803 13f79535-47bb-0310-9956-ffa450edef68
2010-03-01 23:46:33 +00:00
Donald Woods 42769bd9d8 OPENJPA-1544 Remove WebSphere version number from org/apache/ee/localizer.properties. Patch contributed by Cathy Nordstrom.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@917572 13f79535-47bb-0310-9956-ffa450edef68
2010-03-01 16:24:31 +00:00
Donald Woods 4cb276067a OPENJPA-1538 Move hard coded text in OpenJPAVersion.java to localizer.properties. Patch contributed by Cathy Nordstrom.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@916757 13f79535-47bb-0310-9956-ffa450edef68
2010-02-26 17:03:25 +00:00
Richard G. Curtis eca02573ba OPENJPA-1542: Adding support for openjpa.DataCache Types and ExcludedTypes configuration back into trunk. Also updating TestCacheExclusions. No doc changes required as the user manual is up to date.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@916714 13f79535-47bb-0310-9956-ffa450edef68
2010-02-26 15:23:26 +00:00
Richard G. Curtis 767f670490 OPENJPA-1539: Allow DataCacheManagerImpl.isCachable(ClassMetaData meta) to cache the cacheability for each given type.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@916388 13f79535-47bb-0310-9956-ffa450edef68
2010-02-25 18:32:35 +00:00
Donald Woods daae61a6f5 OPENJPA-1535 Inconsistency in exceptions thrown from MetaDataRepository.resolve(). Patch contributed by Hiroki Tateno.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@916338 13f79535-47bb-0310-9956-ffa450edef68
2010-02-25 16:28:54 +00:00
Richard G. Curtis be33af366c OPENJPA-1531: Adding support for a interval style syntax in the openjpa.DataCache.EvictionSchedule property. Added code changes, test case, and doc.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@916052 13f79535-47bb-0310-9956-ffa450edef68
2010-02-25 00:11:33 +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
Catalina Wei 05e0669c07 OPENJPA-1533: JPA2 select math mix with aggregate reports syntax error
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@915725 13f79535-47bb-0310-9956-ffa450edef68
2010-02-24 08:55:07 +00:00
Albert Lee fa4b72d7f5 OPENJPA-1498 - Commit contribution by Cathy Nordstrom.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@915439 13f79535-47bb-0310-9956-ffa450edef68
2010-02-23 17:10:18 +00:00
Albert Lee 52e2d92544 Re-factor imports and use of generic in BrokerImpl.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@912477 13f79535-47bb-0310-9956-ffa450edef68
2010-02-22 04:29:45 +00:00
Donald Woods e512e15ba0 OPENJPA-1520 Compile for 1.6 and update javadoc links to use 1.6
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@911682 13f79535-47bb-0310-9956-ffa450edef68
2010-02-19 02:52:51 +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
Richard G. Curtis 3cd8c4c6f0 OPENJPA-1517: Reduce synchronization in LifecycleEventManager.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@911213 13f79535-47bb-0310-9956-ffa450edef68
2010-02-17 23:00:50 +00:00
Richard G. Curtis d037890f74 OPENJPA-1515: Make CacheStatistics configurable.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@910667 13f79535-47bb-0310-9956-ffa450edef68
2010-02-16 20:00:38 +00:00
Pinaki Poddar d82add658d OPENJPA-1503:Metamodel reflection with security manager
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@910617 13f79535-47bb-0310-9956-ffa450edef68
2010-02-16 17:46:00 +00:00
Milosz Tylenda e70d8bf5f2 Added GlassFish to javadoc and moved its JNDI location up in the list - see https://jira.jboss.org/jira/browse/JBCACHE-1354
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@909792 13f79535-47bb-0310-9956-ffa450edef68
2010-02-13 11:09:57 +00:00
Patrick Linskey 23341c871c OPENJPA-1509. In-mem bulk update + enums.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@909669 13f79535-47bb-0310-9956-ffa450edef68
2010-02-13 00:10:11 +00:00
Patrick Linskey e603bdc5c8 OPENJPA-1507. NPE fix.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@909515 13f79535-47bb-0310-9956-ffa450edef68
2010-02-12 17:38:45 +00:00
Pinaki Poddar feff96b4c4 OPENJPA-1334: Emulate 1.2 versions IncludedTypes/ExcludedTypes functionality via new distribution policy mechanics
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@909091 13f79535-47bb-0310-9956-ffa450edef68
2010-02-11 17:37:53 +00:00
Pinaki Poddar fb004027ad OPENJPA-1334: Emulate 1.2 versions IncludedTypes/ExcludedTypes functionality via new distribution policy mechanics
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@909054 13f79535-47bb-0310-9956-ffa450edef68
2010-02-11 16:18:46 +00:00
Donald Woods dc61fa0680 OPENJPA-1334 add missing license headers
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@908662 13f79535-47bb-0310-9956-ffa450edef68
2010-02-10 21:58:53 +00:00