A. Abram White
123fce5b60
Tests for java.sql.Date id fields.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@520525 13f79535-47bb-0310-9956-ffa450edef68
2007-03-20 19:08:41 +00:00
A. Abram White
eb27482080
OPENJPA-132 : Fix bugs with using a field of type java.sql.Date/Time/Timestamp
...
as a single-field identity primary key. Replaced "generationtype" test package
with "identity" test package and moved old identity generation tests to new
package, along with new test for java.sql.Date id fields.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@520522 13f79535-47bb-0310-9956-ffa450edef68
2007-03-20 19:00:38 +00:00
A. Abram White
229f24547a
OPENJPA-174 : Remove legacy code throwing an exception when attempting to
...
construct an oid instance for an abstract persistent type. Improve error
message in ApplicationIds when attempting to create a new id instance when the
id class is abstract.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@520117 13f79535-47bb-0310-9956-ffa450edef68
2007-03-19 21:46:45 +00:00
A. Abram White
fabdf10407
Fix recently-introduced bug in handling of arrays in data cache. Add test for
...
a shared id value among sibling classes deriving from the same mapped
superclass.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@518190 13f79535-47bb-0310-9956-ffa450edef68
2007-03-14 15:44:55 +00:00
Patrick Linskey
148519ba2a
Removed unneeded import.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@516751 13f79535-47bb-0310-9956-ffa450edef68
2007-03-10 17:19:31 +00:00
Patrick Linskey
853fb319ba
OPENJPA-35: fixed bulk update / bulk delete logic to properly clear out the data cache as well as the query cache. We could probably change the logic to remove the query cache mutations, since the data cache clear should automatically clear out the query cache as needed. Also changed the test framework a bit to allow for easier test harness creation without using SingleEMTest, which required providing access to the open brokers from AbstractBrokerFactory.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@516750 13f79535-47bb-0310-9956-ffa450edef68
2007-03-10 17:15:49 +00:00
Patrick Linskey
b5bab78e04
OPENJPA-142: read entity names specified in XML. Also added comment clarifying that ClassMetaData.setTypeAlias() is only used at enhance time.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@516682 13f79535-47bb-0310-9956-ffa450edef68
2007-03-10 11:14:44 +00:00
Patrick Linskey
0b90c67a8b
OPENJPA-71: resolved inefficiency with array types and AbstractPCData
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@515987 13f79535-47bb-0310-9956-ffa450edef68
2007-03-08 09:34:52 +00:00
Patrick Linskey
69c34cd385
OPENJPA-46: TRUE and FALSE should be case-insensitive in JPQL
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@515986 13f79535-47bb-0310-9956-ffa450edef68
2007-03-08 09:34:25 +00:00
Patrick Linskey
d2c748d109
OPENJPA-121: Table name defaults to the class name instead of the entity name. The key change is in PersistenceMappingDefaults; other changes include a new test case and removal of spurious @Table annotations from previous workaround.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@515375 13f79535-47bb-0310-9956-ffa450edef68
2007-03-06 23:57:29 +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
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