Commit Graph

546 Commits

Author SHA1 Message Date
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
Kevin W. Sutter aeafc39d3d Simple test for OPENJPA-116. Just modified the simple TestPersistence testcase with a new variation for testing the exception on getDelegate() when the EM is closed.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@501955 13f79535-47bb-0310-9956-ffa450edef68
2007-01-31 19:27:11 +00:00
Marc Prud'hommeaux 67a73ee0ea Changed docbook build mechanism to no longer manually download the docbook files from sourgeforge.net, and instead have the docbook files be a maven dependency, and access the dependency directly. This is mainly because they removed the old file from http://docbook.sourceforge.net/release/xsl that we were relying on, but has the side-benefit of removing one network-sensitive component from the release build probless. Unfortunately, this also means that we need to downgrade from version 1.69.1 to 1.67.2 of the docbook stylesheets (since the Maven repository doesn't yet have the newer versions), but that doesn't appear to have any visible effects.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@501704 13f79535-47bb-0310-9956-ffa450edef68
2007-01-31 03:08:42 +00:00
Marc Prud'hommeaux 4cb55c6210 Use "settings.localRepository" instead if "{user.home}/.m2" to handle non-standard repository locations.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@501700 13f79535-47bb-0310-9956-ffa450edef68
2007-01-31 03:00:20 +00:00
Marc Prud'hommeaux 593977b05a Un-did last change, since maven.home doesn't actually work.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@501696 13f79535-47bb-0310-9956-ffa450edef68
2007-01-31 02:47:00 +00:00
Marc Prud'hommeaux 6a68820560 Changed references to '{user.home}/.m2' to be '{maven.home}', in case people have a non-standard repository location.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@501695 13f79535-47bb-0310-9956-ffa450edef68
2007-01-31 02:40:56 +00:00
Patrick Linskey a85d58d56a OPENJPA-21: added java.sql.Time to docs
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@501693 13f79535-47bb-0310-9956-ffa450edef68
2007-01-31 02:19:48 +00:00
Marc Prud'hommeaux f7b7f37f73 Added mention of needing to use schemaCase=preserve when using a case-sensitive instance of SQL Server.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@501595 13f79535-47bb-0310-9956-ffa450edef68
2007-01-30 21:58:12 +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 e4bf0444a4 Added openjpa-integration/tck/pom.xml which can be used to run the JPA TCK (provided it exist locally) against the OpenJPA build.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@501356 13f79535-47bb-0310-9956-ffa450edef68
2007-01-30 09:37: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
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