4228 Commits

Author SHA1 Message Date
Michael Dick
6595f3125e Adding OpenJPA patch tool
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1212228 13f79535-47bb-0310-9956-ffa450edef68
2011-12-09 02:36:41 +00:00
Mark Struberg
4bffcc9c9a OPENJPA-1873 fix PostLoad entity listener behaviour
This fix introduces a new flag POST_LOAD_ON_MERGE wich is disabled
by default, retaining the old behaviour.
Enabling it will guarantee that the Entity posted to PostLoad entity 
listeners are always the one from the database. This fixes the old
habit that PostLoad will also get triggered (with false/mixed values)
for lazy loading, merging, etc.



git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1211873 13f79535-47bb-0310-9956-ffa450edef68
2011-12-08 13:27:31 +00:00
Mark Struberg
20772bc962 OPENJPA-2089 upgrade to bval-0.3-incubating
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1211573 13f79535-47bb-0310-9956-ffa450edef68
2011-12-07 17:57:16 +00:00
Mark Struberg
78d12c9b0a OPENJPA-2088 remove cyclic build dependencies
By using just the parts of the openjpa dependencies we really
need, we can get rid of cyclic build dependencies.
I also added a help page which describes how to manually
configure the openjpa-maven-plugin dependencies for using it
with an older OpenJPA version.


