Marc Prud'hommeaux
53f19cbb4f
removed the propertyaccess tests since they were failing (due, I believe, to a Derby bug) for some people
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@512159 13f79535-47bb-0310-9956-ffa450edef68
2007-02-27 06:59:42 +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
A. Abram White
372b83736d
OPENJPA-150 : Re-use parseColumns method when parsing AttributeOverride columns
...
so that we get secondary table information.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@509674 13f79535-47bb-0310-9956-ffa450edef68
2007-02-20 17:37:18 +00:00
Marc Prud'hommeaux
db07362e27
Made entity classes non-final to conform to spec requirements.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@506342 13f79535-47bb-0310-9956-ffa450edef68
2007-02-12 07:12:06 +00:00
Marc Prud'hommeaux
7d0839f9ff
Added extra debugging logic to make sure the default company model deserailizes from the companies.xml file.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@505825 13f79535-47bb-0310-9956-ffa450edef68
2007-02-11 02:35:33 +00:00
Marc Prud'hommeaux
ecf428bd69
Upgrade Derby dependency from 10.2.1.6 to 10.2.2.0
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@505565 13f79535-47bb-0310-9956-ffa450edef68
2007-02-09 23:52:57 +00:00
Marc Prud'hommeaux
d36faee0ab
Fixed incorrect directory location for company model
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@505515 13f79535-47bb-0310-9956-ffa450edef68
2007-02-09 21:50:41 +00:00
Marc Prud'hommeaux
3bacfce53c
Added resource necessary for loading company model tests
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@505188 13f79535-47bb-0310-9956-ffa450edef68
2007-02-09 05:37:11 +00:00
Marc Prud'hommeaux
02f2cedb73
Added multiple different implementations of the same data model for flexibility testing; added a helper test case from which other tests can be extended to easily perform persistence operations
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@505160 13f79535-47bb-0310-9956-ffa450edef68
2007-02-09 03:49:22 +00:00
Marc Prud'hommeaux
a384218429
Changed assertion to check for javax.persistence.PersistenceException rather than org.apache.openjpa.persistence.PersistenceException, since the API may wrap the PersistenceException.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@505159 13f79535-47bb-0310-9956-ffa450edef68
2007-02-09 03:45:17 +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
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
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
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
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
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
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
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
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
A. Abram White
663fbe62e3
Force a version check when merging an unchanged detached entity to ensure that
...
we don't blindly use stale state.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@492790 13f79535-47bb-0310-9956-ffa450edef68
2007-01-04 22:44:19 +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
04e07ebd0b
adding forgotten new file for previous commit
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@492027 13f79535-47bb-0310-9956-ffa450edef68
2007-01-03 02:50:44 +00:00
A. Abram White
ee33aa7af3
Default name fix.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@482775 13f79535-47bb-0310-9956-ffa450edef68
2006-12-05 20:49:11 +00:00
A. Abram White
87dc2aad7c
Correct bug in our default for the name of an inverse join column within a
...
join table. Added configurable property for users to retain the old defaulting
for compatibility if desired.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@482737 13f79535-47bb-0310-9956-ffa450edef68
2006-12-05 18:54:46 +00:00
Patrick Linskey
16f78782dd
fixed bug that caused cached JPQL queries to not properly cache the candidate class.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@479942 13f79535-47bb-0310-9956-ffa450edef68
2006-11-28 08:27:14 +00:00
Patrick Linskey
b653ae9976
removed unneeded import
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475890 13f79535-47bb-0310-9956-ffa450edef68
2006-11-16 19:31:27 +00:00
Marc Prud'hommeaux
08a615efad
Added 'relations' example to demonstrate defining and querying relations in JPA; also upgraded the version of Derby included in the release for example usage to be 10.2.1.6 in order to keep up
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475498 13f79535-47bb-0310-9956-ffa450edef68
2006-11-15 23:41:37 +00:00
A. Abram White
db2128fe02
Use mapping XML serializer.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475026 13f79535-47bb-0310-9956-ffa450edef68
2006-11-14 22:35:32 +00:00
Patrick Linskey
3e5f4357f1
removed some unused imports
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@474971 13f79535-47bb-0310-9956-ffa450edef68
2006-11-14 20:45:01 +00:00
Patrick Linskey
a3749e810b
moved to commons-collections 3.2 to avoid serialization bug that was resolved in 2005 (3.1 dates to 2004).
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@474970 13f79535-47bb-0310-9956-ffa450edef68
2006-11-14 20:44:02 +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
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
b40ba51347
Simple test case for abstract schema name queries.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@472355 13f79535-47bb-0310-9956-ffa450edef68
2006-11-08 00:50:15 +00:00
Kevin W. Sutter
71ed42e8c5
Forgot to include the ManyOneEntitySub.class in the MetaDataFactory... Query tests now work again.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@472347 13f79535-47bb-0310-9956-ffa450edef68
2006-11-08 00:17:33 +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
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
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
caa1ea4543
made in-mem match queries fail faster; added another test case for new DataCacheStoreManager work
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@469429 13f79535-47bb-0310-9956-ffa450edef68
2006-10-31 09:43:43 +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
Patrick Linskey
0a96982e61
Fixed OPENJPA-70. Data caching + external modifications could result in stale data getting stuck in cache.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@469313 13f79535-47bb-0310-9956-ffa450edef68
2006-10-30 23:23:11 +00:00
Kevin W. Sutter
ca7a599c96
Modified TestGenerationType testcase to check whether the current
...
DBDictionary supports AutoAssign(ment) of column values.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@465733 13f79535-47bb-0310-9956-ffa450edef68
2006-10-19 19:07:02 +00:00