Patrick Linskey
5c4a8c7e73
OPENJPA-70. Added new RemoteCommitEvent payload type and logic to fire RemoteCommitEvents when stale records are detected. This logic still gets fired via afterCommit(), even though these checks can happen either after a commit or a flush is issued. Additionally, these events are only fired against local listeners, so actually represent local analysis that is detecting remote events, rather than remote events themselves.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@552059 13f79535-47bb-0310-9956-ffa450edef68
2007-06-29 23:08:41 +00:00
Patrick Linskey
1b9d1e2d12
OPENJPA-262. Added test case for lifecycle and tx registries in BrokerFactories. Also discovered that BEFORE_PERSIST listeners (and possibly a couple of others) were not being invoked; fixed-by-inspection and simplified the registration of types in the lifecycle event handler.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@551885 13f79535-47bb-0310-9956-ffa450edef68
2007-06-29 13:18:26 +00:00
Patrick Linskey
ffdbc5ae9c
OPENJPA-262. Added transaction callback registry to BrokerFactory as well, to parallel lifecycle callback structure
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@551849 13f79535-47bb-0310-9956-ffa450edef68
2007-06-29 11:04:51 +00:00
Patrick Linskey
5a23d0455d
Improved error messages
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@551845 13f79535-47bb-0310-9956-ffa450edef68
2007-06-29 10:53:05 +00:00
Kevin W. Sutter
e65f53b43d
OPENJPA-61. Marc's patch tests out okay with WebSphere. I made a couple of minor cosmetic changes to the
...
patch. We need to get this into the stream for additional testing and verification by other application servers.
So, let's go for it...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@550898 13f79535-47bb-0310-9956-ffa450edef68
2007-06-26 18:22:06 +00:00
Patrick Linskey
0dde3fdbfa
OPENJPA-262. Added @since tag.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@550187 13f79535-47bb-0310-9956-ffa450edef68
2007-06-24 09:19:56 +00:00
Patrick Linskey
39f1071085
OPENJPA-262
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@550185 13f79535-47bb-0310-9956-ffa450edef68
2007-06-24 09:16:57 +00:00
Pinaki Poddar
a39a2dace9
Return gracefully when no class found for enhancement. Without this check raises NPE.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@549405 13f79535-47bb-0310-9956-ffa450edef68
2007-06-21 06:18:33 +00:00
David J. Wisneski
8bf89a655a
OPENJPA-240, packaging/renaming/JAXB dependency cleanups
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@548834 13f79535-47bb-0310-9956-ffa450edef68
2007-06-19 19:44:58 +00:00
Marc Prud'hommeaux
79827a90f6
Remove use of JDK 1.5-only method String.contains().
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@548431 13f79535-47bb-0310-9956-ffa450edef68
2007-06-18 18:18:55 +00:00
Patrick Linskey
9f0a7ff545
OPENJPA-259. Applied Craig's patch (minus the ACK char; maybe Craig meant ^L instead?), and added a test case. The test uses dynamic JPQL, but the parser change should work for XML-based named queries also, and it seems fair to allow newlines in dynamic strings as well.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@547872 13f79535-47bb-0310-9956-ffa450edef68
2007-06-16 06:54:12 +00:00
David J. Wisneski
3aac689d56
OPENJPA-240 Feature:Persistent field mapping support for XML column type.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@547833 13f79535-47bb-0310-9956-ffa450edef68
2007-06-15 23:45:14 +00:00
Pinaki Poddar
90d053f4ef
Resolve Getter/Setter type inconsistency in Entity IdClass.
...
Reflects to find setter method in Application Identity class with correct parameter type.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@547073 13f79535-47bb-0310-9956-ffa450edef68
2007-06-14 01:08:25 +00:00
Marc Prud'hommeaux
0091bcabe3
Added a 'java14.jar' property that can be used to specify the location of the JDK 1.4 runtime jar, against which we will compile the JDK 1.4-specific modules. This can be used to ensure that JDK 1.5-specific methods and classes don't slip into the JDK 1.4 modules.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@546768 13f79535-47bb-0310-9956-ffa450edef68
2007-06-13 07:50:11 +00:00
Marc Prud'hommeaux
3599a48964
Moving version to 1.0.0-SNAPSHOT as a result of mailing list vote
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@541929 13f79535-47bb-0310-9956-ffa450edef68
2007-05-26 19:18:37 +00:00
Marc Prud'hommeaux
0e19b714ac
Changed version from 0.9.8-incubating-SNAPSHOT to 0.9.8-SNAPSHOT to reflect move from incubation to TLP
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@540829 13f79535-47bb-0310-9956-ffa450edef68
2007-05-23 03:36:05 +00:00
Marc Prud'hommeaux
75e59a4e65
Test commit for new repository.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@540826 13f79535-47bb-0310-9956-ffa450edef68
2007-05-23 03:10:18 +00:00
Marc Prud'hommeaux
bc0c353ef0
OPENJPA-148 Fixed incorrect import of non-existent ClassLoaderMetaDataIterator in patched file
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@540301 13f79535-47bb-0310-9956-ffa450edef68
2007-05-21 21:17:02 +00:00
Marc Prud'hommeaux
04397f562e
OPENJPA-148 Applied follow-up patch that resolved potential NPEs
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@540283 13f79535-47bb-0310-9956-ffa450edef68
2007-05-21 20:45:09 +00:00
Marc Prud'hommeaux
81e89bcd80
Formatting fix.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@539813 13f79535-47bb-0310-9956-ffa450edef68
2007-05-20 01:25:52 +00:00
Patrick Linskey
add6a29be4
OPENJPA-230. Fixed dependency on not-yet-checked-in class.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@537227 13f79535-47bb-0310-9956-ffa450edef68
2007-05-11 16:37:15 +00:00
Patrick Linskey
15b0b59f25
OPENJPA-230. Updated patch based on an out-of-band patch from Vishal. This version avoids interrupts while still handling guaranteed delivery of messages in the queue.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@537221 13f79535-47bb-0310-9956-ffa450edef68
2007-05-11 16:12:07 +00:00
Marc Prud'hommeaux
a92785fea6
OPENJPA-194 Changed openjpa-all-VERSION.jar to be just openjpa-VERSION.jar, and changes openjpa-project-VERSION.zip to be apache-openjpa-VERSION.zip
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@536693 13f79535-47bb-0310-9956-ffa450edef68
2007-05-09 22:23:54 +00:00
Patrick Linskey
d9fbb9cc11
Propagate the provided classloader further into the PCEnhancer call stack.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@536001 13f79535-47bb-0310-9956-ffa450edef68
2007-05-07 21:38:20 +00:00
Marc Prud'hommeaux
e422a7d179
OPENJPA-148 Applied the rest of the patch for this bug.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@535321 13f79535-47bb-0310-9956-ffa450edef68
2007-05-04 16:36:15 +00:00
Marc Prud'hommeaux
2f4cafdcfb
OPENJPA-148 Fix for scanning directories for persistent types.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@535139 13f79535-47bb-0310-9956-ffa450edef68
2007-05-04 09:31:17 +00:00
Patrick Linskey
43c931014a
OPENJPA-226
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@533218 13f79535-47bb-0310-9956-ffa450edef68
2007-04-27 20:46:03 +00:00
Patrick Linskey
b2beaec634
OPENJPA-229
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@532805 13f79535-47bb-0310-9956-ffa450edef68
2007-04-26 17:17:10 +00:00
Marc Prud'hommeaux
0819749391
Fixed MetaDataException to take a nested Throwable argument (which is the common case) instead of a FailedObject Object argument (which many of the existing constructions of MetaDataException are erronously using with a nested Throwable argument)
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@532524 13f79535-47bb-0310-9956-ffa450edef68
2007-04-25 23:13:12 +00:00
Patrick Linskey
f7770883a4
Usability improvements discovered while working on OPENJPA-228. When loading enumerated types in the enhancer, pass them to serp as strings rather than as classes. This permits the use case where a subclass and superclass are both compiled and enhanced, and then the superclass is recompiled, and the subclass and superclass are both listed in persistence.xml, and the enhancer is then invoked.
...
Similarly, treat NoSuchMethodErrors that contain the string '.pc' as warnings rather than errors in MetaDataRepository.classForName().
Finally, changed MetaDataRepository errors to stringify internal data sets eagerly, to avoid leaking incorrect information into error messages.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@532273 13f79535-47bb-0310-9956-ffa450edef68
2007-04-25 09:19:51 +00:00
Patrick Linskey
14ba7eed94
Added OpenJPAVersion.RELEASE_STATUS to log messages to more completely encapsulate version data.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@532151 13f79535-47bb-0310-9956-ffa450edef68
2007-04-25 00:17:23 +00:00
Patrick Linskey
0e7feca04a
OPENJPA-219. Avoid Class.getDeclaredField() / Class.getDeclaredMethod() in Reflection, since they throw exceptions as a side-effect. Also contains assorted clean-up in ClassMetaData.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@532137 13f79535-47bb-0310-9956-ffa450edef68
2007-04-24 23:34:46 +00:00
A. Abram White
9e044de7a7
Fix broken functionality in allowing users to construct a custom application
...
oid from its stringified form.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@532057 13f79535-47bb-0310-9956-ffa450edef68
2007-04-24 19:53:37 +00:00
A. Abram White
44c97873fb
Fix bytecode generation to use new FetchConfiguration.requiresFetch signature.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@532039 13f79535-47bb-0310-9956-ffa450edef68
2007-04-24 18:43:43 +00:00
Marc Prud'hommeaux
640cddad04
Updated license headers to be in accordance with http://www.apache.org/legal/src-headers.html
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@528881 13f79535-47bb-0310-9956-ffa450edef68
2007-04-14 21:50:17 +00:00
Michael Dick
4ea1c3f738
adding license to java files
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@527728 13f79535-47bb-0310-9956-ffa450edef68
2007-04-11 23:52:54 +00:00
A. Abram White
3885031a89
OPENJPA-214 : Support float and double fields as single-field identity primary
...
keys.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@527648 13f79535-47bb-0310-9956-ffa450edef68
2007-04-11 20:25:11 +00:00
A. Abram White
b4a3a77840
OPENJPA-134 : When we're performing eager fetches and we can detect that we're
...
already fetching the owning side of a bidi relation, cut off eager selecting
and loading when we come across the back-ptr to the owner again.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@527565 13f79535-47bb-0310-9956-ffa450edef68
2007-04-11 16:21:13 +00:00
Marc Prud'hommeaux
0806fd5b44
OPENJPA-208 Added NoResultException and NonUniqueResultException to kernel to allow the identification of the case where a unique result was selected by either none or too many were found
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@526834 13f79535-47bb-0310-9956-ffa450edef68
2007-04-09 17:06:23 +00:00
Michael Dick
7fd119e840
updating trunk version
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@526476 13f79535-47bb-0310-9956-ffa450edef68
2007-04-07 19:54:18 +00:00
A. Abram White
31c7a575e7
Remove unneeded import.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@526259 13f79535-47bb-0310-9956-ffa450edef68
2007-04-06 19:27:52 +00:00
A. Abram White
60a1e54f07
OPENJPA-202 : Don't detach LRS fields.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@526253 13f79535-47bb-0310-9956-ffa450edef68
2007-04-06 19:17:44 +00:00
A. Abram White
1c8f82b810
Move LockManager API back to using int timeouts, since that's the way they're
...
handled elsewhere (FetchConfiguration, Broker, etc). Only use the lock timeout
on a forUpdate query if it is greater than the configured query timeout.
Selects that are made *only* to lock a row (rather than to query data, with
locking as a side effect) still use the lock timeout exclusively, ignoring the
query timeout.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@526192 13f79535-47bb-0310-9956-ffa450edef68
2007-04-06 15:08:39 +00:00
Srinivasa Segu
e541936463
OPENJPA-203.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@525950 13f79535-47bb-0310-9956-ffa450edef68
2007-04-05 20:06:24 +00:00
Marc Prud'hommeaux
10bdc61b91
OPENJPA-196 Removed the requirement that the number of positional parameters assigned to a query correspond exactly to the number of positional parameters declared in that query.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@524939 13f79535-47bb-0310-9956-ffa450edef68
2007-04-02 21:59:21 +00:00
A. Abram White
8167400e51
Bring some consistency to test case structure. Now all persistent test cases
...
extend SingleEMFTestCase or SingleEMTestCase as appropriate. These base test
cases contain utilties for initializing the EMF on setup and deleting any
inserted database records and closing the EMF on teardown.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@524228 13f79535-47bb-0310-9956-ffa450edef68
2007-03-30 18:45:15 +00:00
A. Abram White
1679c05c89
Cleanup and fixes to changes for OPENJPA-168.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@523425 13f79535-47bb-0310-9956-ffa450edef68
2007-03-28 17:43:35 +00:00
David J. Wisneski
fee930886b
fixing indentation and few changes suggested by Abe for OpenJPA patch-168
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@523071 13f79535-47bb-0310-9956-ffa450edef68
2007-03-27 20:47:21 +00:00
A. Abram White
f7aef45814
OPENJPA-181 : Fix class cast exception by passing along the StoreQuery context
...
whenever we pass around an Executor, so that the StoreQuery and Executor are
always matched.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@523046 13f79535-47bb-0310-9956-ffa450edef68
2007-03-27 19:24:54 +00:00
A. Abram White
df02d831e2
Only process registered classes that are listed as belonging to this persistence
...
unit.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@522623 13f79535-47bb-0310-9956-ffa450edef68
2007-03-26 20:52:14 +00:00