A. Abram White
c1a857c915
Move the Perf class that supports some of our concurrency utils on older JVMs
...
to lib, where it belongs.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@452683 13f79535-47bb-0310-9956-ffa450edef68
2006-10-04 00:26:45 +00:00
A. Abram White
174ae93d41
MetaDataFactory.newInstance method no longer needed. Continue work on docs
...
(note: docs may temporarily be in invalid state).
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@452592 13f79535-47bb-0310-9956-ffa450edef68
2006-10-03 18:36:45 +00:00
Marc Prud'hommeaux
f18ea3dd33
Set the data cache schedule thread to be a daemon thread.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@452289 13f79535-47bb-0310-9956-ffa450edef68
2006-10-03 01:20:16 +00:00
A. Abram White
bdae6535ec
Miscellaneous cleanup and fixes. Some documentation review.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@452243 13f79535-47bb-0310-9956-ffa450edef68
2006-10-02 22:22:18 +00:00
Patrick Linskey
bc9422ea5d
improved error message
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@451707 13f79535-47bb-0310-9956-ffa450edef68
2006-10-01 01:28:25 +00:00
Stephen Kim
9fb0a9a6f5
fix deletion of PNewProvisional
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@451691 13f79535-47bb-0310-9956-ffa450edef68
2006-09-30 22:34:55 +00:00
Stephen Kim
923eb32d31
fixed duplicate preFlush and bug wrt persist vs nonprovisional in
...
singlefieldmanager
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@451543 13f79535-47bb-0310-9956-ffa450edef68
2006-09-30 05:29:10 +00:00
Marc Prud'hommeaux
5eb55ee87a
Changed REVISION_NUMBER to be a String, since Subversion revisions can be a string (e.g., "420667:451468M")
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@451470 13f79535-47bb-0310-9956-ffa450edef68
2006-09-29 22:07:21 +00:00
Stephen Kim
f104321da8
avoid duplicate event call
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@451011 13f79535-47bb-0310-9956-ffa450edef68
2006-09-28 20:18:07 +00:00
Stephen Kim
d833950424
committed wrong version of pNewProviisonal handling
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450937 13f79535-47bb-0310-9956-ffa450edef68
2006-09-28 17:47:23 +00:00
Stephen Kim
bd340fbe15
PNewProvisional again. I think I covered the object graph reflush issue
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450916 13f79535-47bb-0310-9956-ffa450edef68
2006-09-28 16:34:05 +00:00
Pinaki Poddar
98d1da1fba
Moved Entity Listener constraints from MetaDataDefaults in kernel to JPA facade PersistenceMetaDataDefaults
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450731 13f79535-47bb-0310-9956-ffa450edef68
2006-09-28 07:24:11 +00:00
Marc Prud'hommeaux
3620b80ce4
Null checks.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450619 13f79535-47bb-0310-9956-ffa450edef68
2006-09-27 22:50:08 +00:00
Stephen Kim
7522db86fd
boot provisional changes for now. I think I'm missing a huge hole with hashing
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450350 13f79535-47bb-0310-9956-ffa450edef68
2006-09-27 06:46:15 +00:00
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
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
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
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
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
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
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
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
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
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
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
Kevin W. Sutter
9650a1a20b
Minor updates to comments and doc... While doing the removal of the LockGroup stuff, I came across an entry for
...
contacting support@solarmetric.com for some customization feature. While cleaning that up, I also cleaned up any
other references to @solarmetric.com and @bea.com.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443123 13f79535-47bb-0310-9956-ffa450edef68
2006-09-13 21:05:42 +00:00
A. Abram White
a9eaf4683b
Formatting.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443073 13f79535-47bb-0310-9956-ffa450edef68
2006-09-13 18:57:13 +00:00
Stephen Kim
8a9c647907
load registered class metadata when getting implementors
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443016 13f79535-47bb-0310-9956-ffa450edef68
2006-09-13 16:31:50 +00:00
Marc Prud'hommeaux
d78bcae002
Only make an instance nontransactional if it is not in the TCleanState, which should not transitional to nontransactional upon detach. Only make an instance nontransactional if it is not in the TCleanState, which should not transitional to nontransactional upon detach.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@442774 13f79535-47bb-0310-9956-ffa450edef68
2006-09-13 00:44:14 +00:00
A. Abram White
832d913520
Delete child object(s) before parent when cascading delete. Also fix case where
...
an interface field uses targetEntity to declare itself as a concrete entity
relation, and add test case for fix.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@442718 13f79535-47bb-0310-9956-ffa450edef68
2006-09-12 21:39:01 +00:00
A. Abram White
6ac482c68f
Fix erroneous change I made yesterday.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@442691 13f79535-47bb-0310-9956-ffa450edef68
2006-09-12 20:06:29 +00:00
Stephen Kim
2dfe77f2ca
Record interface superclasses
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@442494 13f79535-47bb-0310-9956-ffa450edef68
2006-09-12 07:06:25 +00:00
Stephen Kim
1defd23037
Supports for interface query alias metadata
...
as well as refactoring persistence-aware metadata into non-persistent metadata
to support non-managed interfaces
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@442363 13f79535-47bb-0310-9956-ffa450edef68
2006-09-11 21:56:55 +00:00
A. Abram White
da1961910b
Change to allow fields to use per-class sequences.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@442269 13f79535-47bb-0310-9956-ffa450edef68
2006-09-11 17:28:44 +00:00
Marc Prud'hommeaux
25e80a994e
OPENJPA-42 Check for the existence of superclass metadata in getSuperclassField so we throw a better exception than an NPE if it doesn't exist.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@442030 13f79535-47bb-0310-9956-ffa450edef68
2006-09-10 23:24:02 +00:00
A. Abram White
37aa91d2af
Simplify determination of identity type in metadata, also correcting problems
...
with determining the identity type of hierarchies involving @MappedSuperclasses.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@441679 13f79535-47bb-0310-9956-ffa450edef68
2006-09-08 22:45:39 +00:00
A. Abram White
7e30623c7b
Refactor JDBC query expression tree to allow greater concurrency and to handle
...
parameters in result clauses of projections.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@441158 13f79535-47bb-0310-9956-ffa450edef68
2006-09-07 17:51:05 +00:00
Marc Prud'hommeaux
56d5f6469e
OPENJPA-40 Fall back to using the ConfigurationProvider's ClassLoader in the even of a loader mismatch.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@440882 13f79535-47bb-0310-9956-ffa450edef68
2006-09-06 21:42:31 +00:00
Pinaki Poddar
253407b69c
Refatoring user facing classes (FetchPlan, Generator, Extent, StoreCache) into interfaces.
...
Adding hooks for extended EntityManagerFactory and ConfigurationProvider.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@440714 13f79535-47bb-0310-9956-ffa450edef68
2006-09-06 13:52:35 +00:00
A. Abram White
c1a146714e
InheritanceComparator has been changed to public: add @nojavadoc to prevent
...
inclusion of this internal component in user javadoc.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@440400 13f79535-47bb-0310-9956-ffa450edef68
2006-09-05 16:59:11 +00:00
Stephen Kim
5240ea8612
remove executable flag on file
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@440254 13f79535-47bb-0310-9956-ffa450edef68
2006-09-05 04:34:44 +00:00
Stephen Kim
2b66092a80
fix inheritance issue again with interfaces
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@439554 13f79535-47bb-0310-9956-ffa450edef68
2006-09-02 07:27:13 +00:00
Stephen Kim
fc9b67f556
changed ordering to avoid super / subclass clashing
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@439550 13f79535-47bb-0310-9956-ffa450edef68
2006-09-02 06:36:19 +00:00
Stephen Kim
4f4b1b29fe
bug in ordering
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@439548 13f79535-47bb-0310-9956-ffa450edef68
2006-09-02 06:17:06 +00:00
Stephen Kim
fe6352fca1
whoops. forgot interface impl generator
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@439412 13f79535-47bb-0310-9956-ffa450edef68
2006-09-01 18:18:03 +00:00
Stephen Kim
423b0a418a
Support for managed interfaces
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@439383 13f79535-47bb-0310-9956-ffa450edef68
2006-09-01 17:16:50 +00:00
Marc Prud'hommeaux
c39b7141ce
Don't allow conversion from number to String if the strict flag is set to true.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@438746 13f79535-47bb-0310-9956-ffa450edef68
2006-08-31 01:51:30 +00:00
Marc Prud'hommeaux
582c83b29b
OPENJPA-15 Updated grammer to fix some inconsistencies with the spec
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@438573 13f79535-47bb-0310-9956-ffa450edef68
2006-08-30 18:16:40 +00:00
Patrick Linskey
01735b1234
changed @since tags to disambiguate the Kodo information with future releases of OpenJPA by adding a 0. to the beginning of each.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@438566 13f79535-47bb-0310-9956-ffa450edef68
2006-08-30 17:53:55 +00:00
A. Abram White
163cc2a22c
Framework for allowing ranges in query strings to be specified as parameters
...
(not needed for JPQL, but for others). Also consolidated some internal query
framework APIs.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@438338 13f79535-47bb-0310-9956-ffa450edef68
2006-08-30 03:43:16 +00:00
Patrick Linskey
96e534a165
moved POM to use ant task instead of java invocation; changed service invocations to use the classloader of the class being looked up to avoid issues with cyclic-static blocks; improved debug info
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@436945 13f79535-47bb-0310-9956-ffa450edef68
2006-08-25 21:00:19 +00:00
Patrick Linskey
dcb47f0fe4
OPENJPA-14. Use the class's classloader in environments when service lookups should be looking in the OpenJPA distribution. This imposes the restriction that OpenJPA will only find services in the same classloader as the OpenJPA jars themselves, which is a much better restriction than requiring that the classes be in the thread's context classloader.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@436694 13f79535-47bb-0310-9956-ffa450edef68
2006-08-25 07:33:50 +00:00
A. Abram White
fe71475a59
Formatted our documentation XML files.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@434517 13f79535-47bb-0310-9956-ffa450edef68
2006-08-24 20:41:12 +00:00
Marc Prud'hommeaux
4436a3d90f
Escaped the "{user.home}" string with a "'" so that MessageFormat does not try to interpret it as a token (and then fail).
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@433855 13f79535-47bb-0310-9956-ffa450edef68
2006-08-23 03:10:33 +00:00
Marc Prud'hommeaux
9af2df4d09
Added generation of a /META-INF/revision.properties file that will hold the current subversion revision that was used when creating the jars; also made org.apache.openjpa.conf.OpenJPAVersion output this information when it is found
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@433850 13f79535-47bb-0310-9956-ffa450edef68
2006-08-23 02:43:02 +00:00
Pinaki Poddar
9246ee92bc
A message for PersistenceAware class being added as PersistenceCapable also.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@433815 13f79535-47bb-0310-9956-ffa450edef68
2006-08-23 00:39:00 +00:00
Pinaki Poddar
1aec5d3dde
Added support for PersistenceAwareClass -- wraps java.lang.Class thinly with SourceTracker.
...
Modified MetaDataRepository to add a container for PersistenceAwareClasses.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@433811 13f79535-47bb-0310-9956-ffa450edef68
2006-08-23 00:11:29 +00:00
Marc Prud'hommeaux
6f0a7f67da
Added expression-level support for Map.get in queries
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@433460 13f79535-47bb-0310-9956-ffa450edef68
2006-08-22 01:50:43 +00:00
A. Abram White
d5bb522c34
No need for parser to populate separate QueryExpressions.aggregate member now
...
that we can visit the projection values to see if they're aggregates.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@433431 13f79535-47bb-0310-9956-ffa450edef68
2006-08-21 23:53:49 +00:00
A. Abram White
9de5395486
Add some query validations on compilation.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@433399 13f79535-47bb-0310-9956-ffa450edef68
2006-08-21 22:29:47 +00:00
A. Abram White
978bc40091
JIRA: OPENJPA-14
...
Applied patch (with some minor corrections).
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@433281 13f79535-47bb-0310-9956-ffa450edef68
2006-08-21 16:53:51 +00:00
A. Abram White
037a45d7e4
Add visitor pattern to query expression trees, and redo a couple of our existing
...
tree interrogation methods to use it. This will allow us to add more
validations at query compilation time (we're missing some that are required for
JDO 2, for example) without having to expand the API of every query
expression/value implementation, in addition to just being more flexible
overall.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@432778 13f79535-47bb-0310-9956-ffa450edef68
2006-08-19 01:03:35 +00:00
A. Abram White
2ccc242679
When a relation mapping uses the expected class of the related type as part of
...
its join criteria (in addition to the standard foreign key join), make sure
discriminator conditions are appended to the WHERE SQL not only when loading
the relation, but also when traversing it in queries.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@432067 13f79535-47bb-0310-9956-ffa450edef68
2006-08-16 23:27:04 +00:00
A. Abram White
aba057d644
Allow our JPA ConfigurationProviderImpl to find a default persistence unit in
...
persistence.xml when no explicit configuration is given to dev tools. Do this
in a backwards-compatible way that won't break previous behavior or other facade
behavior (JDO). This means you should no longer have to pass
"-p persistence.xml" to tools like the enhancer, nor should you have to specify
a properties argument to the PCEnhancerAgent in the premain for runtime
enhancement.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@430897 13f79535-47bb-0310-9956-ffa450edef68
2006-08-11 21:07:58 +00:00
Stephen Kim
07a13ab908
Clean up detach on serialize and ensure declared constructors are properly
...
public for externalize
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@430303 13f79535-47bb-0310-9956-ffa450edef68
2006-08-10 08:14:18 +00:00
Stephen Kim
a120874a44
Include unpinAll/pinAll by class methods
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@429797 13f79535-47bb-0310-9956-ffa450edef68
2006-08-08 20:23:35 +00:00
Patrick Linskey
6234f8d3da
Changed logging infrastructure to be aware of localization; changed localization to return log-ready Message instances instead of strings. Changed tons of code to use the new logging and localization calls.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@429535 13f79535-47bb-0310-9956-ffa450edef68
2006-08-08 01:42:34 +00:00
Pinaki Poddar
f44dd067d8
unsupported-value-strategy had a wrong {n} in the message.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@429498 13f79535-47bb-0310-9956-ffa450edef68
2006-08-07 22:36:42 +00:00
A. Abram White
b499aded0d
Anything can be converted to a string in query comparisons.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@429440 13f79535-47bb-0310-9956-ffa450edef68
2006-08-07 19:18:04 +00:00
A. Abram White
d293c449b1
Formatting.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@428929 13f79535-47bb-0310-9956-ffa450edef68
2006-08-05 00:07:12 +00:00
A. Abram White
f7f225f96d
Change names of query languages to have "openjpa" prefix rather than
...
"org.apache.openjpa" to match configuration properties. Some minor code
formatting fixes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@428918 13f79535-47bb-0310-9956-ffa450edef68
2006-08-04 23:12:30 +00:00
Pinaki Poddar
8e66833915
changed auxiliary enhancer interface
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@428897 13f79535-47bb-0310-9956-ffa450edef68
2006-08-04 22:02:51 +00:00
Pinaki Poddar
8c2c40dfe1
Added provisions for auxiliary enhancers to omit specific methods to be enhanced
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@428886 13f79535-47bb-0310-9956-ffa450edef68
2006-08-04 21:14:48 +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
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
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
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
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
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
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
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
Patrick Linskey
bbb2d060b0
changed AutoDetachValue to extend StringListValue, more closely modeling its behavior in the Kodo configuration system; changed visibility of XML name conversion method
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@425499 13f79535-47bb-0310-9956-ffa450edef68
2006-07-25 19:49:48 +00:00
Marc Prud'hommeaux
e9aa22eddc
Fixed incorrect import
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@425497 13f79535-47bb-0310-9956-ffa450edef68
2006-07-25 19:42:50 +00:00
A. Abram White
3b1cb17cba
General cleanup of cruft accumulated during separation from Kodo.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@425473 13f79535-47bb-0310-9956-ffa450edef68
2006-07-25 18:14:45 +00:00
Pinaki Poddar
884ff1b863
FetchPlan with recursive scheme.
...
- modified select building and load cycles in JDBCStoreManager with FetchState traversal
- loadAll(), findAll() methods reverted to their method signature with FetchConfiguration instead of FetchState
- StateManager.postLoad checks for fetch group with postload set to true
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@425312 13f79535-47bb-0310-9956-ffa450edef68
2006-07-25 07:10:26 +00:00
Stephen Kim
a9bb3a6377
Fix fetch state and proper method sigs for multiple fetch groups
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@425136 13f79535-47bb-0310-9956-ffa450edef68
2006-07-24 18:04:50 +00:00
Marc Prud'hommeaux
7ded181586
Formatting fix
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@424837 13f79535-47bb-0310-9956-ffa450edef68
2006-07-23 22:08:11 +00:00
Marc Prud'hommeaux
aafabcf169
Cleaned up version parsing and made it more robust
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@424834 13f79535-47bb-0310-9956-ffa450edef68
2006-07-23 22:01:46 +00:00
Marc Prud'hommeaux
775c33d4fc
Fixed typo in conditional
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@424833 13f79535-47bb-0310-9956-ffa450edef68
2006-07-23 22:01:21 +00:00
Marc Prud'hommeaux
7f6a84d433
Changed to use ReentrantLock so we could get rid of our last dependency on the backport-util-concurrent library.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@424790 13f79535-47bb-0310-9956-ffa450edef68
2006-07-23 19:46:08 +00:00
Patrick Linskey
ca8633ab49
removed unneeded code; updated configuration metadata; changed visibility of XML-conversion method; moved import to imports rather than fully-qualified class name
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@424456 13f79535-47bb-0310-9956-ffa450edef68
2006-07-21 20:55:44 +00:00
Patrick Linskey
b028e31507
fixed in-mem distinct evaluation of single results
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@424364 13f79535-47bb-0310-9956-ffa450edef68
2006-07-21 15:54:56 +00:00
Patrick Linskey
fc9321f35e
removed some unused code
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@423996 13f79535-47bb-0310-9956-ffa450edef68
2006-07-20 17:24:09 +00:00
Patrick Linskey
b108a39e7e
removed executable flag from all files in trunk, as per Craig's email to OpenJPA list
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@423647 13f79535-47bb-0310-9956-ffa450edef68
2006-07-19 22:50:34 +00:00
Patrick Linskey
7d1c8fccaf
OpenJPA JDBC subsystem; reformatted some core OpenJPA code to move catch and finally blocks around.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@423615 13f79535-47bb-0310-9956-ffa450edef68
2006-07-19 21:34:44 +00:00
Patrick Linskey
f9eb746445
added forgotten new file
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@423328 13f79535-47bb-0310-9956-ffa450edef68
2006-07-19 01:37:08 +00:00
Patrick Linskey
89f6359ebc
moved store facade type registry to Configuration instead of a static in ImplHelper
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@423295 13f79535-47bb-0310-9956-ffa450edef68
2006-07-18 23:52:09 +00:00
Patrick Linskey
19b401bcc7
opened up BrokerFactoryValue bootstrapping configuration a bit; added better error bootstrapping error messages
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@423271 13f79535-47bb-0310-9956-ffa450edef68
2006-07-18 22:32:16 +00:00
Patrick Linskey
99eb918da3
basic logic for converting simple JavaNames to xml-names; added some localization information about forgotten properties; removed spurious memory status printout from base test class; added 'target' to the svn:ignore for all the top-level maven dirs
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@423162 13f79535-47bb-0310-9956-ffa450edef68
2006-07-18 18:10:59 +00:00
Patrick Linskey
2d8ee34a01
moved to raw 'openjpa.*' property prefix instead of 'org.apache.openjpa.*'; implemented system to allow multiple property prefixes for configurations without relaxing any of the current validations
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@422262 13f79535-47bb-0310-9956-ffa450edef68
2006-07-15 16:40:00 +00:00
Patrick Linskey
32baa428fe
updates to configuration. Committed on behalf of Abe
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@422003 13f79535-47bb-0310-9956-ffa450edef68
2006-07-14 19:48:07 +00:00
Patrick Linskey
6577d2f166
fixed some test failures to do with repackaging and build process changes
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@421825 13f79535-47bb-0310-9956-ffa450edef68
2006-07-14 07:43:04 +00:00
Patrick Linskey
1baedb7e8a
PCEnhancer was not running auxiliary enhancers. Note that there still remains a configuration issue with bootstrapping the PCEnhancer.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@421787 13f79535-47bb-0310-9956-ffa450edef68
2006-07-14 03:05:22 +00:00
Patrick Linskey
e27f636729
more javadoc fixes
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@421775 13f79535-47bb-0310-9956-ffa450edef68
2006-07-14 00:47:40 +00:00
Patrick Linskey
7cf69d8bcc
reformatted comments to follow Sun standards and use the standard ASL comment formatting
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@421741 13f79535-47bb-0310-9956-ffa450edef68
2006-07-13 23:44:20 +00:00
Patrick Linskey
4ddf63ea3f
removed some dead code and cleaned up some javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@421722 13f79535-47bb-0310-9956-ffa450edef68
2006-07-13 22:45:48 +00:00
Patrick Linskey
4bc5b3bd0f
some visibility fixes
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@421688 13f79535-47bb-0310-9956-ffa450edef68
2006-07-13 19:04:14 +00:00
Patrick Linskey
26ee3648c3
removed some extraneous JDO / licensing-related code
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@421375 13f79535-47bb-0310-9956-ffa450edef68
2006-07-12 19:07:34 +00:00
Patrick Linskey
7a6d34e95f
re-applied conversion from SolarMetric code formatting.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@421062 13f79535-47bb-0310-9956-ffa450edef68
2006-07-12 01:06:30 +00:00
Patrick Linskey
b9636bb878
fixed some incorrect imports
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@420669 13f79535-47bb-0310-9956-ffa450edef68
2006-07-11 01:00:34 +00:00
Patrick Linskey
1fede626e2
core OpenJPA object management code, plus a sample flat-file XML-based back-end. This submission does not include the OpenJPA JDBC back-end, and also doesn't include any additional tests yet.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@420667 13f79535-47bb-0310-9956-ffa450edef68
2006-07-11 00:35:10 +00:00