Commit Graph

552 Commits

Author SHA1 Message Date
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
Marc Prud'hommeaux 7afa9075e1 Added "openjpa.Log" property to all the database profiles, not just the Derby one.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@496882 13f79535-47bb-0310-9956-ffa450edef68
2007-01-16 22:35:23 +00:00
Marc Prud'hommeaux 49857ff1e8 Added 'openjpa.loglevel' property to build which allows one to control the verbosity of logging via the system property. Also added various profiles for testing different databases (test-derby, test-hsqldb, test-mysql, test-postgresql, test-sqlserver, test-sybase, and test-custom)
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@496880 13f79535-47bb-0310-9956-ffa450edef68
2007-01-16 22:26:04 +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
Pinaki Poddar 8303c81419 Processing <unique-constraint> in XML descriptor and serializing the same.
Does not cover <unique-constraint> within Secondary or Join table.


git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@496522 13f79535-47bb-0310-9956-ffa450edef68
2007-01-15 22:39:14 +00:00
Pinaki Poddar 218a000b84 ClassMappingInfo.addUnique() accepts a Unique instance rather than an array of column names
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@495800 13f79535-47bb-0310-9956-ffa450edef68
2007-01-13 00:35:45 +00:00
Pinaki Poddar b7c7a47aac Modified handling of class level UniqueConstraints to be similar to field level constraints.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@495748 13f79535-47bb-0310-9956-ffa450edef68
2007-01-12 21:49:05 +00:00
A. Abram White 430d90f05f git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@495684 13f79535-47bb-0310-9956-ffa450edef68 2007-01-12 18:50:53 +00:00
A. Abram White 3dd1c43165 Allow use of reflection to access private id fields of pre-1.5 classes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@495650 13f79535-47bb-0310-9956-ffa450edef68
2007-01-12 17:25:25 +00:00
Marc Prud'hommeaux 6eae1a37ae Fixed bug where we were creating the delete query in the setUp(), but never actually executing it.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@495034 13f79535-47bb-0310-9956-ffa450edef68
2007-01-10 23:18:23 +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
Marc Prud'hommeaux 9851f62748 Put getJDBCMajorVersion() in a try/catch block, since it is a JDBC 3-only method, so it might throw an AnstractMethodError.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@495027 13f79535-47bb-0310-9956-ffa450edef68
2007-01-10 23:00:38 +00:00
Patrick Linskey c6121be583 import cleanup
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@495017 13f79535-47bb-0310-9956-ffa450edef68
2007-01-10 22:42:19 +00:00
Marc Prud'hommeaux 9549416b5f Don't clear the @Version field when we clear the internal version.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@494551 13f79535-47bb-0310-9956-ffa450edef68
2007-01-09 20:08:10 +00:00
Marc Prud'hommeaux 799fc69719 Make sure we keep the entity's @Version field in sync with any changes to the internal version of the instance.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@494298 13f79535-47bb-0310-9956-ffa450edef68
2007-01-09 02:00:15 +00:00
Srinivasa Segu 0507313539 Fix to retain original FM because of the possibility of reentrant calls
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@493156 13f79535-47bb-0310-9956-ffa450edef68
2007-01-05 19:36:06 +00:00
A. Abram White 64fe22b628 Remove some incomplete comments.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@492821 13f79535-47bb-0310-9956-ffa450edef68
2007-01-05 00:00:36 +00:00
A. Abram White 61c87ac3a1 Allow refresh of new-flushed instances.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@492820 13f79535-47bb-0310-9956-ffa450edef68
2007-01-05 00:00:10 +00:00
A. Abram White 663fbe62e3 Force a version check when merging an unchanged detached entity to ensure that
we don't blindly use stale state.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@492790 13f79535-47bb-0310-9956-ffa450edef68
2007-01-04 22:44:19 +00:00
Pinaki Poddar f5e4742f17 Ignore "Id" property while reporting unrecognized configuration properties.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@492645 13f79535-47bb-0310-9956-ffa450edef68
2007-01-04 17:19:33 +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
Pinaki Poddar 3e6410b75d Adding @UniqueConstraint annotation.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@492225 13f79535-47bb-0310-9956-ffa450edef68
2007-01-03 17:17:38 +00:00
Patrick Linskey f69eb13714 some docs about MySQL optimization
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@492035 13f79535-47bb-0310-9956-ffa450edef68
2007-01-03 03:09:52 +00:00
Patrick Linskey 942599e797 deleteTableContents optimization for MySQL. This is disabled by default, as MySQL may fail if using InnoDB + delete constraints.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@492032 13f79535-47bb-0310-9956-ffa450edef68
2007-01-03 03:02:45 +00:00
Patrick Linskey 04e07ebd0b adding forgotten new file for previous commit
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@492027 13f79535-47bb-0310-9956-ffa450edef68
2007-01-03 02:50:44 +00:00
Patrick Linskey 4bbf599c45 Added new SchemaTool action: deleteTableContents, and added support for comma-separated lists of schema actions, both via the MappingTool -schemaAction option and via direct SchemaTool usage. This implementation always processes all of the known types in the system; I have not tested running MappingTool against just one or two classes to see what 'all of the known types in the system' really means.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@492024 13f79535-47bb-0310-9956-ffa450edef68
2007-01-03 02:44:57 +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
Patrick Linskey a255da6f65 submitting patches for OPENJPA-92. I have not tested them aside from compiling and running the regression tests (against Derby).
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@491148 13f79535-47bb-0310-9956-ffa450edef68
2006-12-30 01:38:33 +00:00
Patrick Linskey 4611bf9e43 Code changes for OPENJPA-93: sequence maintainance in JTA env without non-JTA datasource. This has been nominally tested in WebLogic Server.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@491147 13f79535-47bb-0310-9956-ffa450edef68
2006-12-30 01:20:55 +00:00
Kevin W. Sutter 6cb121e192 Changes for JIRA OPENJPA-77 issue.
These changes allow the use of the DB2Dictionary with DB2 on z/OS.  May need more in the future, but these will get us started...


