Commit Graph

186 Commits

Author SHA1 Message Date
Marc Prud'hommeaux 3599a48964 Moving version to 1.0.0-SNAPSHOT as a result of mailing list vote
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@541929 13f79535-47bb-0310-9956-ffa450edef68
2007-05-26 19:18:37 +00:00
Marc Prud'hommeaux 0e19b714ac Changed version from 0.9.8-incubating-SNAPSHOT to 0.9.8-SNAPSHOT to reflect move from incubation to TLP
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@540829 13f79535-47bb-0310-9956-ffa450edef68
2007-05-23 03:36:05 +00:00
Marc Prud'hommeaux f98ecf4d22 OPENJPA-235 Reverted patch since it was causing TCK failur
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@539630 13f79535-47bb-0310-9956-ffa450edef68
2007-05-18 23:31:55 +00:00
David J. Wisneski 9eaec94118 OpenJPA 168 testcase
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@537213 13f79535-47bb-0310-9956-ffa450edef68
2007-05-11 15:44:13 +00:00
Michael Dick 59bd5b0d3f OPENJPA-51 removing testcases
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@536706 13f79535-47bb-0310-9956-ffa450edef68
2007-05-09 23:05:16 +00:00
Marc Prud'hommeaux a92785fea6 OPENJPA-194 Changed openjpa-all-VERSION.jar to be just openjpa-VERSION.jar, and changes openjpa-project-VERSION.zip to be apache-openjpa-VERSION.zip
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@536693 13f79535-47bb-0310-9956-ffa450edef68
2007-05-09 22:23:54 +00:00
Patrick Linskey 80671afcbf OPENJPA-235. Reformatted code to meet OpenJPA conventions; widened some type arguments that seemed unnecessarily narrow.
This passes all the OpenJPA tests in my environment, and the logic seems sound. I think that we could adjust the algorithm to require less collection copying, but I don't think that we should hold up the commit for that type of optimization.

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@535379 13f79535-47bb-0310-9956-ffa450edef68
2007-05-04 20:58:49 +00:00
Patrick Linskey 2f07532f22 added clarifying comment to persistence.xml
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@535359 13f79535-47bb-0310-9956-ffa450edef68
2007-05-04 19:22:50 +00:00
David J. Wisneski d7d400b818 fix build break, class list is removed.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@535041 13f79535-47bb-0310-9956-ffa450edef68
2007-05-04 00:39:55 +00:00
David J. Wisneski bcc3b67223 add query test for OPENJPA-51, queries with subselects with correlated/non-correlated aliases
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@535003 13f79535-47bb-0310-9956-ffa450edef68
2007-05-03 22:49:49 +00:00
Patrick Linskey 43c931014a OPENJPA-226
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@533218 13f79535-47bb-0310-9956-ffa450edef68
2007-04-27 20:46:03 +00:00
Patrick Linskey a99763cf63 Updated recently-added files to meet Apache's latest header syntax.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@532833 13f79535-47bb-0310-9956-ffa450edef68
2007-04-26 18:28:18 +00:00
Patrick Linskey 7d7e303f84 OPENJPA-229. Not sure how these didn't get committed in the first commit.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@532808 13f79535-47bb-0310-9956-ffa450edef68
2007-04-26 17:24:40 +00:00
Patrick Linskey b2beaec634 OPENJPA-229
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@532805 13f79535-47bb-0310-9956-ffa450edef68
2007-04-26 17:17:10 +00:00
David J. Wisneski 129360ace9 OPENJPA-222 clean up
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@530860 13f79535-47bb-0310-9956-ffa450edef68
2007-04-20 17:24:32 +00:00
David J. Wisneski 0bc9685aa7 OPENJPA 222 fix for test case
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@530574 13f79535-47bb-0310-9956-ffa450edef68
2007-04-19 22:21:36 +00:00
David J. Wisneski c816683d08 OPENJPA 222 fix for the testcases for DB2
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@530563 13f79535-47bb-0310-9956-ffa450edef68
2007-04-19 21:58:46 +00:00
David J. Wisneski 0f66458d4c OPENJPA-222 testcases for DB2
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@530554 13f79535-47bb-0310-9956-ffa450edef68
2007-04-19 21:33:23 +00:00
Michael Dick b0ba394a57 adding license
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@529597 13f79535-47bb-0310-9956-ffa450edef68
2007-04-17 13:38:34 +00:00
Michael Dick 09dad99722 moving derby.log file to target directory
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@529415 13f79535-47bb-0310-9956-ffa450edef68
2007-04-16 21:55:03 +00:00
Marc Prud'hommeaux 640cddad04 Updated license headers to be in accordance with http://www.apache.org/legal/src-headers.html
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@528881 13f79535-47bb-0310-9956-ffa450edef68
2007-04-14 21:50:17 +00:00
Michael Dick 4ea1c3f738 adding license to java files
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@527728 13f79535-47bb-0310-9956-ffa450edef68
2007-04-11 23:52:54 +00:00
A. Abram White 3885031a89 OPENJPA-214 : Support float and double fields as single-field identity primary
keys.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@527648 13f79535-47bb-0310-9956-ffa450edef68
2007-04-11 20:25:11 +00:00
A. Abram White b4a3a77840 OPENJPA-134 : When we're performing eager fetches and we can detect that we're
already fetching the owning side of a bidi relation, cut off eager selecting 
and loading when we come across the back-ptr to the owner again.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@527565 13f79535-47bb-0310-9956-ffa450edef68
2007-04-11 16:21:13 +00:00
Michael Dick 7fd119e840 updating trunk version
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@526476 13f79535-47bb-0310-9956-ffa450edef68
2007-04-07 19:54:18 +00:00
Patrick Linskey 840644fcc5 OPENJPA-182. Changed JDBCFetchPlan.setIsolation() to use enums; added logic to handle enum hints to QueryImpl; moved from IllegalArgumentException to InvalidArgumentException to unify exception processing for both queries and find calls.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@526316 13f79535-47bb-0310-9956-ffa450edef68
2007-04-06 23:22:06 +00:00
Patrick Linskey bd93bfa284 OPENJPA-182. forUpdateClause is now used even if forUpdate is false, to allow for read-only optimizations. Changed JDBCFetchPlan.setIsolationLevel and JDBCFetchConfiguration.setIsolationLevel to just JDBCFetchXXX.setIsolation.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@526266 13f79535-47bb-0310-9956-ffa450edef68
2007-04-06 19:50:53 +00:00
A. Abram White 60a1e54f07 OPENJPA-202 : Don't detach LRS fields.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@526253 13f79535-47bb-0310-9956-ffa450edef68
2007-04-06 19:17:44 +00:00
Patrick Linskey 57442b7059 HSQL doesn't support locking; short-circuiting tests that require pessimistic locking
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@526005 13f79535-47bb-0310-9956-ffa450edef68
2007-04-05 23:57:44 +00:00
Patrick Linskey 814637ca6c OPENJPA-182. Moved to API-based model. Query.setHint() can still be used via the query hint => fetch plan binding.
Removed the logic to override the forUpdate value, since the calling code already incorporates fetch configuration data into its decision about how to invoke toSelect(). Added a test case to assert this behavior.

