Patrick Linskey
0b8bf2818c
OPENJPA-156. Applied Michael Dick's patch (thanks). Updated symbolic constant to use OpenJPA norms, changed references to external symbolic constants to use constants from the map impl being used, and reduced if-else statements for readability.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@509793 13f79535-47bb-0310-9956-ffa450edef68
2007-02-20 22:51:50 +00:00
Pinaki Poddar
018cf3278a
Use safe and standard way to print a pc.toString() using Exceptions.toString(Object) when logging messages that may cause infinite loop.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@509691 13f79535-47bb-0310-9956-ffa450edef68
2007-02-20 18:08:22 +00:00
Pinaki Poddar
e3f8a96205
Prevent access to the pc fields by implictly invoking _pc.toString() as that may cause infinite loop if toString() again tries to access unloaded field(s)
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@509688 13f79535-47bb-0310-9956-ffa450edef68
2007-02-20 17:57:24 +00:00
A. Abram White
372b83736d
OPENJPA-150 : Re-use parseColumns method when parsing AttributeOverride columns
...
so that we get secondary table information.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@509674 13f79535-47bb-0310-9956-ffa450edef68
2007-02-20 17:37:18 +00:00
A. Abram White
1b446958f5
OPENJPA-146 : When copying an OID superclass field for re-mapping, revert type
...
to PC. It will re-resolve to OID on its own when the field's metadata is
resolved, and in the meantime it will ensure we use the same path for
metadata resolution as non-copied fields.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@509632 13f79535-47bb-0310-9956-ffa450edef68
2007-02-20 16:33:54 +00:00
Srinivasa Segu
4f102a7c77
Capturing reference to the Column[] at the creation time in the RowImpl instead of the Table, to work with DynamicSchemaFactory where the Table's columns can get modified after the creation of the RowImpl before the flush.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@509473 13f79535-47bb-0310-9956-ffa450edef68
2007-02-20 08:59:10 +00:00
Srinivasa Segu
09e7aab777
Capture the version fields into the memento when setting the savepoint and restore the version information into the StateManagerImpl as a part of the rollbackToSavepoint call.
...
Fix addresses OPENJPA-154.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@509411 13f79535-47bb-0310-9956-ffa450edef68
2007-02-20 02:00:50 +00:00
A. Abram White
8974a09908
Only substantive change is flipping the order of the args in an
...
ImplHelper.isAssignable call in FetchConfigurationImpl. We want to test
whether the type we're traversing to is derived from the type we're traversing
from.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@508459 13f79535-47bb-0310-9956-ffa450edef68
2007-02-16 16:02:05 +00:00
A. Abram White
4efc5d6997
Revert "full properties caching" changes made to ConfigurationImpl -- they're
...
causing problems on some appservers.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@508445 13f79535-47bb-0310-9956-ffa450edef68
2007-02-16 15:23:09 +00:00
Kevin W. Sutter
dfc102beba
OPENJPA-141. A few improvements to the performance-related changes done with the previous Issue. Reference OPENJPA-141 for details. Biggest change was moving some of the common caching code to ImplHelper.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@508395 13f79535-47bb-0310-9956-ffa450edef68
2007-02-16 13:52:08 +00:00
A. Abram White
7a2330ce3b
Compare Configuration instances on their full properties, including defaults.
...
Also serialize the full properties because product derivations aren't re-run
on deserialize, so we need to know the complete defaults, etc. We still track
the user-given properties separately so they can be used in factory pooling.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@507643 13f79535-47bb-0310-9956-ffa450edef68
2007-02-14 17:53:13 +00:00
A. Abram White
611932c86b
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@507152 13f79535-47bb-0310-9956-ffa450edef68
2007-02-13 18:44:15 +00:00
Marc Prud'hommeaux
1bef88aeb7
Added integration test for examples included in the package
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@506906 13f79535-47bb-0310-9956-ffa450edef68
2007-02-13 08:31:32 +00:00
Marc Prud'hommeaux
01eddbee80
Removed dev.java.net repository since we no longer need it.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@506902 13f79535-47bb-0310-9956-ffa450edef68
2007-02-13 08:17:45 +00:00
Marc Prud'hommeaux
ac5aa0823d
Changed JPA API dependency from javax.persistence/persistence-api to org.apache.geronimo.specs/geronimo-jpa_3.0_spec since the latter is a more correct reflection of the specification.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@506898 13f79535-47bb-0310-9956-ffa450edef68
2007-02-13 08:09:18 +00:00
Marc Prud'hommeaux
db07362e27
Made entity classes non-final to conform to spec requirements.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@506342 13f79535-47bb-0310-9956-ffa450edef68
2007-02-12 07:12:06 +00:00
Kevin W. Sutter
e14378f7f3
OPENJPA-138. Some updates to help with performance of OpenJPA in an application server environment. Details can be found in the OPENJPA-138 Issue.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@506230 13f79535-47bb-0310-9956-ffa450edef68
2007-02-12 02:33:05 +00:00
Marc Prud'hommeaux
7d0839f9ff
Added extra debugging logic to make sure the default company model deserailizes from the companies.xml file.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@505825 13f79535-47bb-0310-9956-ffa450edef68
2007-02-11 02:35:33 +00:00
Marc Prud'hommeaux
ecf428bd69
Upgrade Derby dependency from 10.2.1.6 to 10.2.2.0
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@505565 13f79535-47bb-0310-9956-ffa450edef68
2007-02-09 23:52:57 +00:00
Marc Prud'hommeaux
d36faee0ab
Fixed incorrect directory location for company model
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@505515 13f79535-47bb-0310-9956-ffa450edef68
2007-02-09 21:50:41 +00:00
Marc Prud'hommeaux
b8d3750346
Restored TCK logic that I accidentally deleted.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@505197 13f79535-47bb-0310-9956-ffa450edef68
2007-02-09 06:16:07 +00:00
Marc Prud'hommeaux
3bacfce53c
Added resource necessary for loading company model tests
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@505188 13f79535-47bb-0310-9956-ffa450edef68
2007-02-09 05:37:11 +00:00
Marc Prud'hommeaux
195d5ddd6c
Corrected issue with revision 505052 to ensure that isAssignable(from, to) passes if one element is null and the other element is an empty array (which indicates a compatible method signature).
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@505166 13f79535-47bb-0310-9956-ffa450edef68
2007-02-09 04:05:20 +00:00
Marc Prud'hommeaux
7f523e0ba9
Changes to deal with never version of the TCK.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@505161 13f79535-47bb-0310-9956-ffa450edef68
2007-02-09 03:51:48 +00:00
Marc Prud'hommeaux
02f2cedb73
Added multiple different implementations of the same data model for flexibility testing; added a helper test case from which other tests can be extended to easily perform persistence operations
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@505160 13f79535-47bb-0310-9956-ffa450edef68
2007-02-09 03:49:22 +00:00
Marc Prud'hommeaux
a384218429
Changed assertion to check for javax.persistence.PersistenceException rather than org.apache.openjpa.persistence.PersistenceException, since the API may wrap the PersistenceException.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@505159 13f79535-47bb-0310-9956-ffa450edef68
2007-02-09 03:45:17 +00:00
Kevin W. Sutter
7ea424bf0b
OPENJPA-139. Need to include JavaTypes.CALENDAR in the switch statement when attempting to attach a field of type CALENDAR.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@505099 13f79535-47bb-0310-9956-ffa450edef68
2007-02-09 00:34:44 +00:00
A. Abram White
0a072b8a50
Fix possible NPE introduced in recent changes to MethodLifecycleCallbacks.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@505052 13f79535-47bb-0310-9956-ffa450edef68
2007-02-08 22:12:06 +00:00
A. Abram White
a2be03e9cb
Add a DiscriminatorStrategy.hasClassConditions() method rather than having the
...
DiscriminatorStrategy.getClassConditions() method return null for no conditions
so that we can detect whether the joins to the base class owning the
discriminator are necessary before making them. Otherwise, we run the risk of
creating table aliases for base class tables without joining them, which can
result in bad SQL.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@505017 13f79535-47bb-0310-9956-ffa450edef68
2007-02-08 19:36:33 +00:00
Kevin W. Sutter
859da3f913
OPENJPA-133. Change the processing of the getMethod() method to properly recognize non-public callback methods, along with validating the parameter types.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@504970 13f79535-47bb-0310-9956-ffa450edef68
2007-02-08 17:21:19 +00:00
Patrick Linskey
485cfd37ca
test cases for agreed-upon callback behavior
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@504411 13f79535-47bb-0310-9956-ffa450edef68
2007-02-07 02:01:54 +00:00
Pinaki Poddar
c13e2baab7
Dynamic implementation class of a subInterface is loaded with the classloader of the dynamic implementaion of the superInterface.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@504216 13f79535-47bb-0310-9956-ffa450edef68
2007-02-06 17:46:33 +00:00
Kevin W. Sutter
326df83bb2
Use single line commenting style (//) instead of the block commenting style (/*..*/).
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@503757 13f79535-47bb-0310-9956-ffa450edef68
2007-02-05 16:18:23 +00:00
A. Abram White
8d288589c2
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@503744 13f79535-47bb-0310-9956-ffa450edef68
2007-02-05 16:01:09 +00:00
Kevin W. Sutter
d826caf711
OPENJPA-119. Needed to allow the EM.clear operation to perform without doing an implicit flush. Introduced a new boolean
...
parameter to indicate whether a flush is desired or not. This allows both the new (correct) behaviour for JPA as well as the
old behaviour for other persistence personalities (JDO, etc). I also introduced a new testcase for this scenario, and updated
a couple of other tests.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502751 13f79535-47bb-0310-9956-ffa450edef68
2007-02-02 21:12:35 +00:00
Marc Prud'hommeaux
9b78cd5441
Changed openjpac task to be called "enhance" instead..
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502699 13f79535-47bb-0310-9956-ffa450edef68
2007-02-02 19:39:14 +00:00
Patrick Linskey
84763ce94e
OPENJPA-37: changed kodoc to openjpac
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502394 13f79535-47bb-0310-9956-ffa450edef68
2007-02-01 23:04:22 +00:00
Kevin W. Sutter
3c58b8840c
Changes for OPENJPA-115. Removed the explicit lock/unlock invocations when obtaining an EM (broker). Changed
...
_brokers to use ConcurrentReferenceHashSet (with weak references). And, due to the weak references (probable
cause), I had to check for nulls when iterating through the _brokers during the close processing.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502392 13f79535-47bb-0310-9956-ffa450edef68
2007-02-01 22:53:20 +00:00
Patrick Linskey
0b60936d33
OPENJPA-37
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502374 13f79535-47bb-0310-9956-ffa450edef68
2007-02-01 22:03:31 +00:00
A. Abram White
2e0c5d576c
Avoid NPE.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502369 13f79535-47bb-0310-9956-ffa450edef68
2007-02-01 21:58:20 +00:00
Craig Russell
a5dcfc91fa
OPENJPA-122 Removed unnecessary import
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502352 13f79535-47bb-0310-9956-ffa450edef68
2007-02-01 20:49:11 +00:00
Craig Russell
cde63a4306
OPENJPA-122 Added test for throwing IllegalStateException after EntityManager.close
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502341 13f79535-47bb-0310-9956-ffa450edef68
2007-02-01 20:05:16 +00:00
Pinaki Poddar
a11158d51a
Classloader used to generate dynamic implementaion of managed interface uses interfaces' classloader as parent
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502326 13f79535-47bb-0310-9956-ffa450edef68
2007-02-01 19:36:21 +00:00
Craig Russell
862cd158ed
OPENJPA-122 Added check for methods that require the EntityManager to be open but where the Broker would throw a different exception
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502325 13f79535-47bb-0310-9956-ffa450edef68
2007-02-01 19:35:30 +00:00
A. Abram White
11e3835d5f
Clear bytecode Project of ProxyManagerImpl to save memory.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502277 13f79535-47bb-0310-9956-ffa450edef68
2007-02-01 16:40:26 +00:00
Marc Prud'hommeaux
2ac1bcccbb
OPENJPA-118: Implemented patch provided by David Ezzio for broken openjpa.AutoDetach behavior
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502022 13f79535-47bb-0310-9956-ffa450edef68
2007-01-31 22:27:29 +00:00
Kevin W. Sutter
aeafc39d3d
Simple test for OPENJPA-116. Just modified the simple TestPersistence testcase with a new variation for testing the exception on getDelegate() when the EM is closed.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@501955 13f79535-47bb-0310-9956-ffa450edef68
2007-01-31 19:27:11 +00:00
Marc Prud'hommeaux
67a73ee0ea
Changed docbook build mechanism to no longer manually download the docbook files from sourgeforge.net, and instead have the docbook files be a maven dependency, and access the dependency directly. This is mainly because they removed the old file from http://docbook.sourceforge.net/release/xsl that we were relying on, but has the side-benefit of removing one network-sensitive component from the release build probless. Unfortunately, this also means that we need to downgrade from version 1.69.1 to 1.67.2 of the docbook stylesheets (since the Maven repository doesn't yet have the newer versions), but that doesn't appear to have any visible effects.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@501704 13f79535-47bb-0310-9956-ffa450edef68
2007-01-31 03:08:42 +00:00
Marc Prud'hommeaux
4cb55c6210
Use "settings.localRepository" instead if "{user.home}/.m2" to handle non-standard repository locations.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@501700 13f79535-47bb-0310-9956-ffa450edef68
2007-01-31 03:00:20 +00:00
Marc Prud'hommeaux
593977b05a
Un-did last change, since maven.home doesn't actually work.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@501696 13f79535-47bb-0310-9956-ffa450edef68
2007-01-31 02:47:00 +00:00