Richard G. Curtis
3f03f91eb8
OPENJPA-2209: Add comment to AbstractBrokerFactory.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1346896 13f79535-47bb-0310-9956-ffa450edef68
2012-06-06 14:00:05 +00:00
Richard G. Curtis
c120b18eb9
OPENJPA-2209: Allow configuration of MetaDataRepository preloading with a lowercase property.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1346874 13f79535-47bb-0310-9956-ffa450edef68
2012-06-06 13:10:51 +00:00
Albert Lee
c47085e32f
OPENJPA-2208 Add getProtectionDomain doPriv function
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1346624 13f79535-47bb-0310-9956-ffa450edef68
2012-06-05 22:06:18 +00:00
Kevin W. Sutter
dde88d592c
OPENJPA-2204. Detect a potential null value before blindly outputting a trace string.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1346213 13f79535-47bb-0310-9956-ffa450edef68
2012-06-05 02:23:03 +00:00
Dianne E. Richards
4f479a9887
OPENJPA-2175 Fix problem with multiple foreign keys of the same type
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1346073 13f79535-47bb-0310-9956-ffa450edef68
2012-06-04 18:18:04 +00:00
Heath Thomann
e6129051c2
OPENJPA-2095: Applied Helen Xu's patch to trunk with Albert's test case changes.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1345263 13f79535-47bb-0310-9956-ffa450edef68
2012-06-01 16:02:31 +00:00
Heath Thomann
5fb9e71726
OPENJPA-2072: Applied Helen Xu's patch to trunk, and applied test case changes as Albert had done in JIRA OPENJPA-2095 for issue with using Test* in entity name.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1344914 13f79535-47bb-0310-9956-ffa450edef68
2012-05-31 21:17:41 +00:00
Heath Thomann
ebe06fdf35
OPENJPA-2174: Applied Helen Xu's patch to trunk
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1344721 13f79535-47bb-0310-9956-ffa450edef68
2012-05-31 13:39:52 +00:00
Heath Thomann
11cd0d5fd4
OPENJPA-2118: Provide fix to avoid possible 'division by zero' error.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1344498 13f79535-47bb-0310-9956-ffa450edef68
2012-05-30 23:09:15 +00:00
Jeremy Bauer
8200a351a7
OPENJPA-2120 documentation for OptimizeIdCopy property
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1343753 13f79535-47bb-0310-9956-ffa450edef68
2012-05-29 14:41:11 +00:00
Richard G. Curtis
7cee19d3be
OPENJPA-2151: Fix NPE in ClassMetaData.hasInverseManagedFields.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1342747 13f79535-47bb-0310-9956-ffa450edef68
2012-05-25 17:58:06 +00:00
Mark Struberg
908e0f6935
OPENJPA-2200 remove unused imports
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1340856 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 22:04:16 +00:00
Mark Struberg
fe1a099bcf
OPENJPA-2179 use other ways to disable the test
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1340840 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 21:02:19 +00:00
Mark Struberg
ac9466b460
OPENJPA-2179 provide unit test (disabled)
...
please remove the 'disabled' from the disabledtestJoinOnly
test method to verify the bug.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1340835 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 20:41:56 +00:00
Mark Struberg
6be44b2e40
remove tabs
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1340834 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 20:40:42 +00:00
Mark Struberg
2889520be9
fix codestyle only
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1340833 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 20:40:09 +00:00
Mark Struberg
8a7ce9df2e
OPENJPA-2179 improve test and move to general
...
Sadly I experienced that this not only happens with Oracle
but also on hsqldb, mysql and most probably any other.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1340808 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 19:26:21 +00:00
Mark Struberg
122f5fe92d
remove unused import and fix JavaDoc
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1340705 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 12:58:04 +00:00
Jeremy Bauer
f617557bc3
OPENJPA-2165 provide setters for element validation and tracker in new delayed proxy types
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1340217 13f79535-47bb-0310-9956-ffa450edef68
2012-05-18 19:27:41 +00:00
Albert Lee
901c70e1d6
OPENJPA-2199 - If inverse relation is removed (nulled out) when commit, attempt to find the target type from initialized object in the state manager to complete the update graph for foreign key constraint detection between the relationships.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1340123 13f79535-47bb-0310-9956-ffa450edef68
2012-05-18 15:08:50 +00:00
Mark Struberg
61b023c784
OPENJPA-2197 fix lifecycle method detection
...
This commit fixes a problem to pick up a JPA lifecycle method
like @PrePersist if there is a method with the same name
(but different parameters) in the class as well.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1339509 13f79535-47bb-0310-9956-ffa450edef68
2012-05-17 07:55:41 +00:00
Heath Thomann
e6a8d377bc
OPENJPA-2067: Added code, gated by the new DBDictionary.useJDBC4SetBinaryStream prop, to use a JDBC 4.0 version of setBinaryStream.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1338494 13f79535-47bb-0310-9956-ffa450edef68
2012-05-15 00:42:09 +00:00
Richard G. Curtis
32d2a85011
OPENJPA-2191: Add null check when initializing AbstractQueryCache.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1337526 13f79535-47bb-0310-9956-ffa450edef68
2012-05-12 12:50:32 +00:00
Richard G. Curtis
ae9e05b9c7
OPENJPA-2187: Generate correct source for a file that is in the default package.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1337325 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 18:41:34 +00:00
Kevin W. Sutter
155f2626d0
Minor updates to the list of supported databases and their defined aliases.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1337257 13f79535-47bb-0310-9956-ffa450edef68
2012-05-11 16:20:23 +00:00
Kevin W. Sutter
0c4b201e8f
OPENJPA-2189. Build script updates to allow OpenBooks to run on Liberty Profile in WebSphere. Also, some general updates to the OpenBooks application to correct missing links, pics, and formatting issues.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1336408 13f79535-47bb-0310-9956-ffa450edef68
2012-05-09 21:18:06 +00:00
Albert Lee
6df8fa909a
OPENJPA-2179 - Fix table name conflict between org.apache.openjpa.persistence.common.apps.Course and org.apache.openjpa.jdbc.oracle.Course which caused the reported exception.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1335541 13f79535-47bb-0310-9956-ffa450edef68
2012-05-08 14:09:53 +00:00
Jody Grassel
8c8e250f40
OPENJPA-2133: OpenJPA doesn't find custom mappings with an applicable class loader
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1333982 13f79535-47bb-0310-9956-ffa450edef68
2012-05-04 14:18:19 +00:00
Richard G. Curtis
432499a3a6
OPENJPA-2161: Refactor revision 1306530 and make StateManagerImpl._meta protected.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1333082 13f79535-47bb-0310-9956-ffa450edef68
2012-05-02 15:49:29 +00:00
Dianne E. Richards
a0f7a2f50f
OPENJPA-2142 Update test case for second problem
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1332244 13f79535-47bb-0310-9956-ffa450edef68
2012-04-30 15:29:53 +00:00
Mark Struberg
badcf47af8
OPENJPA-2179 remove unnecessary config params
...
We still need the cache params, otherwise we will not
see the underlying problem.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1332095 13f79535-47bb-0310-9956-ffa450edef68
2012-04-30 08:09:33 +00:00
Mark Struberg
b15b164b6c
OPENJPA-2179 create unit test showing the problem.
...
Please note that the unit test doesn't fail yet!
It just logs the superfluous SQL statements in the output.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1332089 13f79535-47bb-0310-9956-ffa450edef68
2012-04-30 07:49:45 +00:00
Mark Struberg
a2c820b66e
replace tabs with spaces only
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1331613 13f79535-47bb-0310-9956-ffa450edef68
2012-04-27 22:09:12 +00:00
Jeremy Bauer
eef9fd4b31
OPENJPA-2182 updated testcase to workaround this issue
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1331474 13f79535-47bb-0310-9956-ffa450edef68
2012-04-27 15:47:24 +00:00
Jeremy Bauer
9b322a9318
OPENJPA-2165 Documentation update
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1331053 13f79535-47bb-0310-9956-ffa450edef68
2012-04-26 19:56:07 +00:00
Jeremy Bauer
df8d3c4416
OPENJPA-2165 Minor fixes, more proxy types, testcases, and doc udpates
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1331051 13f79535-47bb-0310-9956-ffa450edef68
2012-04-26 19:53:49 +00:00
Mark Struberg
aac116c904
OPENJPA-2178 switch Date PostgreSQL preci from CENTI to MICRO
...
We looked at the PostgreSQL documentation back to pgsql-6.3 (1998)
and all versions since then can deal with microseconds for TIMESTAMP
fields.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1330898 13f79535-47bb-0310-9956-ffa450edef68
2012-04-26 15:10:53 +00:00
Kevin W. Sutter
8ac15ebf93
OPENJPA-2172. openjpa-all/pom.xml updates for slf4j-simple (runtime). Also, updated openbooks properties files to correspond to the version of openjpa being built.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1325902 13f79535-47bb-0310-9956-ffa450edef68
2012-04-13 19:01:59 +00:00
Richard G. Curtis
b7bd2c873d
OPENJPA-2110: Create correct proxy type when type is defined in an abstract class.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1324759 13f79535-47bb-0310-9956-ffa450edef68
2012-04-11 13:40:53 +00:00
Albert Lee
3bfaadf1c1
OPENJPA-2170 - Clear the batching cache regardless if the batch execution has succeeded or failed to avoid duplicated SQL updates.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1312030 13f79535-47bb-0310-9956-ffa450edef68
2012-04-10 22:33:08 +00:00
Mark Struberg
08b0dd2913
OPENJPA-2139 reset the BrokerFactory state if an Exception occured
...
This happens e.g. if the database is not available at the time the
first DB access is performed. This did lead to a complete hook up
until the whole application got restarted after the db reappeared.
This fix will now ensure that all the column-key caching and stuff
will be tried over again until the db is available again.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1311191 13f79535-47bb-0310-9956-ffa450edef68
2012-04-09 10:26:49 +00:00
Kevin W. Sutter
60e42eddda
OPENJPA-2168. Forgot to check whether the base LifecycleEventManager was activated when the ValidatingLifecycleEventManager is in play.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1309812 13f79535-47bb-0310-9956-ffa450edef68
2012-04-05 12:19:20 +00:00
Albert Lee
06742412b3
OPENJPA-2131 - Commit contribution by Zilin Chen.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1309495 13f79535-47bb-0310-9956-ffa450edef68
2012-04-04 17:15:50 +00:00
Kevin W. Sutter
8e445e03a1
OPENJPA-2167. Change data structure type from a Set to List so as to avoid the use of hashcode processing.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1308654 13f79535-47bb-0310-9956-ffa450edef68
2012-04-03 02:14:43 +00:00
Albert Lee
ec836bec3b
OPENJPA-2169 - Test case update for Oracle 11.2.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1308558 13f79535-47bb-0310-9956-ffa450edef68
2012-04-02 20:58:02 +00:00
Kevin W. Sutter
f3dbb5acad
OPENJPA-2168. Modified the approach for detecting life cycle event processing.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1308362 13f79535-47bb-0310-9956-ffa450edef68
2012-04-02 14:25:26 +00:00
Jeremy Bauer
31da969bd6
OPENJPA-2165 minor improvements to delayed collection loading
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1308194 13f79535-47bb-0310-9956-ffa450edef68
2012-04-01 20:23:47 +00:00
Richard G. Curtis
9030633959
OPENJPA-2151: If transitioning from PClean to PNonTransState, don't reset dirty bitset.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1308184 13f79535-47bb-0310-9956-ffa450edef68
2012-04-01 19:40:59 +00:00
Kevin W. Sutter
6b6c06330a
OPENJPA-2168. Move call to check for existing Listeners higher in the call stack.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1307916 13f79535-47bb-0310-9956-ffa450edef68
2012-03-31 21:57:22 +00:00
Kevin W. Sutter
c5d2d2c217
OPENJPA-2151. Optimizations to StateManagerImpl.initialize and FieldMetaData access.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1307622 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 21:26:31 +00:00