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
Patrick Linskey
16f78782dd
fixed bug that caused cached JPQL queries to not properly cache the candidate class.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@479942 13f79535-47bb-0310-9956-ffa450edef68
2006-11-28 08:27:14 +00:00
Patrick Linskey
8015a253b6
fixed typo
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@479940 13f79535-47bb-0310-9956-ffa450edef68
2006-11-28 08:16:34 +00:00
Patrick Linskey
07dadf5564
removed duplicate info; added category data
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@477948 13f79535-47bb-0310-9956-ffa450edef68
2006-11-21 22:53:42 +00:00
Marc Prud'hommeaux
25b0d9628e
Added mention of where orm-xsd.rsrc and persistence-xsd.rsrc came from.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@477468 13f79535-47bb-0310-9956-ffa450edef68
2006-11-21 01:58:32 +00:00
Marc Prud'hommeaux
99bd6a7b54
Added DISCLAIMER.txt to the built jar files along with NOTICE.txt and LICENSE.txt.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@477458 13f79535-47bb-0310-9956-ffa450edef68
2006-11-21 01:29:57 +00:00
Marc Prud'hommeaux
11de85694c
Added mention that the orm-xsd.rsrc and persistence-xsd.rsrc files are released under the CDDL.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@477457 13f79535-47bb-0310-9956-ffa450edef68
2006-11-21 01:27:18 +00:00
Marc Prud'hommeaux
b9570f6dd5
Removed Apache license header, which appears to have been accidentally added. The file is actually released under Sun's CDDL.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@477455 13f79535-47bb-0310-9956-ffa450edef68
2006-11-21 01:25:19 +00:00
Marc Prud'hommeaux
15cb2cdf7c
Added back the ability to call getPackageName() on the Message object.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@477446 13f79535-47bb-0310-9956-ffa450edef68
2006-11-21 00:42:53 +00:00
Marc Prud'hommeaux
66f6d907d5
Removed dependency on Class.getPackage() for finding localizer.properties files, since that method can sometimes return null.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@477436 13f79535-47bb-0310-9956-ffa450edef68
2006-11-21 00:29:53 +00:00
Patrick Linskey
3fdf607c58
removed external dependency so that OpenJPAVersion can be run with just the openjpa jar in the classpath
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@477414 13f79535-47bb-0310-9956-ffa450edef68
2006-11-20 23:54:16 +00:00
Patrick Linskey
32ced33fd5
removed debugging code
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@477270 13f79535-47bb-0310-9956-ffa450edef68
2006-11-20 17:46:46 +00:00
Patrick Linskey
ab148526d3
added docs for openjpa.Id property
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@476453 13f79535-47bb-0310-9956-ffa450edef68
2006-11-18 05:59:20 +00:00
Marc Prud'hommeaux
dd5c64694d
Null check.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@476305 13f79535-47bb-0310-9956-ffa450edef68
2006-11-17 20:34:28 +00:00
Marc Prud'hommeaux
70f3162159
Added licenses for included binaries that aren't also released under the ASF (serp-1.11.0.jar and persistence-api-1.0.jar).
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475997 13f79535-47bb-0310-9956-ffa450edef68
2006-11-17 00:23:25 +00:00
Marc Prud'hommeaux
82c4e26932
Made the source assembly unpack into a different folder than the binary assembly (for example, the binary assembly might unpack to "openjpa-project-0.9.7-incubating-SNAPSHOT", and the source assembly will unpack to "openjpa-project-0.9.7-incubating-SNAPSHOT-source").
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475995 13f79535-47bb-0310-9956-ffa450edef68
2006-11-17 00:13:19 +00:00
Marc Prud'hommeaux
fff0cd889a
Specify that LCIENSE.txt and NOTICE.txt files should be included in the META-INF/ sub-directory of all generated jar files.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475976 13f79535-47bb-0310-9956-ffa450edef68
2006-11-16 23:25:30 +00:00
Marc Prud'hommeaux
f6067b25fb
Specify that LICENSE.txt and NOTICE.txt be included in the top-level or the source distribution (although it is additionally contained in the openjpa-project/ directory).
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475968 13f79535-47bb-0310-9956-ffa450edef68
2006-11-16 23:05:05 +00:00
Marc Prud'hommeaux
9a7139c9a0
Added license headers
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475967 13f79535-47bb-0310-9956-ffa450edef68
2006-11-16 23:04:20 +00:00
Patrick Linskey
54d9735689
improved error messages; made NonPersistentMetaData serializable
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475891 13f79535-47bb-0310-9956-ffa450edef68
2006-11-16 19:33:06 +00:00
Patrick Linskey
b653ae9976
removed unneeded import
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475890 13f79535-47bb-0310-9956-ffa450edef68
2006-11-16 19:31:27 +00:00
Marc Prud'hommeaux
cf517aa224
Fixed duplicate named query in sample.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475499 13f79535-47bb-0310-9956-ffa450edef68
2006-11-15 23:44:55 +00:00