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
Marc Prud'hommeaux
ef56f8281b
Updated to version 0.9.7-incubating-SNAPSHOT
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@473962 13f79535-47bb-0310-9956-ffa450edef68
2006-11-12 12:59:24 +00:00
Marc Prud'hommeaux
ead07f40c0
Rolled back to 0.9.6-incubating to re-run the release process; fixed licenses in NOTICE.txt; added license headers to files where they were missing; removed sun.misc.Perf class, since we are no longer supporting JDK 1.3 (and it is only unavailable in 1.3 and lower)
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@473939 13f79535-47bb-0310-9956-ffa450edef68
2006-11-12 11:44:59 +00:00
Patrick Linskey
de3f43a5cd
moved to JDK1.4
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@473448 13f79535-47bb-0310-9956-ffa450edef68
2006-11-10 19:44:47 +00:00
A. Abram White
fb770599b0
Fix for deeply nested subqueries, and for the JPQL IN(<subquery>) construct.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@473140 13f79535-47bb-0310-9956-ffa450edef68
2006-11-09 23:55:41 +00:00
Marc Prud'hommeaux
cf56e213a9
Updated to version 0.9.7-incubating-SNAPSHOT
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@472718 13f79535-47bb-0310-9956-ffa450edef68
2006-11-09 00:41:04 +00:00
A. Abram White
8efffbdd4b
Test for the OpenJPAQuery.setSubclasses method.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@472310 13f79535-47bb-0310-9956-ffa450edef68
2006-11-07 22:38:37 +00:00
A. Abram White
3b9fa1f25a
Bugfix for when abstract base class has no discriminator value. Cleanup of
...
query compilation cache additions.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@472275 13f79535-47bb-0310-9956-ffa450edef68
2006-11-07 21:20:57 +00:00
Marc Prud'hommeaux
0e02efdfbf
Updated version to 0.9.6-incubating in hopes of having a release
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@472238 13f79535-47bb-0310-9956-ffa450edef68
2006-11-07 20:34:03 +00:00
A. Abram White
92343313fb
Fix recently-introduced bugs in conversion between JPA facades and underlying
...
components.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@472193 13f79535-47bb-0310-9956-ffa450edef68
2006-11-07 18:37:33 +00:00
Patrick Linskey
9e85e90c1e
correct configuration property name
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@471499 13f79535-47bb-0310-9956-ffa450edef68
2006-11-05 19:25:16 +00:00
A. Abram White
9623c5c6f8
Support many-one and one-one relations as primary key fields.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@471045 13f79535-47bb-0310-9956-ffa450edef68
2006-11-03 23:15:08 +00:00
Patrick Linskey
a493e790b7
Removed some dead code and unused imports.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@469315 13f79535-47bb-0310-9956-ffa450edef68
2006-10-30 23:32:19 +00:00
Kevin W. Sutter
753468d8a1
Resolving OPENJPA-67. The sql statement for selecting the next value in a sequence was not correct in the DB2 Dictionary.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@468440 13f79535-47bb-0310-9956-ffa450edef68
2006-10-27 16:16:59 +00:00
Marc Prud'hommeaux
e2f38567a1
Upgraded to version '0.9.6-incubating-SNAPSHOT'
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@464753 13f79535-47bb-0310-9956-ffa450edef68
2006-10-17 00:05:01 +00:00
Marc Prud'hommeaux
fb00d685bd
Upgraded to version '0.9.5-incubating'
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@464711 13f79535-47bb-0310-9956-ffa450edef68
2006-10-16 23:00:34 +00:00
A. Abram White
907647550c
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@464586 13f79535-47bb-0310-9956-ffa450edef68
2006-10-16 17:52:44 +00:00
A. Abram White
c8b5b2746e
Validate product derivations before caching them so we don't end up with runtime
...
errors when clients use JPA without jdo.jar or JDO without jpa.jar. Give a
more succinct warning when some product derivations are uninstantiable, with
more detailed information available via the ProductDerivations class's main().
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@463829 13f79535-47bb-0310-9956-ffa450edef68
2006-10-13 21:07:17 +00:00
A. Abram White
72594b2ac8
Remove some bad vert inheritance logic.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@462846 13f79535-47bb-0310-9956-ffa450edef68
2006-10-11 16:43:17 +00:00
A. Abram White
6937856e2b
Optimize queries of the form "select e from ... where e.rel.id = :x" to not join
...
across "rel" for std fk->pk joins.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@462646 13f79535-47bb-0310-9956-ffa450edef68
2006-10-11 00:16:53 +00:00
A. Abram White
f27898f280
Take advantage StringUtils where appropriate.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@462617 13f79535-47bb-0310-9956-ffa450edef68
2006-10-10 22:39:15 +00:00
A. Abram White
08d69d15a7
Vertical inheritance with eager fetching fixes.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@462560 13f79535-47bb-0310-9956-ffa450edef68
2006-10-10 20:56:32 +00:00
Marc Prud'hommeaux
0c58bedbb6
Updated version to be openjpa-0.9.5-incubating-SNAPSHOT
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@454516 13f79535-47bb-0310-9956-ffa450edef68
2006-10-09 21:16:48 +00:00
Marc Prud'hommeaux
2fbc438887
Updated to final 0.9.0-incubating release number
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@454452 13f79535-47bb-0310-9956-ffa450edef68
2006-10-09 18:40:10 +00:00
A. Abram White
dcf691a727
Get rid of warning for product derivations that use an unsupported class
...
version. Minor API changes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@454072 13f79535-47bb-0310-9956-ffa450edef68
2006-10-08 04:03:06 +00:00
Patrick Linskey
28910a7374
Changed OpenJPAProductDerivation to have a proper lifecycle callback for BrokerFactoryValue initialization; added supporting infrastructure as needed.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@454064 13f79535-47bb-0310-9956-ffa450edef68
2006-10-08 02:05:49 +00:00
A. Abram White
433475f6ad
Merge fixes from Kodo 4.0 line.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@453796 13f79535-47bb-0310-9956-ffa450edef68
2006-10-06 22:31:28 +00:00
Marc Prud'hommeaux
3ffad89624
Added warning about Oracle's ArrayIndexOutOfBoundsException JDBC driver bug.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@453720 13f79535-47bb-0310-9956-ffa450edef68
2006-10-06 18:10:08 +00:00