git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@491027 13f79535-47bb-0310-9956-ffa450edef68
2006-12-29 15:19:17 +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
Srinivasa Segu 8264feb2d6 Check for null to handle the current thread's Context ClassLoader being null
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@489777 13f79535-47bb-0310-9956-ffa450edef68
2006-12-22 22:06:17 +00:00
Srinivasa Segu 89f0148fb3 Fix - DetachedStateManager to dirty the owning metadata in case of a dirtied embedded field
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@489772 13f79535-47bb-0310-9956-ffa450edef68
2006-12-22 21:34:48 +00:00
Srinivasa Segu 2508046403 Fix - return the qualified SecondaryTableName
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@489768 13f79535-47bb-0310-9956-ffa450edef68
2006-12-22 21:21:19 +00:00
Srinivasa Segu fdabcf6f03 Use fetch - needed to handle autoassign value-strategy
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@489761 13f79535-47bb-0310-9956-ffa450edef68
2006-12-22 20:58:43 +00:00
Srinivasa Segu 414a5d474d Reset the SM to the old value, instead of nulling out.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@489750 13f79535-47bb-0310-9956-ffa450edef68
2006-12-22 20:38:01 +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
Marc Prud'hommeaux fee371db06 Put in missing check for a NOT clause when short-circuiting an IN expression that has a single value.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@487926 13f79535-47bb-0310-9956-ffa450edef68
2006-12-17 01:10:19 +00:00
Marc Prud'hommeaux 25988d2793 Convert single values into Collections in order to support varargs "IN" expressions.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@487925 13f79535-47bb-0310-9956-ffa450edef68
2006-12-17 00:59:59 +00:00
Marc Prud'hommeaux d98ca1d91d Fixed error in substring range check.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@487923 13f79535-47bb-0310-9956-ffa450edef68
2006-12-17 00:31:48 +00:00
Patrick Linskey 264356a23f created methods for interacting with product prefixes; moved configuration loading mechanisms to these new methods
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@487919 13f79535-47bb-0310-9956-ffa450edef68
2006-12-16 23:58:54 +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 87b5ae1f4f JIRA OPENJPA-90
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@487605 13f79535-47bb-0310-9956-ffa450edef68
2006-12-15 18:00:30 +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 d823825a34 Allow configurable set of known unproxyable types.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@487410 13f79535-47bb-0310-9956-ffa450edef68
2006-12-15 00:55:14 +00:00
Marc Prud'hommeaux 847b33aa6e Allow updating in-memory values with complex expressions, rather than just simple Constants and Literals.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@487403 13f79535-47bb-0310-9956-ffa450edef68
2006-12-15 00:04:53 +00:00
Marc Prud'hommeaux 53614b371f Prevent the end range of a substring from going over the end of the string.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@487401 13f79535-47bb-0310-9956-ffa450edef68
2006-12-15 00:04:14 +00:00
A. Abram White 4e85c5eb84 Making loading of build-time generated proxies overridable by subclasses.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@487382 13f79535-47bb-0310-9956-ffa450edef68
2006-12-14 23:07:19 +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