Commit Graph

458 Commits

Author SHA1 Message Date
A. Abram White ca83f07b45 Fix visibility.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@428876 13f79535-47bb-0310-9956-ffa450edef68
2006-08-04 20:41:36 +00:00
A. Abram White 77e7d97379 Fetch group fixes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@428577 13f79535-47bb-0310-9956-ffa450edef68
2006-08-03 23:56:32 +00:00
A. Abram White d1df9344fe Fix XML serialization of cascade data.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@428565 13f79535-47bb-0310-9956-ffa450edef68
2006-08-03 23:36:48 +00:00
A. Abram White bc10dd2efd Remove incorrect lifecycle callback invocation.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@428538 13f79535-47bb-0310-9956-ffa450edef68
2006-08-03 21:48:37 +00:00
A. Abram White 0167f87b32 Add (presumably forgotten) JDK 1.4 GregorianCalendar. 1.4 has a public mutator
method that wasn't available in previous versions, and we must intercept it.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@428533 13f79535-47bb-0310-9956-ffa450edef68
2006-08-03 21:30:30 +00:00
A. Abram White eb333839db More work on type promotion and casting in queries. Also, make sure DFG is
in active fetch groups before testing it for post-load callbacks.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@428484 13f79535-47bb-0310-9956-ffa450edef68
2006-08-03 19:16:47 +00:00
A. Abram White a6b57c2e9c Fixes to optimization logic for including joined subclass data in initial
SELECT.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@428193 13f79535-47bb-0310-9956-ffa450edef68
2006-08-02 23:37:02 +00:00
A. Abram White f2a266c4c2 Allow null load-fetch-group. Allow a DFG field to have a different
load-fetch-group.  



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@428177 13f79535-47bb-0310-9956-ffa450edef68
2006-08-02 22:23:32 +00:00
Pinaki Poddar b3f8f9de48 Added load-fetch-group to FieldMetaData and StateManager loading
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@428120 13f79535-47bb-0310-9956-ffa450edef68
2006-08-02 19:53:42 +00:00
A. Abram White df43989689 Query type promotion fix.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@428102 13f79535-47bb-0310-9956-ffa450edef68
2006-08-02 19:21:31 +00:00
A. Abram White 3f82b8aec0 Fix bug in numeric promotion in queries.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@428090 13f79535-47bb-0310-9956-ffa450edef68
2006-08-02 19:02:53 +00:00
A. Abram White b2e1912dc7 Fix StoreFacadeTypeRegistry to work when multiple stores are available. Fix
problems with creating a persistence FetchPlan, and with getting max depth.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@428069 13f79535-47bb-0310-9956-ffa450edef68
2006-08-02 17:51:43 +00:00
A. Abram White 20d5990098 Fix logic for when to select fk column values of a to-one relation.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@427815 13f79535-47bb-0310-9956-ffa450edef68
2006-08-02 00:19:41 +00:00
A. Abram White a98213071a Use latest stable releases of commmons dependencies. Add missing localized msg.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@427784 13f79535-47bb-0310-9956-ffa450edef68
2006-08-01 23:09:17 +00:00
Pinaki Poddar 021c4b85d5 Added Serialzable interface
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@427685 13f79535-47bb-0310-9956-ffa450edef68
2006-08-01 19:31:13 +00:00
Patrick Linskey e889cd2aef cleaned up some imports; fixed a typo; changed test case to reduce output
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@427472 13f79535-47bb-0310-9956-ffa450edef68
2006-08-01 07:05:08 +00:00
Patrick Linskey eb96e89f4d Brett Porter's patch to resolve OPENJPA-3
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@427444 13f79535-47bb-0310-9956-ffa450edef68
2006-08-01 05:03:08 +00:00
Marc Prud'hommeaux 803e15990d Null check before we put username/password values in the Properties object, since null values are illegal.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@427389 13f79535-47bb-0310-9956-ffa450edef68
2006-08-01 00:55:41 +00:00
Patrick Linskey 72398bcea0 changed configuration value factory method to set a default for booleans by default. The normal pattern is to obtain a BooleanValue and then set the default to 'true' when desired; implicitly, this means that 'false' is the default otherwise. This change makes that explicit.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@427356 13f79535-47bb-0310-9956-ffa450edef68
2006-07-31 23:13:00 +00:00
A. Abram White a95e7007cf git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@427284 13f79535-47bb-0310-9956-ffa450edef68 2006-07-31 21:23:16 +00:00
A. Abram White 2fd7381e53 Throw good error message about META-INF/services if we can't find any
configuration providers or product derivations.  This has the downside of
mandating that there must be at least one valid product derivation and one
valid configuration provider available (theoretically someone using brokers
directly together with a simpl store like the sample XML store wouldn't need 
either), but otherwise the final error message to the user is often meaningless.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@427229 13f79535-47bb-0310-9956-ffa450edef68
2006-07-31 19:36:46 +00:00
A. Abram White 696cbee04b Always pass non-null fetch conf to StoreManager.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@427206 13f79535-47bb-0310-9956-ffa450edef68
2006-07-31 18:50:19 +00:00
A. Abram White f279a6790b Added openjpa.MaxFetchDepth configuration property to globally control default
max fetch depth.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@427191 13f79535-47bb-0310-9956-ffa450edef68
2006-07-31 18:24:44 +00:00
A. Abram White 979d2340e9 Cleanup of fetch group metadata and internal runtime APIs. Now that fetch depth
information is immutable within a fetch instance and cloned on relation 
traversal, it was safe to combine fetch state back into the fetch configuration 
class and remove the fetch state class for cleaner APIs (no more having some
components use fetch state and others fetch configuration). Also changed
recursion depth logic to more accurately mirror intent (per JDO spec), though 
testing is needed. 



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@426710 13f79535-47bb-0310-9956-ffa450edef68
2006-07-28 23:48:13 +00:00
Pinaki Poddar 3b6518f174 FetchState is traversed for eagerToMany load/select
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@426702 13f79535-47bb-0310-9956-ffa450edef68
2006-07-28 23:19:43 +00:00
Marc Prud'hommeaux 5698420f65 Moved Premain-Class=org.apache.openjpa.enhance.PCEnhancerAgent setting from openjpa-kernel module to openjpa-kernel-5
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@426670 13f79535-47bb-0310-9956-ffa450edef68
2006-07-28 21:25:10 +00:00
A. Abram White 604703c6d1 Got all tests passing.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@426658 13f79535-47bb-0310-9956-ffa450edef68
2006-07-28 19:58:44 +00:00
A. Abram White 1a6d7d547c Add resources needed for TestXMLWriter test.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@426637 13f79535-47bb-0310-9956-ffa450edef68
2006-07-28 18:18:41 +00:00
A. Abram White c105fe6094 Pass "-p persistence.xml" to enhancer invocation when running persistence
tests so that we don't have to set JPA defaults in the JPA 
ConfigurationProviderImpl.beforeConfigurationLoad, which is incompatible with
having JDO,etc providers in the same system.  Eventually we should probably 
recognize persistence.xml as a defaults file, but for now that's against our 
previous contract of allowing a user to have a JDO,etc defaults file and a 
persistence.xml in the same system.  Also removed XML Transformer functionality
from XMLFactory, since we don't use it and it causes problems with Ant (this
seems to be an Ant+JDK 1.5 bug in Ant).  



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@426634 13f79535-47bb-0310-9956-ffa450edef68
2006-07-28 18:12:02 +00:00
A. Abram White 7268ed8f80 Default transaction type to RESOURCE_LOCAL. Spec changed in late revision
to default based on environment, rather than always defaulting to JTA.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@426351 13f79535-47bb-0310-9956-ffa450edef68
2006-07-28 01:16:51 +00:00
Patrick Linskey 1236605135 removed unneeded imports
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@426228 13f79535-47bb-0310-9956-ffa450edef68
2006-07-27 20:27:45 +00:00
Patrick Linskey 650ca6f27f removed unneeded imports
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@426217 13f79535-47bb-0310-9956-ffa450edef68
2006-07-27 19:59:09 +00:00
Patrick Linskey 64db310695 corrected some configuration properties that do not allow alternate values
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@426216 13f79535-47bb-0310-9956-ffa450edef68
2006-07-27 19:57:37 +00:00
Marc Prud'hommeaux b79f86b6a7 Removed bogus testSourceDirectory which I had accidentally added.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@425927 13f79535-47bb-0310-9956-ffa450edef68
2006-07-27 01:31:45 +00:00
Marc Prud'hommeaux f75ef7b7f9 Cast to floats and doubles to ensure that we use the correct constructor (e.g., since there is a new BigDecimal(int) constructor in JDK 1.5 that we don't want to accidentally rely on).
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@425822 13f79535-47bb-0310-9956-ffa450edef68
2006-07-26 19:59:12 +00:00
Patrick Linskey 0bf2166ede removed some unneeded code; defaulted MetaDataFactory property
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@425805 13f79535-47bb-0310-9956-ffa450edef68
2006-07-26 18:50:51 +00:00
Marc Prud'hommeaux 8c8a0a923d Fixed instances of "OpenJPA JPA" to be just "OpenJPA".
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@425782 13f79535-47bb-0310-9956-ffa450edef68
2006-07-26 17:15:58 +00:00
Marc Prud'hommeaux f217051f56 Added project.revision checking.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@425683 13f79535-47bb-0310-9956-ffa450edef68
2006-07-26 08:58:35 +00:00
Marc Prud'hommeaux 52ccceb9c4 Disabled filtering, since it was being applied to images and was corrupting them!
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@425679 13f79535-47bb-0310-9956-ffa450edef68
2006-07-26 08:45:19 +00:00
Marc Prud'hommeaux f41a4a8942 Fixed error in naming: img/manual/ should have been manual/img/
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@425674 13f79535-47bb-0310-9956-ffa450edef68
2006-07-26 08:28:01 +00:00
Marc Prud'hommeaux a57637c783 Fixed error in naming: img/manual/ should have been manual/img/
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@425673 13f79535-47bb-0310-9956-ffa450edef68
2006-07-26 08:27:43 +00:00
Marc Prud'hommeaux 22a112d4da Stylesheet work
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@425669 13f79535-47bb-0310-9956-ffa450edef68
2006-07-26 08:18:22 +00:00
Marc Prud'hommeaux 1a41108b1b Renamed 'ejb3' image prefixes to be 'jpa'
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@425665 13f79535-47bb-0310-9956-ffa450edef68
2006-07-26 08:10:08 +00:00
Marc Prud'hommeaux 2209bd4050 Moved images to correct location for manual
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@425662 13f79535-47bb-0310-9956-ffa450edef68
2006-07-26 08:07:18 +00:00
Marc Prud'hommeaux 1fc9187ac7 Changed to html stylesheets, since they seem to not output strange characters
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@425658 13f79535-47bb-0310-9956-ffa450edef68
2006-07-26 07:56:59 +00:00
Marc Prud'hommeaux 01d05dfbb8 Enabled use.id.as.filename to use more human-readable file names.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@425655 13f79535-47bb-0310-9956-ffa450edef68
2006-07-26 07:47:27 +00:00
Marc Prud'hommeaux 5c61ff4970 Documentation images and style sheets
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@425653 13f79535-47bb-0310-9956-ffa450edef68
2006-07-26 07:36:54 +00:00
Marc Prud'hommeaux c3845a4232 Documentation images and style sheets
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@425652 13f79535-47bb-0310-9956-ffa450edef68
2006-07-26 07:36:39 +00:00
Marc Prud'hommeaux 3c702ef0d1 Added openjpa-project for assembly descriptiors and docs; upped version to 0.9.0
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@425608 13f79535-47bb-0310-9956-ffa450edef68
2006-07-26 04:24:28 +00:00
Patrick Linskey 5556a4085c updated property namespace
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@425553 13f79535-47bb-0310-9956-ffa450edef68
2006-07-25 23:14:45 +00:00