Commit Graph

259 Commits

Author SHA1 Message Date
Stephen Kim c6537ccba6 PNewProvisional
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450321 13f79535-47bb-0310-9956-ffa450edef68
2006-09-27 05:24:44 +00:00
Marc Prud'hommeaux 9443b9f9bc Un-did last command, since INDEX already existed in the reservedWordSet.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450214 13f79535-47bb-0310-9956-ffa450edef68
2006-09-26 21:23:00 +00:00
Marc Prud'hommeaux a55664495e Added "INDEX" to the reserved word list.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450200 13f79535-47bb-0310-9956-ffa450edef68
2006-09-26 20:57:20 +00:00
A. Abram White 46736c6018 Fix configuration warnings for misspelled property names.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450173 13f79535-47bb-0310-9956-ffa450edef68
2006-09-26 20:11:33 +00:00
Pinaki Poddar 5b9c773c81 Correcting JavaDoc formatting error.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450164 13f79535-47bb-0310-9956-ffa450edef68
2006-09-26 19:35:41 +00:00
Pinaki Poddar 9a52726ea2 Applying the constraints that the entity listner class
a) must have a no-arg constructor 
b) multiple methods of the same class must not register for the same event 
(JPA Spec Section 3.5)  



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450158 13f79535-47bb-0310-9956-ffa450edef68
2006-09-26 19:23:48 +00:00
A. Abram White 26a3499fe5 Leave escape character in string if we use db wildchars as matches wildcards.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450144 13f79535-47bb-0310-9956-ffa450edef68
2006-09-26 18:53:14 +00:00
A. Abram White 9a40eb69b0 Add David Ezzio's detachment test.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450122 13f79535-47bb-0310-9956-ffa450edef68
2006-09-26 17:39:21 +00:00
A. Abram White 62bc6c997c Change default MaxFetchDepth to -1 (unlimited). Also move the use of multiple
configuration prefixes to ProductDerivations for simple static access.  Modify
some cases of looking for "openjpa." prefixes to properties to properly look 
for all configured prefixes instead.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450114 13f79535-47bb-0310-9956-ffa450edef68
2006-09-26 16:54:30 +00:00
Marc Prud'hommeaux d3956a7d98 Override "ON DELETE SET NULL" foreign keys if the foreign column is "NOT NULL".
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@449532 13f79535-47bb-0310-9956-ffa450edef68
2006-09-25 00:19:36 +00:00
Marc Prud'hommeaux a8c1fad16c Fixed varbinaryTypeName and longVarbinaryTypeName to be "BLOB" (they were defaulting to "VARBINARY", which is not recognized under DB2 or Derby).
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@449526 13f79535-47bb-0310-9956-ffa450edef68
2006-09-24 23:58:00 +00:00
Patrick Linskey ce937180b4 wrap types before deciding whether or not a cast is needed.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@449322 13f79535-47bb-0310-9956-ffa450edef68
2006-09-23 22:48:14 +00:00
Patrick Linskey aa6309af35 removed erroneous docs about GeneratedValue
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@449144 13f79535-47bb-0310-9956-ffa450edef68
2006-09-23 01:57:05 +00:00
Marc Prud'hommeaux 5dea14f301 Use the escape character to escape out wildcard characters from the source string.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@449130 13f79535-47bb-0310-9956-ffa450edef68
2006-09-23 00:04:51 +00:00
A. Abram White b7f2721aff When selecting a relation field as a projection, outer join across the relation
even if forceOuter on the original path is false.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@449105 13f79535-47bb-0310-9956-ffa450edef68
2006-09-22 22:06:06 +00:00
A. Abram White ed0d6b1fec Version number fixes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@449048 13f79535-47bb-0310-9956-ffa450edef68
2006-09-22 18:51:23 +00:00
A. Abram White a9089d2688 PDeleted version check causing problems.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@449044 13f79535-47bb-0310-9956-ffa450edef68
2006-09-22 18:37:11 +00:00
A. Abram White 7a74bedd70 fix JDBC Abs query function's return type.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@448757 13f79535-47bb-0310-9956-ffa450edef68
2006-09-22 00:52:08 +00:00
A. Abram White d090d717f4 Fix sequence bug I introduced with last sequence synchronization refactoring.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@448708 13f79535-47bb-0310-9956-ffa450edef68
2006-09-21 22:01:57 +00:00
A. Abram White 68572a9197 Die in ProductDerivations.load() if given resource/file can't be parsed by any
ProductDerivations in the system.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@448625 13f79535-47bb-0310-9956-ffa450edef68
2006-09-21 18:28:06 +00:00
Patrick Linskey d85ea93d3a oops, fixed bum compilation failure.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@448430 13f79535-47bb-0310-9956-ffa450edef68
2006-09-21 02:06:05 +00:00
Patrick Linskey 4efc384cbd added some extension points for sql pluggability
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@448405 13f79535-47bb-0310-9956-ffa450edef68
2006-09-20 23:42:41 +00:00
A. Abram White 480a42df4a Perform JDBC sequence ops outside of synchronization blocks in case of JDBC
hangs.  Also should improve concurrency.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@448298 13f79535-47bb-0310-9956-ffa450edef68
2006-09-20 18:40:28 +00:00
A. Abram White cdcfea47d4 Review/cleanup of product derivation work.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@448025 13f79535-47bb-0310-9956-ffa450edef68
2006-09-20 01:29:55 +00:00
Pinaki Poddar 2c31d9c6df 1. Refactoring ConfigurationProvider/ProductDerivation subsystem.
2. Extensibility of OpenJPA via ProductDerivation

