Commit Graph

968 Commits

Author SHA1 Message Date
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
Fay Wang 4a987190d9 OPENJPA-1460: resolve visibility scope of orm.xml
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@908621 13f79535-47bb-0310-9956-ffa450edef68
2010-02-10 18:23:59 +00:00
Pinaki Poddar 92f162bd4b OPENJPA-1334: Separate distribution policy from DataCacheManager.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@908325 13f79535-47bb-0310-9956-ffa450edef68
2010-02-10 02:32:41 +00:00
Pinaki Poddar 6fa32719b9 OPENJPA-1334: Separate distribution policy from DataCacheManager.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@908322 13f79535-47bb-0310-9956-ffa450edef68
2010-02-10 02:26:31 +00:00
Pinaki Poddar ad3cf2c682 OPENJPA-1503: Use AccessController to load metamodel class.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@908225 13f79535-47bb-0310-9956-ffa450edef68
2010-02-09 21:13:44 +00:00
Fay Wang 31265de187 OPENJPA-1496: fix temporal parameter processing
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@908150 13f79535-47bb-0310-9956-ffa450edef68
2010-02-09 18:36:10 +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
Michael Dick a720a9c6f6 OPENJPA-1482:
Prevent NoSuchMethodError when calling setVersion.
Submitted By : Rick Curtis

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@905835 13f79535-47bb-0310-9956-ffa450edef68
2010-02-02 23:23:57 +00:00
Fay Wang 4197457c85 OPENJPA-1485: isLoaded util method should return true for an entity when an unloaded basic type is not in the fetch plan.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@903914 13f79535-47bb-0310-9956-ffa450edef68
2010-01-28 00:04:31 +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
Fay Wang c15f473949 OPENJPA-1460: back out the previous change until the visibility scope of orm.xml is fully agreed upon.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@902291 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 22:11:39 +00:00
Michael Dick c246a7a4b1 OPENJPA-1150:
Removing incomplete WriteBehind implementation.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@902113 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 15:20:03 +00:00
Richard G. Curtis 55d7af6e23 OPENJPA-1475: Exclude calling syncVersion() if an Entity doesn't have a version field. Patch submitted by Dianne Richards.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@901901 13f79535-47bb-0310-9956-ffa450edef68
2010-01-21 22:39:19 +00:00
Kevin W. Sutter 184cb41619 OPENJPA-1476. Turning off the QueryCache by default. The new default value for this property will be "false". Also, disabling the Write Behind testcases.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@901825 13f79535-47bb-0310-9956-ffa450edef68
2010-01-21 18:48:31 +00:00
Pinaki Poddar b94d23268f OPENJPA-1473: Replace null object with non-null default for aggregate expressions
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@901454 13f79535-47bb-0310-9956-ffa450edef68
2010-01-21 00:16:03 +00:00
Donald Woods 00c44aba43 OPENJPA-1460 Undo import of a spec api added in r900873, as openjpa-kernel does not have access to the spec api and should not by design.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@900931 13f79535-47bb-0310-9956-ffa450edef68
2010-01-19 19:48:39 +00:00