Marc Prud'hommeaux
a92785fea6
OPENJPA-194 Changed openjpa-all-VERSION.jar to be just openjpa-VERSION.jar, and changes openjpa-project-VERSION.zip to be apache-openjpa-VERSION.zip
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@536693 13f79535-47bb-0310-9956-ffa450edef68
2007-05-09 22:23:54 +00:00
Marc Prud'hommeaux
640cddad04
Updated license headers to be in accordance with http://www.apache.org/legal/src-headers.html
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@528881 13f79535-47bb-0310-9956-ffa450edef68
2007-04-14 21:50:17 +00:00
A. Abram White
3885031a89
OPENJPA-214 : Support float and double fields as single-field identity primary
...
keys.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@527648 13f79535-47bb-0310-9956-ffa450edef68
2007-04-11 20:25:11 +00:00
Marc Prud'hommeaux
0806fd5b44
OPENJPA-208 Added NoResultException and NonUniqueResultException to kernel to allow the identification of the case where a unique result was selected by either none or too many were found
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@526834 13f79535-47bb-0310-9956-ffa450edef68
2007-04-09 17:06:23 +00:00
Michael Dick
7fd119e840
updating trunk version
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@526476 13f79535-47bb-0310-9956-ffa450edef68
2007-04-07 19:54:18 +00:00
Marc Prud'hommeaux
af2550bb05
OPENJPA-208 Throw NoResultException and NonUniqueResultException when expected
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@526322 13f79535-47bb-0310-9956-ffa450edef68
2007-04-06 23:52:03 +00:00
Patrick Linskey
840644fcc5
OPENJPA-182. Changed JDBCFetchPlan.setIsolation() to use enums; added logic to handle enum hints to QueryImpl; moved from IllegalArgumentException to InvalidArgumentException to unify exception processing for both queries and find calls.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@526316 13f79535-47bb-0310-9956-ffa450edef68
2007-04-06 23:22:06 +00:00
Michael Dick
57f9f3af1d
OpenJPA-185 allow optional to be overriden by xml descriptor.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@524921 13f79535-47bb-0310-9956-ffa450edef68
2007-04-02 21:14:48 +00:00
A. Abram White
1679c05c89
Cleanup and fixes to changes for OPENJPA-168.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@523425 13f79535-47bb-0310-9956-ffa450edef68
2007-03-28 17:43:35 +00:00
David J. Wisneski
fee930886b
fixing indentation and few changes suggested by Abe for OpenJPA patch-168
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@523071 13f79535-47bb-0310-9956-ffa450edef68
2007-03-27 20:47:21 +00:00
David J. Wisneski
442c1cee48
Patch for OPENJPA-168
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@522581 13f79535-47bb-0310-9956-ffa450edef68
2007-03-26 17:59:03 +00:00
Patrick Linskey
b5bab78e04
OPENJPA-142: read entity names specified in XML. Also added comment clarifying that ClassMetaData.setTypeAlias() is only used at enhance time.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@516682 13f79535-47bb-0310-9956-ffa450edef68
2007-03-10 11:14:44 +00:00
Marc Prud'hommeaux
9bfc9cf190
OPENJPA-166: Added new setRollbackOnly(Throwable cause) flag so the Broker can track the reason for why the transaction would be marked for rollback, and correspondingly added reporting of the cause in LocalManagedRuntime, as well as support for WLS's corresponding support in WLSManagedRuntime.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@516597 13f79535-47bb-0310-9956-ffa450edef68
2007-03-09 23:07:49 +00:00
Patrick Linskey
0b90c67a8b
OPENJPA-71: resolved inefficiency with array types and AbstractPCData
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@515987 13f79535-47bb-0310-9956-ffa450edef68
2007-03-08 09:34:52 +00:00
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