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
47ead9315d
handle non-OpenJPA EMs more gracefully. This will help for containers that proxy the OpenJPA EM.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@438298 13f79535-47bb-0310-9956-ffa450edef68
2006-08-29 23:49:48 +00:00
Pinaki Poddar
2148098841
Changed due to property prefix from "kodo." to "openjpa."
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@438149 13f79535-47bb-0310-9956-ffa450edef68
2006-08-29 18:34:34 +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
de9352568f
Expanded default doubleTypeName to be NUMERIC so it can properly fit a double.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@437982 13f79535-47bb-0310-9956-ffa450edef68
2006-08-29 06:23:13 +00:00
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