Primary modifications are
a) The configuration information resources are located/parsed/loaded via dynamically discovered ProductDerivation services
(instead of ConfigurationProviders). ConfigurationProvider is not enlisted as a service any more.
b) Tools are modified to use ProductDerivations instead of Configurations 
c) ProductDerivation has moved to lib from kernel.
d) ProductDerivation types that are STORE specific are no more defined in lib version.
OpenJPAProductDerivation in kernel package defines them. The type constants have holes. 
e) One test is modified
f) pom.xml is modified as ProductDerivation has moved to lib from kernel 

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@447664 13f79535-47bb-0310-9956-ffa450edef68
2006-09-19 00:50:57 +00:00
Marc Prud'hommeaux 7740c7842c The recent upgrade of maven-jar-plugin to 2.1 caused the Implementation-Version tag to be excluded from the manifest, which we rely on to detect the current version. Added "addDefaultSpecificationEntries" and "addDefaultImplementationEntries" to pluginManagement to fix this.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@447655 13f79535-47bb-0310-9956-ffa450edef68
2006-09-19 00:22:07 +00:00
Marc Prud'hommeaux d47e1d1f18 Added "INDEX" to the reserved word set.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@447569 13f79535-47bb-0310-9956-ffa450edef68
2006-09-18 21:25:44 +00:00
Marc Prud'hommeaux b7aa94749e Fixed default type for binaryTypeName, varbinaryTypeName, and longVarbinaryTypeName to be "BLOB" (rather than "VARBINARY", which does not exist as a type for Oracle).
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@447558 13f79535-47bb-0310-9956-ffa450edef68
2006-09-18 21:08:21 +00:00
Marc Prud'hommeaux 9ba388d243 Use the environment class loader as the metadata loader only if it is not null.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@447112 13f79535-47bb-0310-9956-ffa450edef68
2006-09-17 18:52:37 +00:00
Marc Prud'hommeaux 9b8351c60e Fixed location of docbook stylesheet
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@446912 13f79535-47bb-0310-9956-ffa450edef68
2006-09-16 18:31:57 +00:00
Stephen Kim 52e2d38ed9 forgot localization
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@446909 13f79535-47bb-0310-9956-ffa450edef68
2006-09-16 18:25:43 +00:00
Marc Prud'hommeaux 9789c93caf Reorganized documentation do that it will be inlcuded in the openjpa-*.zip bundle when running 'mvn package -Pjavadoc-profile,docbook-profile'
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@446907 13f79535-47bb-0310-9956-ffa450edef68
2006-09-16 18:17:47 +00:00
Stephen Kim 05865aef89 Remove warning from enhancing impl generated classes and optimize
class / interface interaction


