Commit Graph

684 Commits

Author SHA1 Message Date
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
Marc Prud'hommeaux 62358d36d1 Handle ClassNotFoundException and ClassCircularityError instances when trying to load the classes into the temporary class loader during enhancement. These exceptions will indicate that the class is not loadable, and so they couldn't have any persistent metadata anyway.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@501185 13f79535-47bb-0310-9956-ffa450edef68
2007-01-29 21:23:12 +00:00
Marc Prud'hommeaux 22f77ef4d2 Handle ClassNotFoundException and ClassCircularityError instances when trying to load the classes into the temporary class loader during enhancement. These exceptions will indicate that the class is not loadable, and so they couldn't have any persistent metadata anyway.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@501183 13f79535-47bb-0310-9956-ffa450edef68
2007-01-29 21:07:20 +00:00
A. Abram White 5f76ea2eaf Fix documentation on openjpa.LockManager property. Remove some redundant logic
from BrokerImpl.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@501171 13f79535-47bb-0310-9956-ffa450edef68
2007-01-29 20:11:43 +00:00
Pinaki Poddar 74823f7cd0 Rollback redundant change of removing "Id" before warning for unrecognized configuration keys.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@501139 13f79535-47bb-0310-9956-ffa450edef68
2007-01-29 18:31:27 +00:00
Marc Prud'hommeaux d9c26d9a8d Exclude the openjpa-examples jar from the aggregate jar, so we don't include the example classes in the OpenJPA jar.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@499622 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 23:58:52 +00:00
Marc Prud'hommeaux 2c5377f687 Throw an exception if the user tries to perform an bulk update with a parameter other than a primitive.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@499601 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 22:48:23 +00:00
Patrick Linskey 6e079939b5 improved error message. Yes, this message discusses concrete means for configuration that are not really in the purview of openjpa-kernel. But the benefit of directly mentioning the causes of the problem outweigh the coupling to the underlying configuration mechanisms, at least until we decide to move the error message generation to spec-dependent subtypes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@499317 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 08:55:26 +00:00
Marc Prud'hommeaux d1d0ef0260 When performing a bulk update in-memory, also support Literal and Constant parameters, since they might be used in their JDBC implementation when the original query was executed against the database.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@499196 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 00:39:18 +00:00
Pinaki Poddar 4a0ea7646b TCP RemoteCommitProviders deserializes by input streams that are smart in resolving classes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@499179 13f79535-47bb-0310-9956-ffa450edef68
2007-01-23 23:06:29 +00:00
A. Abram White 81c9a795ca Use additional contextual classloaders when deserializing lob data.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@499137 13f79535-47bb-0310-9956-ffa450edef68
2007-01-23 21:10:21 +00:00
Srinivasa Segu 5dddb15cb3 Fixed register/removeListener methods to not re-add once initialized.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@498865 13f79535-47bb-0310-9956-ffa450edef68
2007-01-23 00:15:15 +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
A. Abram White d88af9faaf Fix bug in serialization of table element in JPA XML metadata.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@497929 13f79535-47bb-0310-9956-ffa450edef68
2007-01-19 19:59:37 +00:00
A. Abram White fd0e25dae6 Expand Column.isCompatible method parameters to also take type name and
decimal digits so that DynamicSchemaFactory can set this information when
building up its internal schema representation.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@497866 13f79535-47bb-0310-9956-ffa450edef68
2007-01-19 16:33:08 +00:00
Marc Prud'hommeaux 6b78680b27 Fixed bug where mod operator wouldn't get inserted (for databases that support the % mod operator).
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@497715 13f79535-47bb-0310-9956-ffa450edef68
2007-01-19 06:32:42 +00:00
Marc Prud'hommeaux b37a0f0ecf Fixed incorrect quoting of parameters in trim functions.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@497701 13f79535-47bb-0310-9956-ffa450edef68
2007-01-19 04:21:13 +00:00
Marc Prud'hommeaux 7f2613e394 Work around Oracle's inability to call PreparedStatement.setNull(index, Types.OTHER). We will instead used PreparedStatement.setNull(index, Types.NULL).
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@497683 13f79535-47bb-0310-9956-ffa450edef68
2007-01-19 02:09:53 +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
A. Abram White e2665ce5dd Use the current thread's classloader in addition to the configuration class'
loader when loading globals.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@497634 13f79535-47bb-0310-9956-ffa450edef68
2007-01-18 23:21:41 +00:00
Patrick Linskey a40baca273 reformatted ugly code
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@497614 13f79535-47bb-0310-9956-ffa450edef68
2007-01-18 22:52:32 +00:00
David J. Wisneski 396efa6ae6 Support native queries making stored procedure calls, or insert, update, delete.
For native queries returning ResultSet should use getResultList or getSingleResult interfaces on Query.
For native queries performing updates without returning any results use executeUpdate interface on Query.

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@497605 13f79535-47bb-0310-9956-ffa450edef68
2007-01-18 22:21:08 +00:00
Patrick Linskey 4f0c54211d test case for OPENJPA-102 and OPENJPA-104
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@497547 13f79535-47bb-0310-9956-ffa450edef68
2007-01-18 19:26:39 +00:00
Marc Prud'hommeaux fa5eb3a7af Changed SQL generated by JPQL query "null <> null" from "NULL IS NOT NULL" to "1 <> 1", since some databases (e.g., DB2) dislike "NULL IS NOT NULL", but everyone is OK with "1 <> 1".
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@497279 13f79535-47bb-0310-9956-ffa450edef68
2007-01-18 01:30:45 +00:00
Marc Prud'hommeaux f0be9e1af1 Changed SQL generated by JPQL query "null = null" from "NULL IS NULL" to "1 = 1", since some databases (e.g., DB2) dislike "NULL IS NULL", but everyone is OK with "1 = 1".
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@497276 13f79535-47bb-0310-9956-ffa450edef68
2007-01-18 01:26:57 +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
Marc Prud'hommeaux ef67680a55 Fixed concatinate function to cast both sides as a VARCHAR, since DB2 and Derby disallow parameters on both sides of the function.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@497190 13f79535-47bb-0310-9956-ffa450edef68
2007-01-17 21:48:27 +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 d58ba3b25b removed unneeded field
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@496922 13f79535-47bb-0310-9956-ffa450edef68
2007-01-17 03:28:57 +00:00
Patrick Linskey 3edddc6125 improved trace messages
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@496914 13f79535-47bb-0310-9956-ffa450edef68
2007-01-17 02:00:56 +00:00
Patrick Linskey 97b23ebb90 Resolve jar scanning issue by avoiding certain probably-buggy ZipInputStream methods
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@496912 13f79535-47bb-0310-9956-ffa450edef68
2007-01-17 01:57:07 +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
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