Also cleaned up some minor whitespace issues, and reduced code duplication by moving a couple of concepts up into DBDictionary. Removed some seemingly-unnecessary overrides from H2Dictionary.

Added a test case for isolation level configuration. For non-DB2 dictionaries, it asserts that an exception is thrown during execution. Someone with DB2 knowledge / access should fill in the test case for the DB2 cases. As we add support for per-query isolation level configuration for other databases, we should change this test case.

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@525997 13f79535-47bb-0310-9956-ffa450edef68
2007-04-05 22:55:52 +00:00
A. Abram White 80f7795fef Cleanup bugfix relating to use of a default schema declared in orm.xml:
- Removed prepending of schema name in PersistenceMappingDefaults.getTableName
  methods as unnecessary.
- Moved storage of default schema name to ClassMappingInfo as that's the only
  place we use it for now.
- Moved setting of default schema name into the more efficient endClassMapping
  method of XMLPersistenceMappingParser.
- Fixed MappingInfo.createTable logic to pass the full table name to 
  SchemaGroup.findTable.  This is important b/c the DynamicSchemaGroup (used
  during the mappingtool's buildSchema action, the default for JPA) dynamically
  adds the table to itself during the findTable operation.  Without the full
  table name it would always add the table to the default schema.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@525606 13f79535-47bb-0310-9956-ffa450edef68
2007-04-04 21:13:19 +00:00
Patrick Linskey 9c25f9bdf5 Minor formatting changes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@525213 13f79535-47bb-0310-9956-ffa450edef68
2007-04-03 17:20:01 +00:00
Michael Dick f023f58562 OpenJPA-179 store defaultSchemaName in ClassMapping
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@525006 13f79535-47bb-0310-9956-ffa450edef68
2007-04-03 02:48:10 +00:00
Michael Dick 57f9f3af1d OpenJPA-185 allow optional to be overriden by xml descriptor.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@524921 13f79535-47bb-0310-9956-ffa450edef68
2007-04-02 21:14:48 +00:00
A. Abram White 8167400e51 Bring some consistency to test case structure. Now all persistent test cases
extend SingleEMFTestCase or SingleEMTestCase as appropriate.  These base test
cases contain utilties for initializing the EMF on setup and deleting any
inserted database records and closing the EMF on teardown.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@524228 13f79535-47bb-0310-9956-ffa450edef68
2007-03-30 18:45:15 +00:00
A. Abram White f7aef45814 OPENJPA-181 : Fix class cast exception by passing along the StoreQuery context
whenever we pass around an Executor, so that the StoreQuery and Executor are
always matched.



git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@523046 13f79535-47bb-0310-9956-ffa450edef68
2007-03-27 19:24:54 +00:00
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
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
Kevin W. Sutter e6647fcc34 Testcase for a problem similar to the one described in OPENJPA-13.
Revision 453016 resolved both of these problems.  We can use this
testcase for regression purposes.

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@465623 13f79535-47bb-0310-9956-ffa450edef68
2006-10-19 13:38:57 +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