git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@446904 13f79535-47bb-0310-9956-ffa450edef68
2006-09-16 17:39:57 +00:00
Marc Prud'hommeaux d746a3fd7c Fixed class names of references to tools
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@446900 13f79535-47bb-0310-9956-ffa450edef68
2006-09-16 17:22:29 +00:00
Marc Prud'hommeaux 0c34969609 Download and cache the stylesheet file to reduce network chatter when building docs; fixed the image scaling so graphs are not shrunken in the resulting HTML document
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@446896 13f79535-47bb-0310-9956-ffa450edef68
2006-09-16 16:53:45 +00:00
Marc Prud'hommeaux 02c9ce3ca7 Fixed possibility of a null method in getMethodDescriptors.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@446802 13f79535-47bb-0310-9956-ffa450edef68
2006-09-16 01:25:59 +00:00
Marc Prud'hommeaux 944f8ad22c Non-optimistic transactions will no longer perform a version check when committing dirty objects, unless the NonOptimisticVersionCheck compatibility property is set to true. This allows dirty instances enlisted in a non-optimistic transaction to be allowed to overwrite conflicting versions in the database.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@446799 13f79535-47bb-0310-9956-ffa450edef68
2006-09-16 00:44:55 +00:00
A. Abram White a7cfbfc4c9 Fixes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@446787 13f79535-47bb-0310-9956-ffa450edef68
2006-09-15 23:49:21 +00:00
Marc Prud'hommeaux 53dbcdf35c Add a better error message when casting an instance to PersistenceCapable fails due to the PersistenceCapable interface being loaded by two separate ClassLoaders
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@446769 13f79535-47bb-0310-9956-ffa450edef68
2006-09-15 22:12:05 +00:00
Marc Prud'hommeaux 65e0a48a81 Workaround for HSQL bug in treating Long.MAX_VALUE as a double.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@446720 13f79535-47bb-0310-9956-ffa450edef68
2006-09-15 20:35:20 +00:00
Marc Prud'hommeaux b2e0133907 Fixed error in last commit.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443537 13f79535-47bb-0310-9956-ffa450edef68
2006-09-15 00:51:18 +00:00
Marc Prud'hommeaux 20e0762e43 Fixed getMethodDescriptors to not try to create a MethodDescriptor for a non-existant method (which would cause an NPE).
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443524 13f79535-47bb-0310-9956-ffa450edef68
2006-09-14 23:47:13 +00:00
A. Abram White 47edcb8edc Don't use a subselect for non-distinct projections of DISTINCT_AUTO queries
with to-many joins in their filter if the projections are all for variable 
paths.  (As opposed to candidate path projections, where the subselect is 
necessary to filter out duplicates caused by relational joins).



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443519 13f79535-47bb-0310-9956-ffa450edef68
2006-09-14 23:41:30 +00:00
Marc Prud'hommeaux c6c683e8ac Allow callback methods to accept the Entity subclass of the type they are listening on, rather than forcing them to all take an argument of type java.lang.Object (section 3.5.1)
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443509 13f79535-47bb-0310-9956-ffa450edef68
2006-09-14 23:06:11 +00:00
A. Abram White 7846adbf3f Unused.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443496 13f79535-47bb-0310-9956-ffa450edef68
2006-09-14 22:10:45 +00:00
A. Abram White a5d552f940 Allow null discriminator values when adding class conditions on outer joins.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443447 13f79535-47bb-0310-9956-ffa450edef68
2006-09-14 19:36:09 +00:00
Marc Prud'hommeaux fcd072a2c5 Fixed bug where NamedNativeQuery/NamedNativeQueries was not being examined when looking up named queries, which could result in them not being found if the metadata has not yet been parsed completely
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443432 13f79535-47bb-0310-9956-ffa450edef68
2006-09-14 18:21:19 +00:00
A. Abram White 72f7b6b963 Query fixes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443170 13f79535-47bb-0310-9956-ffa450edef68
2006-09-14 00:05:16 +00:00
A. Abram White 913e54c93c No need to beginOperation (and especially sync with trans) in
internal isTransactionEnding method.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443164 13f79535-47bb-0310-9956-ffa450edef68
2006-09-13 23:23:22 +00:00
Stephen Kim cfcca49521 fix for re-proxying of hashed types during commit / rollback
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443153 13f79535-47bb-0310-9956-ffa450edef68
2006-09-13 22:45:21 +00:00