A. Abram White
ebe1b5711e
Fix a couple of errors in the code to default to the non-finalizing broker
...
in PersistenceProviderImpl.createContainerManagedEntityManagerFactory:
1) Don't add to the given Map, because it might be read-only.
2) Prefix the BrokerImpl property correctly when adding it.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@513974 13f79535-47bb-0310-9956-ffa450edef68
2007-03-02 21:57:03 +00:00
Patrick Linskey
dc797ab923
OPENJPA-160. Non-finalizing implementation is automatically selected when createContainerEntityManagerFactory() is invoked; clarified some method signatures.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@513183 13f79535-47bb-0310-9956-ffa450edef68
2007-03-01 06:31:50 +00:00
Kevin W. Sutter
5ae6e7594f
These changes are reverting the changes integrated for revisions 510336 and 510281. From the remarks on the dev mailing list, the basic idea is sound, we just need to re-visit the implementation a bit.
...
One "problem" that I couldn't resolve with this revert process was to restore the svn history for the DB2Dictionary.java part. Somehow, the history for this part was lost when revision 510336 was integrated. I have not found a means of restoring that history. But, at least the contents are back to a known state.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@512327 13f79535-47bb-0310-9956-ffa450edef68
2007-02-27 17:23:27 +00:00
Patrick Linskey
7db81e3d6c
OPENJPA-158 -- reduced log level to TRACE for a variety of enhancement and metadata related messages
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@512107 13f79535-47bb-0310-9956-ffa450edef68
2007-02-27 01:59:42 +00:00
David J. Wisneski
2d3871b86b
DB2 Optimize for clause enhancement
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@510281 13f79535-47bb-0310-9956-ffa450edef68
2007-02-21 22:50:04 +00:00
A. Abram White
4efc5d6997
Revert "full properties caching" changes made to ConfigurationImpl -- they're
...
causing problems on some appservers.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@508445 13f79535-47bb-0310-9956-ffa450edef68
2007-02-16 15:23:09 +00:00
Marc Prud'hommeaux
ac5aa0823d
Changed JPA API dependency from javax.persistence/persistence-api to org.apache.geronimo.specs/geronimo-jpa_3.0_spec since the latter is a more correct reflection of the specification.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@506898 13f79535-47bb-0310-9956-ffa450edef68
2007-02-13 08:09:18 +00:00
Kevin W. Sutter
d826caf711
OPENJPA-119. Needed to allow the EM.clear operation to perform without doing an implicit flush. Introduced a new boolean
...
parameter to indicate whether a flush is desired or not. This allows both the new (correct) behaviour for JPA as well as the
old behaviour for other persistence personalities (JDO, etc). I also introduced a new testcase for this scenario, and updated
a couple of other tests.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502751 13f79535-47bb-0310-9956-ffa450edef68
2007-02-02 21:12:35 +00:00
Craig Russell
862cd158ed
OPENJPA-122 Added check for methods that require the EntityManager to be open but where the Broker would throw a different exception
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502325 13f79535-47bb-0310-9956-ffa450edef68
2007-02-01 19:35:30 +00:00
Marc Prud'hommeaux
2ac1bcccbb
OPENJPA-118: Implemented patch provided by David Ezzio for broken openjpa.AutoDetach behavior
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502022 13f79535-47bb-0310-9956-ffa450edef68
2007-01-31 22:27:29 +00:00
A. Abram White
372e899981
Change EntityManagerImpl.assertOpen to EntityManagerImpl.assertNotCloseInvoked
...
to more accurately reflect the purpose of the method. Fix several instances
where we were relying on the method to actually check whether the underlying
broker was open.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@501468 13f79535-47bb-0310-9956-ffa450edef68
2007-01-30 16:56:13 +00:00
Kevin W. Sutter
17c6580e4c
Changes for JIRA OPENJPA-116 issue.
...
Added a test to ensure that the EntityManager was still open before executing the getDelegate() code.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@501445 13f79535-47bb-0310-9956-ffa450edef68
2007-01-30 16:19:59 +00:00
Marc Prud'hommeaux
0273937971
If we don't know the access type for a class when parsing, first check for a superclass and default to that class' access type.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@501256 13f79535-47bb-0310-9956-ffa450edef68
2007-01-30 00:54:27 +00:00
Marc Prud'hommeaux
24cf4c939e
If we don't know the access type for a class when parsing, first check for a superclass and default to that class' access type.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@501255 13f79535-47bb-0310-9956-ffa450edef68
2007-01-30 00:54:19 +00:00
Srinivasa Segu
95544768f6
Fix to use the specified result-set-mapping for named native queries
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@498859 13f79535-47bb-0310-9956-ffa450edef68
2007-01-22 23:59:44 +00:00
Srinivasa Segu
45d90fd282
Fixes to parse and use SqlResultSetMapping, SqlResultSetMappings annotations.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@498850 13f79535-47bb-0310-9956-ffa450edef68
2007-01-22 23:33:08 +00:00
Marc Prud'hommeaux
4a5e42ff8b
Guard for null in Class.getClassLoader().
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@497635 13f79535-47bb-0310-9956-ffa450edef68
2007-01-18 23:21:44 +00:00
Kevin W. Sutter
bb7bf59409
Changes for JIRA OPENJPA-103 issue.
...
The processing for default (system level) pre-* and post-* lifecycle methods was not getting kicked off properly. I just had to add a case entry for these MetaDataTags in the switch statement.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@497219 13f79535-47bb-0310-9956-ffa450edef68
2007-01-17 22:46:39 +00:00
Patrick Linskey
c7128669c7
fixes for OPENJPA-102 and OPENJPA-104
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@497185 13f79535-47bb-0310-9956-ffa450edef68
2007-01-17 21:40:37 +00:00
Patrick Linskey
a6e07e5040
corrected debug logic; improved trace message
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@496886 13f79535-47bb-0310-9956-ffa450edef68
2007-01-16 22:57:05 +00:00
Patrick Linskey
c87c187f10
corrected debug logic; improved trace message
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@496869 13f79535-47bb-0310-9956-ffa450edef68
2007-01-16 21:55:09 +00:00
Patrick Linskey
6055a34b42
OPENJPA-100: <jar-file> processing bugfix, and logging improvements
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@495028 13f79535-47bb-0310-9956-ffa450edef68
2007-01-10 23:06:42 +00:00
A. Abram White
2013fb55b7
Allow non-string values in Map passed to Persistence.createEntityManagerFactory
...
for OpenJPA-specific properties.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@492368 13f79535-47bb-0310-9956-ffa450edef68
2007-01-04 00:31:29 +00:00
A. Abram White
056ecf52fd
Exception translation when a managed transaction completion even causes an
...
error.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@491994 13f79535-47bb-0310-9956-ffa450edef68
2007-01-03 00:48:59 +00:00
A. Abram White
6c4a0dd4af
Fix bug in XML metadata serialization order of properties. Add target-entity
...
to serialized properties when appropriate.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@489778 13f79535-47bb-0310-9956-ffa450edef68
2006-12-22 22:11:06 +00:00
A. Abram White
8b6406724b
Always merge new MetaDataFactory settings with any previous settings
...
because many of its properties are often set implicitly and aren't meant to
erase other settings.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@489520 13f79535-47bb-0310-9956-ffa450edef68
2006-12-22 00:21:17 +00:00
A. Abram White
aecff50b27
Stop enhancing entity identity classes to make non-public properties public for
...
access by the various identity object manipulation methods of the enhanced
entity class. This caused problems with runtime enhancement if the identity
class was loaded before the entity class. Instead, rely on reflection to
access non-public identity class members.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@489408 13f79535-47bb-0310-9956-ffa450edef68
2006-12-21 17:08:38 +00:00
Pinaki Poddar
3db7e32a56
A single class may not have more than one lifecycle callback method for the same lifecycle event (spec section 3.5).
...
The contraint applies irrespective of whether the class is a persistent bean or a listener or both.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@487652 13f79535-47bb-0310-9956-ffa450edef68
2006-12-15 20:35:26 +00:00
A. Abram White
f48441c17a
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@487421 13f79535-47bb-0310-9956-ffa450edef68
2006-12-15 01:38:44 +00:00
A. Abram White
597930f15a
JPA says an EM should act closed when close() has been invoked even if the
...
persistence context remains open while the current managed transaction
completes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@487339 13f79535-47bb-0310-9956-ffa450edef68
2006-12-14 20:27:16 +00:00
Pinaki Poddar
dfca20d465
Processing <metadata-complete> and <xml-mapping-metadata-complete>
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@486446 13f79535-47bb-0310-9956-ffa450edef68
2006-12-13 01:16:40 +00:00
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
Pinaki Poddar
890ae1a702
An extension mechanism for PersistenceProvider to supply their own Configuration Provider
...
and EntityManagerFactory. This is a tentative/interim solution and likely to be replaced
once we move to ProductDerivation based extension framework.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@440721 13f79535-47bb-0310-9956-ffa450edef68
2006-09-06 14:23:28 +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
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
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
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
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
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
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
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
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
1a2d048f3d
load-fetch-group annotation added
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@428883 13f79535-47bb-0310-9956-ffa450edef68
2006-08-04 21:12:35 +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
d1df9344fe
Fix XML serialization of cascade data.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@428565 13f79535-47bb-0310-9956-ffa450edef68
2006-08-03 23:36:48 +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
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
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
A. Abram White
7268ed8f80
Default transaction type to RESOURCE_LOCAL. Spec changed in late revision
...
to default based on environment, rather than always defaulting to JTA.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@426351 13f79535-47bb-0310-9956-ffa450edef68
2006-07-28 01:16:51 +00:00
Patrick Linskey
0bf2166ede
removed some unneeded code; defaulted MetaDataFactory property
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@425805 13f79535-47bb-0310-9956-ffa450edef68
2006-07-26 18:50:51 +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
7bd0d044e3
guarded against null properties; changed the name of the class transformer options to be consistent with other OpenJPA config property names
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@424362 13f79535-47bb-0310-9956-ffa450edef68
2006-07-21 15:53:31 +00:00
Patrick Linskey
09e89d9cbb
fixed PUIImpl to deal with openjpa properties namespace correctly. TestPersistence should now work. Run 'mvn test -Dtest=TestPersistence' to see things in action.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@423720 13f79535-47bb-0310-9956-ffa450edef68
2006-07-20 02:38:07 +00:00
Patrick Linskey
a1f4fd3eb0
changed some more finally and catch blocks that didn't get properly reformatted with earlier reformattings / sed scripts
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@423693 13f79535-47bb-0310-9956-ffa450edef68
2006-07-20 01:15:04 +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
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
9fd87ae45c
added JPA bootstrapping resource
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@422266 13f79535-47bb-0310-9956-ffa450edef68
2006-07-15 16:56:41 +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
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
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
3feb467900
removed serp fork; replaced with new maven-based serp access. also updated poms to use the Geronimo versions of JTA etc. until we get closure on the plan going forward with the authoritative Glassfish jars
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@421069 13f79535-47bb-0310-9956-ffa450edef68
2006-07-12 01:32:26 +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
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