A. Abram White
056ecf52fd
Exception translation when a managed transaction completion even causes an
...
error.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@491994 13f79535-47bb-0310-9956-ffa450edef68
2007-01-03 00:48:59 +00:00
Patrick Linskey
a255da6f65
submitting patches for OPENJPA-92. I have not tested them aside from compiling and running the regression tests (against Derby).
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@491148 13f79535-47bb-0310-9956-ffa450edef68
2006-12-30 01:38:33 +00:00
Patrick Linskey
4611bf9e43
Code changes for OPENJPA-93: sequence maintainance in JTA env without non-JTA datasource. This has been nominally tested in WebLogic Server.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@491147 13f79535-47bb-0310-9956-ffa450edef68
2006-12-30 01:20:55 +00:00
Kevin W. Sutter
6cb121e192
Changes for JIRA OPENJPA-77 issue.
...
These changes allow the use of the DB2Dictionary with DB2 on z/OS. May need more in the future, but these will get us started...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@491027 13f79535-47bb-0310-9956-ffa450edef68
2006-12-29 15:19:17 +00:00
A. Abram White
6c4a0dd4af
Fix bug in XML metadata serialization order of properties. Add target-entity
...
to serialized properties when appropriate.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@489778 13f79535-47bb-0310-9956-ffa450edef68
2006-12-22 22:11:06 +00:00
Srinivasa Segu
8264feb2d6
Check for null to handle the current thread's Context ClassLoader being null
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@489777 13f79535-47bb-0310-9956-ffa450edef68
2006-12-22 22:06:17 +00:00
Srinivasa Segu
89f0148fb3
Fix - DetachedStateManager to dirty the owning metadata in case of a dirtied embedded field
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@489772 13f79535-47bb-0310-9956-ffa450edef68
2006-12-22 21:34:48 +00:00
Srinivasa Segu
2508046403
Fix - return the qualified SecondaryTableName
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@489768 13f79535-47bb-0310-9956-ffa450edef68
2006-12-22 21:21:19 +00:00
Srinivasa Segu
fdabcf6f03
Use fetch - needed to handle autoassign value-strategy
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@489761 13f79535-47bb-0310-9956-ffa450edef68
2006-12-22 20:58:43 +00:00
Srinivasa Segu
414a5d474d
Reset the SM to the old value, instead of nulling out.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@489750 13f79535-47bb-0310-9956-ffa450edef68
2006-12-22 20:38:01 +00:00
A. Abram White
8b6406724b
Always merge new MetaDataFactory settings with any previous settings
...
because many of its properties are often set implicitly and aren't meant to
erase other settings.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@489520 13f79535-47bb-0310-9956-ffa450edef68
2006-12-22 00:21:17 +00:00
A. Abram White
aecff50b27
Stop enhancing entity identity classes to make non-public properties public for
...
access by the various identity object manipulation methods of the enhanced
entity class. This caused problems with runtime enhancement if the identity
class was loaded before the entity class. Instead, rely on reflection to
access non-public identity class members.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@489408 13f79535-47bb-0310-9956-ffa450edef68
2006-12-21 17:08:38 +00:00
Marc Prud'hommeaux
fee371db06
Put in missing check for a NOT clause when short-circuiting an IN expression that has a single value.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@487926 13f79535-47bb-0310-9956-ffa450edef68
2006-12-17 01:10:19 +00:00
Marc Prud'hommeaux
25988d2793
Convert single values into Collections in order to support varargs "IN" expressions.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@487925 13f79535-47bb-0310-9956-ffa450edef68
2006-12-17 00:59:59 +00:00
Marc Prud'hommeaux
d98ca1d91d
Fixed error in substring range check.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@487923 13f79535-47bb-0310-9956-ffa450edef68
2006-12-17 00:31:48 +00:00
Patrick Linskey
264356a23f
created methods for interacting with product prefixes; moved configuration loading mechanisms to these new methods
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@487919 13f79535-47bb-0310-9956-ffa450edef68
2006-12-16 23:58:54 +00:00
Pinaki Poddar
3db7e32a56
A single class may not have more than one lifecycle callback method for the same lifecycle event (spec section 3.5).
...
The contraint applies irrespective of whether the class is a persistent bean or a listener or both.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@487652 13f79535-47bb-0310-9956-ffa450edef68
2006-12-15 20:35:26 +00:00
A. Abram White
87b5ae1f4f
JIRA OPENJPA-90
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@487605 13f79535-47bb-0310-9956-ffa450edef68
2006-12-15 18:00:30 +00:00
A. Abram White
f48441c17a
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@487421 13f79535-47bb-0310-9956-ffa450edef68
2006-12-15 01:38:44 +00:00
A. Abram White
d823825a34
Allow configurable set of known unproxyable types.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@487410 13f79535-47bb-0310-9956-ffa450edef68
2006-12-15 00:55:14 +00:00
Marc Prud'hommeaux
847b33aa6e
Allow updating in-memory values with complex expressions, rather than just simple Constants and Literals.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@487403 13f79535-47bb-0310-9956-ffa450edef68
2006-12-15 00:04:53 +00:00
Marc Prud'hommeaux
53614b371f
Prevent the end range of a substring from going over the end of the string.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@487401 13f79535-47bb-0310-9956-ffa450edef68
2006-12-15 00:04:14 +00:00
A. Abram White
4e85c5eb84
Making loading of build-time generated proxies overridable by subclasses.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@487382 13f79535-47bb-0310-9956-ffa450edef68
2006-12-14 23:07:19 +00:00
A. Abram White
597930f15a
JPA says an EM should act closed when close() has been invoked even if the
...
persistence context remains open while the current managed transaction
completes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@487339 13f79535-47bb-0310-9956-ffa450edef68
2006-12-14 20:27:16 +00:00
A. Abram White
d8be93089c
Generate proxies for all standard java.util types during jar packaging.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@486852 13f79535-47bb-0310-9956-ffa450edef68
2006-12-13 21:58:59 +00:00
A. Abram White
d6dbadaa3c
Option to create proxies for standard java.util types at build time. These
...
proxies can be serialized as proxies for use with detached state managers,
whereas runtime-generated proxies have to serialize themselves as a copied
instance of their corresponding java.util type in case they are transferred to
a different classloading environment.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@486825 13f79535-47bb-0310-9956-ffa450edef68
2006-12-13 20:14:26 +00:00
Pinaki Poddar
dfca20d465
Processing <metadata-complete> and <xml-mapping-metadata-complete>
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@486446 13f79535-47bb-0310-9956-ffa450edef68
2006-12-13 01:16:40 +00:00
Marc Prud'hommeaux
148d8f8df2
Wrap non-Collection arguments in Collections so that the query language can support having both varargs "in" clauses as well as clauses that take a Collection parameter.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@486429 13f79535-47bb-0310-9956-ffa450edef68
2006-12-13 00:26:47 +00:00
A. Abram White
74589c8ae1
Use most derived available classloader when loading plugins so that we can
...
load application classes when the application uses a derived loader.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@486424 13f79535-47bb-0310-9956-ffa450edef68
2006-12-13 00:16:33 +00:00
Marc Prud'hommeaux
0ffb985316
Allow the parameter to an IN(?) expression to be a Collection type, which allows variable-length IN parameters. The spec is a little vague about whether this should be allowed or not, but there's no reason not to support it.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@485967 13f79535-47bb-0310-9956-ffa450edef68
2006-12-12 00:40:22 +00:00
A. Abram White
6dff15b02f
Serialize proxies to non-proxy copies.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@485960 13f79535-47bb-0310-9956-ffa450edef68
2006-12-12 00:06:28 +00:00
A. Abram White
600d949140
Copy all calendar parameters that go towards equals() comparisons.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@485809 13f79535-47bb-0310-9956-ffa450edef68
2006-12-11 18:54:00 +00:00
A. Abram White
9dcdd3a35d
Improved error message.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@485804 13f79535-47bb-0310-9956-ffa450edef68
2006-12-11 18:41:30 +00:00
A. Abram White
d85fbdee04
Fix calendar proxy bug.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@484900 13f79535-47bb-0310-9956-ffa450edef68
2006-12-09 03:08:52 +00:00
A. Abram White
7b91f91273
Bytecode proxy fixes.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@484868 13f79535-47bb-0310-9956-ffa450edef68
2006-12-09 00:54:39 +00:00
A. Abram White
db174a9512
Better error message when attempting to proxy final class.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@484815 13f79535-47bb-0310-9956-ffa450edef68
2006-12-08 21:54:27 +00:00
A. Abram White
770abf1aa8
Don't proxy final classes.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@484812 13f79535-47bb-0310-9956-ffa450edef68
2006-12-08 21:52:41 +00:00
A. Abram White
d44b353278
Document capabilities of new proxy manager.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@484738 13f79535-47bb-0310-9956-ffa450edef68
2006-12-08 20:20:22 +00:00
A. Abram White
e54b0c1908
Move to dynamically-created bytecode proxies for second class objects, rather
...
than checked-in proxy classes. This allows us to proxy custom collection,
map, and bean types.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@484693 13f79535-47bb-0310-9956-ffa450edef68
2006-12-08 18:32:07 +00:00
Pinaki Poddar
db25f08565
Terminate loop when connection attempt succeeds.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@483176 13f79535-47bb-0310-9956-ffa450edef68
2006-12-06 19:02:19 +00:00
Pinaki Poddar
4a03860c2f
Not using the cached version of zip file.
...
For deploy-undeploy-redeply, the iterator was holding stale reference
to the cached zip content. The 'close' flag is no more required,
the zip file is closed as dictated by the user of the iterator.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@482831 13f79535-47bb-0310-9956-ffa450edef68
2006-12-05 23:57:57 +00:00
A. Abram White
ee33aa7af3
Default name fix.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@482775 13f79535-47bb-0310-9956-ffa450edef68
2006-12-05 20:49:11 +00:00
A. Abram White
d5fb9486ba
Add backward compat property doc.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@482747 13f79535-47bb-0310-9956-ffa450edef68
2006-12-05 19:29:37 +00:00
A. Abram White
87dc2aad7c
Correct bug in our default for the name of an inverse join column within a
...
join table. Added configurable property for users to retain the old defaulting
for compatibility if desired.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@482737 13f79535-47bb-0310-9956-ffa450edef68
2006-12-05 18:54:46 +00:00
Craig Russell
a836ea3f34
Added property svn:eol-style=native
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@482329 13f79535-47bb-0310-9956-ffa450edef68
2006-12-04 20:02:09 +00:00
Craig Russell
b8710bea03
Added property svn:eol-style=native
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@482327 13f79535-47bb-0310-9956-ffa450edef68
2006-12-04 19:59:52 +00:00
Marc Prud'hommeaux
eb9a626945
Fixed bug where we weren't copying the nanoseconds when the Timestamp is cloned.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@482308 13f79535-47bb-0310-9956-ffa450edef68
2006-12-04 19:32:54 +00:00
Kevin W. Sutter
dbcdfb9ff9
Include the original exception that caused the ClassFormatError to be thrown.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@482191 13f79535-47bb-0310-9956-ffa450edef68
2006-12-04 14:43:30 +00:00
Kevin W. Sutter
970f647622
Resolving JIRA report OPENJPA-63 for better pessimistic lock support for DB2. Instead of the usual "for update" clause, db2 dictionary will now use "with rr use and keep update locks" clause.
...
A couple of additional changes were necessary to properly detect the version of DB2 currently in use.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@482189 13f79535-47bb-0310-9956-ffa450edef68
2006-12-04 14:42:09 +00:00
Marc Prud'hommeaux
ca45e3292a
Changed syncWithManagedTransaction to return true if a transaction is already active (rather than throwing an exception), since section 5.9.2 of the JPA spec suggests that it should be legal to invoke EntityManager.joinTransaction() multiple times.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@480301 13f79535-47bb-0310-9956-ffa450edef68
2006-11-29 00:28:04 +00:00