A. Abram White
9b61ded11b
Simplify breaking up long IN clauses into multiple OR'd IN clauses based on the
...
dictionary's IN clause limit
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@522600 13f79535-47bb-0310-9956-ffa450edef68
2007-03-26 19:17:10 +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
Srinivasa Segu
ae2d8685e1
OPENJPA-175. PagingResultObjectProvider to use FetchBatchSize when set for eager selects. Fix to handle Oracle in-clause limit of 1000
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@521443 13f79535-47bb-0310-9956-ffa450edef68
2007-03-22 20:26:18 +00:00
David J. Wisneski
d35bc8a306
fix for OPENJPA-22
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@516624 13f79535-47bb-0310-9956-ffa450edef68
2007-03-10 00:34:09 +00:00
Patrick Linskey
1af233a0b3
OPENJPA-80: MySQL escape string for string matches queries
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@515043 13f79535-47bb-0310-9956-ffa450edef68
2007-03-06 09:33:06 +00:00
A. Abram White
afce8f543a
OPENJPA-162 : Allow explicit @OrderBy(<primary key field>).
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@514847 13f79535-47bb-0310-9956-ffa450edef68
2007-03-05 20:14:02 +00:00
A. Abram White
4bf637f074
Improve error checks for mapped-by mappings. Mark deleted instances as
...
eligible for state restore on rollback so they don't always clear. Always
cascade attach to embedded instances.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@512350 13f79535-47bb-0310-9956-ffa450edef68
2007-02-27 18:14:45 +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
Srinivasa Segu
2a95f80f44
OPENJPA-151.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@511998 13f79535-47bb-0310-9956-ffa450edef68
2007-02-26 20:46:03 +00:00
David J. Wisneski
7eb91d0ec9
DB2 Optimize for clause enhancement
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@510336 13f79535-47bb-0310-9956-ffa450edef68
2007-02-22 01:03:06 +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
Srinivasa Segu
82a62a6b78
OPENJPA-157. Fix to use the getIndependentTypeMappings to handle the case of field's declared type being abstract/unmapped
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@509885 13f79535-47bb-0310-9956-ffa450edef68
2007-02-21 04:06:45 +00:00
A. Abram White
1b446958f5
OPENJPA-146 : When copying an OID superclass field for re-mapping, revert type
...
to PC. It will re-resolve to OID on its own when the field's metadata is
resolved, and in the meantime it will ensure we use the same path for
metadata resolution as non-copied fields.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@509632 13f79535-47bb-0310-9956-ffa450edef68
2007-02-20 16:33:54 +00:00
Srinivasa Segu
4f102a7c77
Capturing reference to the Column[] at the creation time in the RowImpl instead of the Table, to work with DynamicSchemaFactory where the Table's columns can get modified after the creation of the RowImpl before the flush.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@509473 13f79535-47bb-0310-9956-ffa450edef68
2007-02-20 08:59:10 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Marc Prud'hommeaux
148d8f8df2
Wrap non-Collection arguments in Collections so that the query language can support having both varargs "in" clauses as well as clauses that take a Collection parameter.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@486429 13f79535-47bb-0310-9956-ffa450edef68
2006-12-13 00:26:47 +00:00
A. Abram White
e54b0c1908
Move to dynamically-created bytecode proxies for second class objects, rather
...
than checked-in proxy classes. This allows us to proxy custom collection,
map, and bean types.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@484693 13f79535-47bb-0310-9956-ffa450edef68
2006-12-08 18:32:07 +00:00
Craig Russell
b8710bea03
Added property svn:eol-style=native
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@482327 13f79535-47bb-0310-9956-ffa450edef68
2006-12-04 19:59:52 +00:00
Kevin W. Sutter
970f647622
Resolving JIRA report OPENJPA-63 for better pessimistic lock support for DB2. Instead of the usual "for update" clause, db2 dictionary will now use "with rr use and keep update locks" clause.
...
A couple of additional changes were necessary to properly detect the version of DB2 currently in use.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@482189 13f79535-47bb-0310-9956-ffa450edef68
2006-12-04 14:42:09 +00:00
Patrick Linskey
8015a253b6
fixed typo
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@479940 13f79535-47bb-0310-9956-ffa450edef68
2006-11-28 08:16:34 +00:00
A. Abram White
728413153f
Fix bug in which abstract JPA entities were being mapped to tables when the
...
declared inheritance strategy for the hierarchy was TABLE_PER_CLASS (which
actually means table-per-concrete-class).
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475321 13f79535-47bb-0310-9956-ffa450edef68
2006-11-15 17:43:02 +00:00
Patrick Linskey
3a5185700f
invoke the close() callback at the beginning of ConfigurationImpl.close(); change other ConfigurationImpl subtypes to use preClose() instead of now-final close(); add test case for close callbacks.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475115 13f79535-47bb-0310-9956-ffa450edef68
2006-11-15 04:20:30 +00:00
Patrick Linskey
301580c069
made a number of configuration-related classes serializable to facilitate alternate means of configuration population; moved away from a couple more usages of commons collections LinkedMap; added new lifecycle callback to ProductDerivation interface
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475059 13f79535-47bb-0310-9956-ffa450edef68
2006-11-14 23:42:42 +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