A. Abram White
c0c4c3c738
Fixes relating to multiple same-typed embedded fields loading eager relations,
...
and deep vertical inheritance hierarchies where the base class's primary key
is auto-assigned on insert.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@453449 13f79535-47bb-0310-9956-ffa450edef68
2006-10-06 01:04:34 +00:00
A. Abram White
8785be46e7
Handle exceptions from transaction listeners appropriately. Allow user to
...
override default CallbackMode for both lifecycle and transaction listeners.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@452981 13f79535-47bb-0310-9956-ffa450edef68
2006-10-04 19:12:34 +00:00
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
Marc Prud'hommeaux
cc25d2a536
Changed revision checking system to spawn the "svnversion" command rather than directly parsiong the .svn/entries file. This gives a more accurate revision number, and it also deals with the new subversion format, which is no longer XML.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@451471 13f79535-47bb-0310-9956-ffa450edef68
2006-09-29 22:08:28 +00:00
Patrick Linskey
b198cb7305
changing phase so that the svn artifact gets into classes dir before jars are made
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@451468 13f79535-47bb-0310-9956-ffa450edef68
2006-09-29 21:48:29 +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
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
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
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
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
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
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
Marc Prud'hommeaux
812e184e89
Added openjpa-all module which will manually create an openjpa-all-VERSION.jar file that aggregates all the other openja-*.jar files; fixed Configurations.java to provide more information when a missing services resource is caused by a deeper exception
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@441318 13f79535-47bb-0310-9956-ffa450edef68
2006-09-08 01:24:18 +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
Marc Prud'hommeaux
cd9c6c1986
Moved build number generation into openjpa-lib, since having it in the top-level pom causes the plugin to be executed multiple times in each module (bug reported at MNG-2221)
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@438035 13f79535-47bb-0310-9956-ffa450edef68
2006-08-29 09:53:48 +00:00
Marc Prud'hommeaux
dc1f0bf204
OPENJPA-30 Changed version to 0.9.0-incubating-SNAPSHOT in accordance with Apache incubator guidelines
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@437209 13f79535-47bb-0310-9956-ffa450edef68
2006-08-26 18:59:34 +00:00
Marc Prud'hommeaux
f37d9f8d61
Fixed to use equals() instead of == for testing the type of the current Locale.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@436962 13f79535-47bb-0310-9956-ffa450edef68
2006-08-25 21:35:13 +00:00
Marc Prud'hommeaux
45c89bd455
Fixed assumption by test case that the default locale would not be GERMANY, which was special-cased in the test.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@436944 13f79535-47bb-0310-9956-ffa450edef68
2006-08-25 20:57:46 +00:00
Marc Prud'hommeaux
8adfc84d9c
Fixed assumption by test case that the default locale would not be GERMANY, which was special-cased in the test.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@436941 13f79535-47bb-0310-9956-ffa450edef68
2006-08-25 20:53:28 +00:00
Marc Prud'hommeaux
caffb77405
Prefixed pom names with 'OpenJPA' to make them more friendly when their public names are displayed
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@436911 13f79535-47bb-0310-9956-ffa450edef68
2006-08-25 19:16:23 +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
Patrick Linskey
0e41d092c9
resolved JIRA-32: unnecessary servlet dependency in openjpa-lib pom
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@434330 13f79535-47bb-0310-9956-ffa450edef68
2006-08-24 07:35:16 +00:00
Marc Prud'hommeaux
bad3cba9b6
Changed version to be a SNAPSHOT so we can use the snapshotRepository
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@434196 13f79535-47bb-0310-9956-ffa450edef68
2006-08-23 21:37:05 +00:00
Patrick Linskey
c8af68ac7d
Removed unneeded field.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@431669 13f79535-47bb-0310-9956-ffa450edef68
2006-08-15 18:46:59 +00:00
A. Abram White
daf1f35793
Marc correctly pointed out that FileInputStream.read() isn't guaranteed to
...
read all available data into the given buffer in one call.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@431635 13f79535-47bb-0310-9956-ffa450edef68
2006-08-15 16:16:57 +00:00
A. Abram White
0821efea40
Work around JVMs that don't return a valid value for File.length(). We've
...
discovered at least one that doesn't.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@431627 13f79535-47bb-0310-9956-ffa450edef68
2006-08-15 15:57:14 +00:00
A. Abram White
26ae2fa31c
Anchor token fix.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@431131 13f79535-47bb-0310-9956-ffa450edef68
2006-08-13 01:49:01 +00:00
A. Abram White
132602e3d2
Use configuration's class loader.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@430934 13f79535-47bb-0310-9956-ffa450edef68
2006-08-12 01:01:55 +00:00
A. Abram White
174bbd211f
Don't use ant classloader to find configuration providers?
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@430911 13f79535-47bb-0310-9956-ffa450edef68
2006-08-11 22:53:58 +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
A. Abram White
3e758faf25
Fix invalid property warning logic.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@430188 13f79535-47bb-0310-9956-ffa450edef68
2006-08-09 23:39:58 +00:00
A. Abram White
fd74642a17
Give better error when run on bad .class file.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@430171 13f79535-47bb-0310-9956-ffa450edef68
2006-08-09 22:39:24 +00:00
A. Abram White
5bef32e516
Make Localizer.Message a static class. Fix implicit type of query path
...
traversal terminating in byte[], char[] fields.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@430146 13f79535-47bb-0310-9956-ffa450edef68
2006-08-09 20:59:45 +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
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
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
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
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
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
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
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
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
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
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