Marc Prud'hommeaux
5ff49b37b9
Removed check for Long.MIN_VALUE, since recent version of HSQL do not have the storage limitation.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@437981 13f79535-47bb-0310-9956-ffa450edef68
2006-08-29 06:14:59 +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
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
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
Marc Prud'hommeaux
323fce145e
Removed custom serp repository, since it is now available via ibiblio.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@434546 13f79535-47bb-0310-9956-ffa450edef68
2006-08-24 22:29:35 +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
A. Abram White
746ebdfdc9
Slightly cleaner and in some cases more efficient exclusion of
...
persistence-aware types from mapping tool actions.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@434473 13f79535-47bb-0310-9956-ffa450edef68
2006-08-24 19:05:51 +00:00
Marc Prud'hommeaux
8fbfa8aecc
Output build artifacts to the target/assembly/ directory.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@434440 13f79535-47bb-0310-9956-ffa450edef68
2006-08-24 17:24:17 +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
Pinaki Poddar
d0f15b881a
Modified to ignore p-aware classes.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@434303 13f79535-47bb-0310-9956-ffa450edef68
2006-08-24 05:13:20 +00:00
Pinaki Poddar
6e262960ae
MappingTool modified to ignore persistence-aware classes
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@434251 13f79535-47bb-0310-9956-ffa450edef68
2006-08-23 23:45:42 +00:00
A. Abram White
3aaa66ee7f
Add ability to include one fetch group in another to FetchGroup annotation.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@434203 13f79535-47bb-0310-9956-ffa450edef68
2006-08-23 21:50:02 +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
Marc Prud'hommeaux
086ecd6507
Changed packaging to "pom", since we aren't building a jar for this module.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@434116 13f79535-47bb-0310-9956-ffa450edef68
2006-08-23 18:23:19 +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
ac98ba5c80
Split up the documentation into multiple chunks for easier management.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@433761 13f79535-47bb-0310-9956-ffa450edef68
2006-08-22 21:28:53 +00:00
Kevin W. Sutter
d13c9fa4f6
Updated the SVN properties to ignore the target directories at each of the OpenJPA sub-project levels (openjpa-jdbc,
...
openjpa-jdbc-5, etc). Some of the sub-projects already had the svn:ignore property for the target directory, but
not all of them. I also updated the properties to ignore any "dot files" at the top most OpenJPA (ie. trunk)
level. This will help with ignoring the metadata files associated with IDE's such as Eclipse (.classpath and
.project) and NetBeans (.netbeans).
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@433670 13f79535-47bb-0310-9956-ffa450edef68
2006-08-22 15:14:46 +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
eb2b5e6551
Method visibility fix.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@432447 13f79535-47bb-0310-9956-ffa450edef68
2006-08-18 00:21:04 +00:00
A. Abram White
69b83ac3ff
When a query projects and groups on a relation field, make sure to group on
...
the same columns we select. Added Select.groupBy(ClassMapping, ...) API.
Implemented by temporarily putting target Select into "group mode" -- in which
all select() calls are instead routed to groupBy() calls -- and invoking the
same JDBCStoreManager.select() logic we use for the
Select.select(ClassMapping...) call. Having the Select "fake out" its callers
by translating select() calls into groupBy() calls isn't necessarily pretty,
but it allows us to re-use all our existing select logic (not just in
JDBCStoreManager, but in all the class, field, discriminator, version, etc
mapping strategies) rather than creating duplicate logic in parallel groupBy()
methods in all these components.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@432444 13f79535-47bb-0310-9956-ffa450edef68
2006-08-18 00:17:30 +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
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
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
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
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
1e6d57eb55
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@429477 13f79535-47bb-0310-9956-ffa450edef68
2006-08-07 21:02:31 +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