Commit Graph

1601 Commits

Author SHA1 Message Date
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
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 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 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
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
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
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 3cfadba263 Relocate org.apache.openjpa.jdbc.kernel.MixedLockManager configuration to JDBC product derivation
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1161288 13f79535-47bb-0310-9956-ffa450edef68
2011-08-24 21:32:22 +00:00
Richard G. Curtis ea499a8ed6 OPENJPA-2039: Update javadoc and minor formatting changes.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1158364 13f79535-47bb-0310-9956-ffa450edef68
2011-08-16 16:39:40 +00:00
Richard G. Curtis e032624813 OPENJPA-2039: Update configuration properties.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1158027 13f79535-47bb-0310-9956-ffa450edef68
2011-08-15 21:54:40 +00:00
Michael Dick 27a7e91688 Add order by to query. Testcase was failing on DB2 and Oracle
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1157928 13f79535-47bb-0310-9956-ffa450edef68
2011-08-15 17:56:29 +00:00
Richard G. Curtis 42099529a2 OPENJPA-2039: Select FKs for fields that are in the DFG, but not in active fetchplan.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1157903 13f79535-47bb-0310-9956-ffa450edef68
2011-08-15 16:36:07 +00:00
Richard G. Curtis 6439d3ebdf OPENJPA-2029: Fix Entity compile bug.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1153176 13f79535-47bb-0310-9956-ffa450edef68
2011-08-02 16:07:52 +00:00
Richard G. Curtis 692b0cc7fa OPENJPA-2029: Add additional tests for query named to positional parameter conversion. Patch contributed by Jacob Nowosatka.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1153150 13f79535-47bb-0310-9956-ffa450edef68
2011-08-02 14:46:51 +00:00
Michael Dick 928aa703cb OPENJPA-2027: Use SingularAttribute for unannotated arrays. ListAttribute for @PersistentCollections
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1143519 13f79535-47bb-0310-9956-ffa450edef68
2011-07-06 18:17:36 +00:00
Milosz Tylenda 8a85ffb402 OPENJPA-487: Simplify generated SQL for SUBSTRING and LOCATE JPQL functions by switching from JDO style to JPA style in expressions. SUBSTRING parameters are still inlined to support grouping by SUBSTRING.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1142426 13f79535-47bb-0310-9956-ffa450edef68
2011-07-03 12:32:03 +00:00