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
Kevin W. Sutter
83916ff986
OPENJPA-2164. If the field being requested is already loaded, then skip the overhead and just return the field value.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1307608 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 20:56:44 +00:00
Kevin W. Sutter
461471d174
OPENJPA-2164. Change the Savepoints testcase to be more consistent with the expectations of savepoints.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1307595 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 20:20:04 +00:00
Albert Lee
e9ab0d7cec
OPENJPA-2163 Update migration documentation.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1307457 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 15:01:38 +00:00
Kevin W. Sutter
b897fe50cc
OPENJPA-2167. Allow "none" setting for AutoDetach for debug purposes.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1307425 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 13:57:29 +00:00
Kevin W. Sutter
90fcd9623d
OPENJPA-2167. Only attempt to fire TransactionEvents if the TransactionEventManager is not empty.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1307219 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 02:19:45 +00:00
Kevin W. Sutter
208be279f9
OPENJPA-2167. Only reload the proxy fields if the field is loaded and dirty.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1307217 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 02:02:50 +00:00
Kevin W. Sutter
0354b057c9
OPENJPA-2162. Allow the setting of the DBDictionary property supportsDelimitedIdentifiers to "false" to skip the extra overhead of processing delimited identifiers when they will not exist for a given application or usage.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1307157 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 23:06:42 +00:00
Albert Lee
42372cf609
OPENJPA-2163 Simplify configuration: move SingletonLifecycleEventManager from property to Compatibility option.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1307018 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 17:50:19 +00:00
Albert Lee
284b6e5ced
OPENJPA-2163 Add SingletonLifecycleEventManager property to interface and documentation.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1306636 13f79535-47bb-0310-9956-ffa450edef68
2012-03-28 23:01:42 +00:00
Albert Lee
f506835fa8
OPENJPA-2163 Change LifecycleEventManager PluginValue's singleton default value from true to false. Add SingletonLifecycleEventManager property allow previous property to switch singleton value back to true. Since LifecycleEventManager is a internal property for BeanValidation support, the SingletonLifecycleEventManager property will be kept as internal property as well.
...
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1306592 13f79535-47bb-0310-9956-ffa450edef68
2012-03-28 20:52:08 +00:00