Commit Graph

1620 Commits

Author SHA1 Message Date
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
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
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
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
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 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
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 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 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 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 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
Dianne E. Richards 83b432a46f OPENJPA-2159 Provide dictionary option for Date rounding
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1304349 13f79535-47bb-0310-9956-ffa450edef68
2012-03-23 13:59:13 +00:00
Richard G. Curtis 1925881f5d OPENJPA-2158: Null out StateManager when lite auto detaching proxies.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1303507 13f79535-47bb-0310-9956-ffa450edef68
2012-03-21 19:06:42 +00:00
Albert Lee b68cf1d0fb OPENJPA-2153 Mark DBCPDriverDataSource non-abstract so that DBCPDriverDataSource.class.newinstance is used to instantiate for property configuration.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1299276 13f79535-47bb-0310-9956-ffa450edef68
2012-03-10 21:26:31 +00:00
Dianne E. Richards f94fb7f727 OPENJPA-2132 Fix empty List for OneToMany with InheritanceType.JOINED or SINGLE_TABLE
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1298856 13f79535-47bb-0310-9956-ffa450edef68
2012-03-09 14:46:44 +00:00
Dianne E. Richards e1c4c92888 OPENJPA-2142 test case
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1298490 13f79535-47bb-0310-9956-ffa450edef68
2012-03-08 18:02:40 +00:00
Jeremy Bauer d03434b557 OPENJPA-2141 fix and test for lazy embedded fields
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1293250 13f79535-47bb-0310-9956-ffa450edef68
2012-02-24 13:53:01 +00:00
Richard G. Curtis 6599b7b403 OPENJPA-2136: Fix NPE when using LiteAutoDetach.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1292034 13f79535-47bb-0310-9956-ffa450edef68
2012-02-21 21:14:57 +00:00
Albert Lee 408d8b4463 Update pom.xml version to 2.3.0-SNAPSHOTS in trunk after 2.2.0 is released.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1291435 13f79535-47bb-0310-9956-ffa450edef68
2012-02-20 20:37:05 +00:00
Albert Lee 4d1e1bc8df [maven-release-plugin] prepare release 2.2.x
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1244808 13f79535-47bb-0310-9956-ffa450edef68
2012-02-16 00:30:29 +00:00
Jeremy Bauer e14af5d7ab OPENJPA-2120 Add option for optimizing copy operations for qualifying id classes.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1241207 13f79535-47bb-0310-9956-ffa450edef68
2012-02-06 22:03:02 +00:00
Albert Lee ad41647b99 OPENJPA-2117 - Fix formatting problem
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1236732 13f79535-47bb-0310-9956-ffa450edef68
2012-01-27 16:23:33 +00:00
Albert Lee 11dc47c80a OPENJPA-2117 - change setColumn gated on isSerialized not isElementCollection
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1236731 13f79535-47bb-0310-9956-ffa450edef68
2012-01-27 16:20:05 +00:00
Albert Lee 1de07a52ec Remove left-over System.out.println("++++ INDEX")
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1236416 13f79535-47bb-0310-9956-ffa450edef68
2012-01-26 22:22:36 +00:00
Pinaki Poddar e37a589072 OPENJPA:1050: Use generics
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1236280 13f79535-47bb-0310-9956-ffa450edef68
2012-01-26 16:36:38 +00:00
Richard G. Curtis dc95a8a2e6 OPENJPA-2068: Update test Entities.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1233509 13f79535-47bb-0310-9956-ffa450edef68
2012-01-19 18:16:56 +00:00
Richard G. Curtis 2c65619be4 OPENJPA-2068: Fixing a bug where we were incorrectly removing LRS proxy fields while loading the proxy.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1233434 13f79535-47bb-0310-9956-ffa450edef68
2012-01-19 15:33:01 +00:00
Richard G. Curtis d354f7cf84 OPENJPA-2107: Only reset Broker.flushed flag if initializing a new Statemanager.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1231375 13f79535-47bb-0310-9956-ffa450edef68
2012-01-13 22:59:33 +00:00
Mark Struberg 3beb74571a switch back trunk to 2.2.0-SNAPSHOT
we wil restart the 2.2.x after a few important fixes on trunk


git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1230495 13f79535-47bb-0310-9956-ffa450edef68
2012-01-12 11:28:50 +00:00
Mark Struberg 6289157f9c release preparation. Move trunk to 2.3.0-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1229557 13f79535-47bb-0310-9956-ffa450edef68
2012-01-10 14:29:08 +00:00
Mark Struberg 6bc2b5671d OPENJPA-2100 oops, fixed broken test
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1224900 13f79535-47bb-0310-9956-ffa450edef68
2011-12-27 12:00:12 +00:00
Mark Struberg 62462f4752 OPENJPA-2100 make sure that standard mappingtool works with enums
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1224894 13f79535-47bb-0310-9956-ffa450edef68
2011-12-27 11:15:19 +00:00
Mark Struberg fedd2f7762 OPENJPA-1912 drop my @author tag
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1222185 13f79535-47bb-0310-9956-ffa450edef68
2011-12-22 11:29:33 +00:00
Mark Struberg b20b8103e0 OPENJPA-1912 add missing test for enhancer fix
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1221801 13f79535-47bb-0310-9956-ffa450edef68
2011-12-21 16:47:56 +00:00
Richard G. Curtis e24439984b OPENJPA-2068: Optimized calendar creation.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1212503 13f79535-47bb-0310-9956-ffa450edef68
2011-12-09 16:30:58 +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
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
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 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
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