git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1211489 13f79535-47bb-0310-9956-ffa450edef68
2011-12-07 16:05:24 +00:00
Albert Lee
9fdf242b40 OPENJPA-2085 Use ASM to reconstruct the missing StackMapTable attribute in class file after entity enhancement. BCClassWriter is contributed by Brett Kail.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1209373 13f79535-47bb-0310-9956-ffa450edef68
2011-12-02 06:42:55 +00:00
Dianne E. Richards
76b5be1691 OPENJPA-2081 Upload the schema files to be viewed from our documentation web page and from the manual. Web page and manual changes to come later.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1208503 13f79535-47bb-0310-9956-ffa450edef68
2011-11-30 16:41:08 +00:00
Richard G. Curtis
76cd9dfe91 OPENJPA-302: Update user manual for PCEnhancer usage. Patch contributed by Jacob Nowosatka.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1207658 13f79535-47bb-0310-9956-ffa450edef68
2011-11-28 22:24:32 +00:00
Richard G. Curtis
c3d9750f74 OPENJPA-2047: Make persistence-aware message less verbose. Patch contributed by Jacob Nowosatka.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1207647 13f79535-47bb-0310-9956-ffa450edef68
2011-11-28 22:01:50 +00:00
Dianne E. Richards
3f8d02190d OPENJPA-2081 XML support for about 26 annotations
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1207320 13f79535-47bb-0310-9956-ffa450edef68
2011-11-28 15:44:58 +00:00
Dianne E. Richards
050092efc6 OPENJPA-2077 Change pom references of org-codehaus-mojo openjpa-maven-plugin to org-apache-openjpa openjpa-maven-plugin
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1205077 13f79535-47bb-0310-9956-ffa450edef68
2011-11-22 16:51:37 +00:00
Richard G. Curtis
5d6533ef7e OPENJPA-2075: Add depricated constructor.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1203869 13f79535-47bb-0310-9956-ffa450edef68
2011-11-18 21:49:47 +00:00
Richard G. Curtis
04cbc68544 OPENJPA-2075: Update eol prop.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1203338 13f79535-47bb-0310-9956-ffa450edef68
2011-11-17 19:17:37 +00:00
Richard G. Curtis
d52e73f024 OPENJPA-2075: Abstract parameter handling from QueryImpl.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1203337 13f79535-47bb-0310-9956-ffa450edef68
2011-11-17 19:13:07 +00:00
Richard G. Curtis
caa09591b7 Remove SQL logging from a number of tests.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1203245 13f79535-47bb-0310-9956-ffa450edef68
2011-11-17 16:24:59 +00:00
Kevin W. Sutter
64f37134fa OPENJPA-2076. Since the majority (only?) usage of this message is in the plural sense, I changed "argument" to "arguments".
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1203208 13f79535-47bb-0310-9956-ffa450edef68
2011-11-17 14:51:12 +00:00
Richard G. Curtis
f81908f3ac OPENJPA-1986: Update migration consideration docs and Compatibility javadoc.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1202800 13f79535-47bb-0310-9956-ffa450edef68
2011-11-16 17:30:19 +00:00
Albert Lee
b66ea198ae OPENJPA-2069 Tolerate concurrent sequence alternation.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1201383 13f79535-47bb-0310-9956-ffa450edef68
2011-11-13 01:25:18 +00:00
Albert Lee
f70dd22afb OPENJPA-2073 Tolerate conf exception for no data source configuration so that live db2 connection is not required for MappingTool invocation.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1200919 13f79535-47bb-0310-9956-ffa450edef68
2011-11-11 15:33:58 +00:00
Kevin W. Sutter
db9849db29 OPENJPA-2070. Clean up the processing in the MetamodelImpl.populate() method. The exception processing and messaging were not correct/accurate. Also, changed the testcase slightly to allow for the error checking when needed.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1200884 13f79535-47bb-0310-9956-ffa450edef68
2011-11-11 13:52:39 +00:00
Pinaki Poddar
83bc7aa8ef Relax query engine for extension
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1200388 13f79535-47bb-0310-9956-ffa450edef68
2011-11-10 15:46:14 +00:00
Albert Lee
5fafa802aa OPENJPA-2069 Update db sequence's INCREMENT BY value to match the allocationSize specified in @SequenceGenerator
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1199921 13f79535-47bb-0310-9956-ffa450edef68
2011-11-09 19:12:34 +00:00
Albert Lee
d64a3e5fdb OPENJPA-2071 Guarded NPE against isInterface call from ResultPacker constructor with null parameter
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1199919 13f79535-47bb-0310-9956-ffa450edef68
2011-11-09 19:02:10 +00:00
Richard G. Curtis
9c1ac5ffc9 OPENJPA-2042: Fix possible NPE.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1198786 13f79535-47bb-0310-9956-ffa450edef68
2011-11-07 15:44:58 +00:00
Richard G. Curtis
6659b57886 OPENJPA-2068: Add missing test interface.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1198001 13f79535-47bb-0310-9956-ffa450edef68
2011-11-05 18:30:46 +00:00
Richard G. Curtis
3d5b44956d OPENJPA-2057: Reverting previous commits.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1197994 13f79535-47bb-0310-9956-ffa450edef68
2011-11-05 17:17:26 +00:00
Richard G. Curtis
8a72661ea0 OPENJPA-2065: Add unit test for passing an interface as a result type.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1197988 13f79535-47bb-0310-9956-ffa450edef68
2011-11-05 16:52:27 +00:00
Albert Lee
c66d5e1688 OPENJPA-2066 build failure due to eol style mis-match. Add eol-style=native and lf -> cr/lf fix up.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1195104 13f79535-47bb-0310-9956-ffa450edef68
2011-10-30 03:28:05 +00:00
Pinaki Poddar
31e00f7d76 OPENJPA-2057: Change classloading scheme
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1194953 13f79535-47bb-0310-9956-ffa450edef68
2011-10-29 17:55:26 +00:00
Pinaki Poddar
2bee63d702 OPENJPA-2057: Change classloading scheme
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1194905 13f79535-47bb-0310-9956-ffa450edef68
2011-10-29 15:26:44 +00:00
Pinaki Poddar
8d21608618 OPENJPA-2065: allow interface as result class
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1190723 13f79535-47bb-0310-9956-ffa450edef68
2011-10-29 01:04:52 +00:00
Pinaki Poddar
3494fab794 OPENJPA-2057: Change classloading scheme
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1190716 13f79535-47bb-0310-9956-ffa450edef68
2011-10-29 00:44:11 +00:00
Albert Lee
548375287a Fixed message format errors.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1190050 13f79535-47bb-0310-9956-ffa450edef68
2011-10-27 21:50:38 +00:00
Ravi Prakash Palacherla
201701459a OPENJPA-2066 Edge case in OPENJPA-1227. openJPA fails to create a join and thus returns wrong data when a collection is selected from superclass and another field is selected from subclass two or more levels down the hierarchy
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1189858 13f79535-47bb-0310-9956-ffa450edef68
2011-10-27 16:42:11 +00:00
Albert Lee
1e4a05c6db OPENJPA-2059 Add message file used by SourceCode.java
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1188852 13f79535-47bb-0310-9956-ffa450edef68
2011-10-25 18:44:51 +00:00
Heath Thomann
c8a84fd37d OPENJPA-2051: Change to ensure entities are properly cascaded after a flush.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1186903 13f79535-47bb-0310-9956-ffa450edef68
2011-10-20 16:37:15 +00:00
Albert Lee
16c76a0870 OPENJPA-2060 Fixed all three reported problems described in JIRA
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1183674 13f79535-47bb-0310-9956-ffa450edef68
2011-10-15 17:25:04 +00:00
Kevin W. Sutter
c7c8eb2fc1 OPENJPA-2044. Updating the processing for the openjpa.header parameter on the AnnotationProcessor6 code. Not only to read the actual data (vs a String representation of the URL stream), but also to make it more flexible on the number of lines contained in the designated header file.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1182512 13f79535-47bb-0310-9956-ffa450edef68
2011-10-12 18:28:26 +00:00
Milosz Tylenda
b5859a740b OPENJPA-2056: Use single backslash in searchStringEscape on PostgreSQL 9.1 and later.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1180585 13f79535-47bb-0310-9956-ffa450edef68
2011-10-09 11:11:58 +00:00
Milosz Tylenda
ccc61a5450 OPENJPA-2056: Remove unnecessary casts from test case - continued.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1180578 13f79535-47bb-0310-9956-ffa450edef68
2011-10-09 10:37:47 +00:00
Milosz Tylenda
59684e480e OPENJPA-2056: Remove unnecessary casts from test case.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1180577 13f79535-47bb-0310-9956-ffa450edef68
2011-10-09 10:34:23 +00:00
Pinaki Poddar
12878c9c05 rollback wrong commit
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1178849 13f79535-47bb-0310-9956-ffa450edef68
2011-10-04 16:08:06 +00:00
Pinaki Poddar
4a005fe340 useful error message for connection establishment problem
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1178636 13f79535-47bb-0310-9956-ffa450edef68
2011-10-03 23:27:44 +00:00
Pinaki Poddar
accc2e01fb useful error message for connection establishment problem
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1178635 13f79535-47bb-0310-9956-ffa450edef68
2011-10-03 23:24:20 +00:00
Pinaki Poddar
4ef9c9f6f1 use range information for slice query
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1178634 13f79535-47bb-0310-9956-ffa450edef68
2011-10-03 23:23:23 +00:00
Jeremy Bauer
236f409a91 OPENJPA-2053 Added property to enable proper OSGi service tracking of the OpenJPA provider.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1177327 13f79535-47bb-0310-9956-ffa450edef68
2011-09-29 15:05:08 +00:00
Pinaki Poddar
e65b2aa518 OPENJPA-2030: Loading custom Auditor in OSGi environment
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1176436 13f79535-47bb-0310-9956-ffa450edef68
2011-09-27 15:32:59 +00:00
Milosz Tylenda
f455e09b4e OPENJPA-1691: Documentation update - be more specific about OpenJPA versions, improve formatting.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1173790 13f79535-47bb-0310-9956-ffa450edef68
2011-09-21 18:48:24 +00:00
Milosz Tylenda
a381632d14 OPENJPA-1376: Documentation update - be more specific about OpenJPA versions, improve formatting.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1173782 13f79535-47bb-0310-9956-ffa450edef68
2011-09-21 18:28:02 +00:00
Michael Dick
fe7e359367 OPENJPA-2042: Use weak reference HashSet to store registered class listeners.
Submitted By: Jacob Nowosatka

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1171135 13f79535-47bb-0310-9956-ffa450edef68
2011-09-15 15:28:19 +00:00
Michael Dick
bd9121c950 Revert "Correct artifact id for jai libraries"
This reverts commit 1170873. The new artifact id for JAI does not appear
to work.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1171098 13f79535-47bb-0310-9956-ffa450edef68
2011-09-15 13:46:42 +00:00