Marc Prud'hommeaux
b9570f6dd5
Removed Apache license header, which appears to have been accidentally added. The file is actually released under Sun's CDDL.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@477455 13f79535-47bb-0310-9956-ffa450edef68
2006-11-21 01:25:19 +00:00
Patrick Linskey
bda2015398
added openjpa.Id property, and put logic in PersistenceUnitInfoImpl to set the openjpa.Id property to the persistence unit name if no openjpa.Id property is discovered.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475084 13f79535-47bb-0310-9956-ffa450edef68
2006-11-15 00:30:24 +00:00
Marc Prud'hommeaux
3e8f9d931a
Updated to version 0.9.7-incubating-SNAPSHOT
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@474069 13f79535-47bb-0310-9956-ffa450edef68
2006-11-12 22:28:45 +00:00
Marc Prud'hommeaux
813bb89223
Updated to version 0.9.6-incubating
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@474050 13f79535-47bb-0310-9956-ffa450edef68
2006-11-12 21:36:52 +00:00
Marc Prud'hommeaux
ef56f8281b
Updated to version 0.9.7-incubating-SNAPSHOT
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@473962 13f79535-47bb-0310-9956-ffa450edef68
2006-11-12 12:59:24 +00:00
Marc Prud'hommeaux
e06b1c5346
Fixed XML header.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@473954 13f79535-47bb-0310-9956-ffa450edef68
2006-11-12 12:34:09 +00:00
Marc Prud'hommeaux
ead07f40c0
Rolled back to 0.9.6-incubating to re-run the release process; fixed licenses in NOTICE.txt; added license headers to files where they were missing; removed sun.misc.Perf class, since we are no longer supporting JDK 1.3 (and it is only unavailable in 1.3 and lower)
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@473939 13f79535-47bb-0310-9956-ffa450edef68
2006-11-12 11:44:59 +00:00
Marc Prud'hommeaux
cf56e213a9
Updated to version 0.9.7-incubating-SNAPSHOT
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@472718 13f79535-47bb-0310-9956-ffa450edef68
2006-11-09 00:41:04 +00:00
Marc Prud'hommeaux
0e02efdfbf
Updated version to 0.9.6-incubating in hopes of having a release
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@472238 13f79535-47bb-0310-9956-ffa450edef68
2006-11-07 20:34:03 +00:00
A. Abram White
92343313fb
Fix recently-introduced bugs in conversion between JPA facades and underlying
...
components.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@472193 13f79535-47bb-0310-9956-ffa450edef68
2006-11-07 18:37:33 +00:00
A. Abram White
cd65ce1c4d
No need to eagerly instantiate plugins for class transformer configuration.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@471804 13f79535-47bb-0310-9956-ffa450edef68
2006-11-06 18:05:53 +00:00
Patrick Linskey
346f6a0d0c
tolerate EM / EMF proxies as arguments to toBroker() / toBrokerFactory().
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@471497 13f79535-47bb-0310-9956-ffa450edef68
2006-11-05 19:24:08 +00:00
A. Abram White
9623c5c6f8
Support many-one and one-one relations as primary key fields.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@471045 13f79535-47bb-0310-9956-ffa450edef68
2006-11-03 23:15:08 +00:00
Marc Prud'hommeaux
b4077bd6a6
OPENJPA-74: Fixed multiple problems with named queries: 1. They were not being parsed as part of the orm.xml file, since we were incorrectly looking for an attribute named 'query' (when it really should have been a sub-element named 'query'). 2. Looking for a named query did not force resolution of all metadatas. 3. An NPE was being thrown when a JPQL query was created with a null filter
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@470996 13f79535-47bb-0310-9956-ffa450edef68
2006-11-03 21:10:39 +00:00
Patrick Linskey
a493e790b7
Removed some dead code and unused imports.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@469315 13f79535-47bb-0310-9956-ffa450edef68
2006-10-30 23:32:19 +00:00
Marc Prud'hommeaux
e2f38567a1
Upgraded to version '0.9.6-incubating-SNAPSHOT'
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@464753 13f79535-47bb-0310-9956-ffa450edef68
2006-10-17 00:05:01 +00:00
Marc Prud'hommeaux
fb00d685bd
Upgraded to version '0.9.5-incubating'
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@464711 13f79535-47bb-0310-9956-ffa450edef68
2006-10-16 23:00:34 +00:00
A. Abram White
c8b5b2746e
Validate product derivations before caching them so we don't end up with runtime
...
errors when clients use JPA without jdo.jar or JDO without jpa.jar. Give a
more succinct warning when some product derivations are uninstantiable, with
more detailed information available via the ProductDerivations class's main().
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@463829 13f79535-47bb-0310-9956-ffa450edef68
2006-10-13 21:07:17 +00:00
A. Abram White
f27898f280
Take advantage StringUtils where appropriate.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@462617 13f79535-47bb-0310-9956-ffa450edef68
2006-10-10 22:39:15 +00:00
Marc Prud'hommeaux
0c58bedbb6
Updated version to be openjpa-0.9.5-incubating-SNAPSHOT
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@454516 13f79535-47bb-0310-9956-ffa450edef68
2006-10-09 21:16:48 +00:00
Marc Prud'hommeaux
2fbc438887
Updated to final 0.9.0-incubating release number
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@454452 13f79535-47bb-0310-9956-ffa450edef68
2006-10-09 18:40:10 +00:00
A. Abram White
0bc4acc2af
Always use a ConfigurationProvider that supplies a spec.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@454191 13f79535-47bb-0310-9956-ffa450edef68
2006-10-08 19:05:15 +00:00
A. Abram White
dcf691a727
Get rid of warning for product derivations that use an unsupported class
...
version. Minor API changes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@454072 13f79535-47bb-0310-9956-ffa450edef68
2006-10-08 04:03:06 +00:00
Patrick Linskey
28910a7374
Changed OpenJPAProductDerivation to have a proper lifecycle callback for BrokerFactoryValue initialization; added supporting infrastructure as needed.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@454064 13f79535-47bb-0310-9956-ffa450edef68
2006-10-08 02:05:49 +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
afe9acd576
Doc corrections.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@452672 13f79535-47bb-0310-9956-ffa450edef68
2006-10-03 23:00:18 +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
A. Abram White
e30632b60b
Trying a new approach to automatic enhancement in a container. Might have to
...
revert.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@452141 13f79535-47bb-0310-9956-ffa450edef68
2006-10-02 17:39:28 +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
Pinaki Poddar
24c51d9fe6
Adding informative messages when non-default Persistence Provider is configured.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450674 13f79535-47bb-0310-9956-ffa450edef68
2006-09-28 03:00:31 +00:00
Marc Prud'hommeaux
e1e96406e8
Only treat methods as persistent by default if there is a setter for the method in the described class.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450649 13f79535-47bb-0310-9956-ffa450edef68
2006-09-28 00:33:48 +00:00
Pinaki Poddar
7baaaf4b76
Fixing http://issues.apache.org/jira/browse/OPENJPA-60
...
Specifying the wrong persistence implementation in persistence.xml leads to misleading error message
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@450632 13f79535-47bb-0310-9956-ffa450edef68
2006-09-27 23:19:17 +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
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
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
9ba388d243
Use the environment class loader as the metadata loader only if it is not null.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@447112 13f79535-47bb-0310-9956-ffa450edef68
2006-09-17 18:52:37 +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
Marc Prud'hommeaux
fcd072a2c5
Fixed bug where NamedNativeQuery/NamedNativeQueries was not being examined when looking up named queries, which could result in them not being found if the metadata has not yet been parsed completely
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443432 13f79535-47bb-0310-9956-ffa450edef68
2006-09-14 18:21:19 +00:00
A. Abram White
c863a7a489
target-entity parse fix.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443114 13f79535-47bb-0310-9956-ffa450edef68
2006-09-13 20:35:15 +00:00
Marc Prud'hommeaux
868cc7bc4e
Moved nulling of sequence name to after the check and configuration of the plugin, since it was preventing using a custom sequence plugin from working when specified in the sequence name.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443104 13f79535-47bb-0310-9956-ffa450edef68
2006-09-13 20:03:44 +00:00
Marc Prud'hommeaux
30345610fa
Moved nulling of sequence name to after the check and configuration of the plugin, since it was preventing using a custom sequence plugin from working when specified in the sequence name.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@443103 13f79535-47bb-0310-9956-ffa450edef68
2006-09-13 20:03:39 +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
1e95734015
OPENJPA-39 test case. Also query fixes and fix to possible data corruption
...
issue (yikes!).
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@442388 13f79535-47bb-0310-9956-ffa450edef68
2006-09-11 23:54:01 +00:00
Marc Prud'hommeaux
3b2f6a720d
OPENJPA-40 Use the same environment class loader both as the core class loader and the environment class loader for the XMLPersistenceMetaDataParser.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@442026 13f79535-47bb-0310-9956-ffa450edef68
2006-09-10 22:49:25 +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
554f55f46e
Update docs on fetch groups.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@441611 13f79535-47bb-0310-9956-ffa450edef68
2006-09-08 18:44:11 +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