Kevin W. Sutter
7ea424bf0b
OPENJPA-139. Need to include JavaTypes.CALENDAR in the switch statement when attempting to attach a field of type CALENDAR.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@505099 13f79535-47bb-0310-9956-ffa450edef68
2007-02-09 00:34:44 +00:00
A. Abram White
0a072b8a50
Fix possible NPE introduced in recent changes to MethodLifecycleCallbacks.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@505052 13f79535-47bb-0310-9956-ffa450edef68
2007-02-08 22:12:06 +00:00
A. Abram White
a2be03e9cb
Add a DiscriminatorStrategy.hasClassConditions() method rather than having the
...
DiscriminatorStrategy.getClassConditions() method return null for no conditions
so that we can detect whether the joins to the base class owning the
discriminator are necessary before making them. Otherwise, we run the risk of
creating table aliases for base class tables without joining them, which can
result in bad SQL.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@505017 13f79535-47bb-0310-9956-ffa450edef68
2007-02-08 19:36:33 +00:00
Kevin W. Sutter
859da3f913
OPENJPA-133. Change the processing of the getMethod() method to properly recognize non-public callback methods, along with validating the parameter types.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@504970 13f79535-47bb-0310-9956-ffa450edef68
2007-02-08 17:21:19 +00:00
Patrick Linskey
485cfd37ca
test cases for agreed-upon callback behavior
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@504411 13f79535-47bb-0310-9956-ffa450edef68
2007-02-07 02:01:54 +00:00
Pinaki Poddar
c13e2baab7
Dynamic implementation class of a subInterface is loaded with the classloader of the dynamic implementaion of the superInterface.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@504216 13f79535-47bb-0310-9956-ffa450edef68
2007-02-06 17:46:33 +00:00
Kevin W. Sutter
326df83bb2
Use single line commenting style (//) instead of the block commenting style (/*..*/).
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@503757 13f79535-47bb-0310-9956-ffa450edef68
2007-02-05 16:18:23 +00:00
A. Abram White
8d288589c2
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@503744 13f79535-47bb-0310-9956-ffa450edef68
2007-02-05 16:01:09 +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
Marc Prud'hommeaux
9b78cd5441
Changed openjpac task to be called "enhance" instead..
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502699 13f79535-47bb-0310-9956-ffa450edef68
2007-02-02 19:39:14 +00:00
Patrick Linskey
84763ce94e
OPENJPA-37: changed kodoc to openjpac
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502394 13f79535-47bb-0310-9956-ffa450edef68
2007-02-01 23:04:22 +00:00
Kevin W. Sutter
3c58b8840c
Changes for OPENJPA-115. Removed the explicit lock/unlock invocations when obtaining an EM (broker). Changed
...
_brokers to use ConcurrentReferenceHashSet (with weak references). And, due to the weak references (probable
cause), I had to check for nulls when iterating through the _brokers during the close processing.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502392 13f79535-47bb-0310-9956-ffa450edef68
2007-02-01 22:53:20 +00:00
Patrick Linskey
0b60936d33
OPENJPA-37
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502374 13f79535-47bb-0310-9956-ffa450edef68
2007-02-01 22:03:31 +00:00
A. Abram White
2e0c5d576c
Avoid NPE.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502369 13f79535-47bb-0310-9956-ffa450edef68
2007-02-01 21:58:20 +00:00
Craig Russell
a5dcfc91fa
OPENJPA-122 Removed unnecessary import
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502352 13f79535-47bb-0310-9956-ffa450edef68
2007-02-01 20:49:11 +00:00
Craig Russell
cde63a4306
OPENJPA-122 Added test for throwing IllegalStateException after EntityManager.close
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502341 13f79535-47bb-0310-9956-ffa450edef68
2007-02-01 20:05:16 +00:00
Pinaki Poddar
a11158d51a
Classloader used to generate dynamic implementaion of managed interface uses interfaces' classloader as parent
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502326 13f79535-47bb-0310-9956-ffa450edef68
2007-02-01 19:36:21 +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
A. Abram White
11e3835d5f
Clear bytecode Project of ProxyManagerImpl to save memory.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@502277 13f79535-47bb-0310-9956-ffa450edef68
2007-02-01 16:40:26 +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
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