Commit Graph

495 Commits

Author SHA1 Message Date
A. Abram White 600d949140 Copy all calendar parameters that go towards equals() comparisons.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@485809 13f79535-47bb-0310-9956-ffa450edef68
2006-12-11 18:54:00 +00:00
A. Abram White 9dcdd3a35d Improved error message.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@485804 13f79535-47bb-0310-9956-ffa450edef68
2006-12-11 18:41:30 +00:00
A. Abram White d85fbdee04 Fix calendar proxy bug.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@484900 13f79535-47bb-0310-9956-ffa450edef68
2006-12-09 03:08:52 +00:00
A. Abram White 7b91f91273 Bytecode proxy fixes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@484868 13f79535-47bb-0310-9956-ffa450edef68
2006-12-09 00:54:39 +00:00
A. Abram White db174a9512 Better error message when attempting to proxy final class.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@484815 13f79535-47bb-0310-9956-ffa450edef68
2006-12-08 21:54:27 +00:00
A. Abram White 770abf1aa8 Don't proxy final classes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@484812 13f79535-47bb-0310-9956-ffa450edef68
2006-12-08 21:52:41 +00:00
A. Abram White d44b353278 Document capabilities of new proxy manager.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@484738 13f79535-47bb-0310-9956-ffa450edef68
2006-12-08 20:20:22 +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
Pinaki Poddar db25f08565 Terminate loop when connection attempt succeeds.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@483176 13f79535-47bb-0310-9956-ffa450edef68
2006-12-06 19:02:19 +00:00
Pinaki Poddar 4a03860c2f Not using the cached version of zip file.
For deploy-undeploy-redeply, the iterator was holding stale reference
to the cached zip content. The 'close' flag is no more required,
the zip file is closed as dictated by the user of the iterator.
  


git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@482831 13f79535-47bb-0310-9956-ffa450edef68
2006-12-05 23:57:57 +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 d5fb9486ba Add backward compat property doc.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@482747 13f79535-47bb-0310-9956-ffa450edef68
2006-12-05 19:29:37 +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
Craig Russell a836ea3f34 Added property svn:eol-style=native
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@482329 13f79535-47bb-0310-9956-ffa450edef68
2006-12-04 20:02:09 +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
Marc Prud'hommeaux eb9a626945 Fixed bug where we weren't copying the nanoseconds when the Timestamp is cloned.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@482308 13f79535-47bb-0310-9956-ffa450edef68
2006-12-04 19:32:54 +00:00
Kevin W. Sutter dbcdfb9ff9 Include the original exception that caused the ClassFormatError to be thrown.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@482191 13f79535-47bb-0310-9956-ffa450edef68
2006-12-04 14:43:30 +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
Marc Prud'hommeaux ca45e3292a Changed syncWithManagedTransaction to return true if a transaction is already active (rather than throwing an exception), since section 5.9.2 of the JPA spec suggests that it should be legal to invoke EntityManager.joinTransaction() multiple times.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@480301 13f79535-47bb-0310-9956-ffa450edef68
2006-11-29 00:28:04 +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 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
Patrick Linskey 07dadf5564 removed duplicate info; added category data
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@477948 13f79535-47bb-0310-9956-ffa450edef68
2006-11-21 22:53:42 +00:00
Marc Prud'hommeaux 25b0d9628e Added mention of where orm-xsd.rsrc and persistence-xsd.rsrc came from.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@477468 13f79535-47bb-0310-9956-ffa450edef68
2006-11-21 01:58:32 +00:00
Marc Prud'hommeaux 99bd6a7b54 Added DISCLAIMER.txt to the built jar files along with NOTICE.txt and LICENSE.txt.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@477458 13f79535-47bb-0310-9956-ffa450edef68
2006-11-21 01:29:57 +00:00
Marc Prud'hommeaux 11de85694c Added mention that the orm-xsd.rsrc and persistence-xsd.rsrc files are released under the CDDL.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@477457 13f79535-47bb-0310-9956-ffa450edef68
2006-11-21 01:27:18 +00:00
Marc Prud'hommeaux b9570f6dd5 Removed Apache license header, which appears to have been accidentally added. The file is actually released under Sun's CDDL.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@477455 13f79535-47bb-0310-9956-ffa450edef68
2006-11-21 01:25:19 +00:00
Marc Prud'hommeaux 15cb2cdf7c Added back the ability to call getPackageName() on the Message object.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@477446 13f79535-47bb-0310-9956-ffa450edef68
2006-11-21 00:42:53 +00:00
Marc Prud'hommeaux 66f6d907d5 Removed dependency on Class.getPackage() for finding localizer.properties files, since that method can sometimes return null.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@477436 13f79535-47bb-0310-9956-ffa450edef68
2006-11-21 00:29:53 +00:00
Patrick Linskey 3fdf607c58 removed external dependency so that OpenJPAVersion can be run with just the openjpa jar in the classpath
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@477414 13f79535-47bb-0310-9956-ffa450edef68
2006-11-20 23:54:16 +00:00
Patrick Linskey 32ced33fd5 removed debugging code
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@477270 13f79535-47bb-0310-9956-ffa450edef68
2006-11-20 17:46:46 +00:00
Patrick Linskey ab148526d3 added docs for openjpa.Id property
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@476453 13f79535-47bb-0310-9956-ffa450edef68
2006-11-18 05:59:20 +00:00
Marc Prud'hommeaux dd5c64694d Null check.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@476305 13f79535-47bb-0310-9956-ffa450edef68
2006-11-17 20:34:28 +00:00
Marc Prud'hommeaux 70f3162159 Added licenses for included binaries that aren't also released under the ASF (serp-1.11.0.jar and persistence-api-1.0.jar).
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475997 13f79535-47bb-0310-9956-ffa450edef68
2006-11-17 00:23:25 +00:00
Marc Prud'hommeaux 82c4e26932 Made the source assembly unpack into a different folder than the binary assembly (for example, the binary assembly might unpack to "openjpa-project-0.9.7-incubating-SNAPSHOT", and the source assembly will unpack to "openjpa-project-0.9.7-incubating-SNAPSHOT-source").
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475995 13f79535-47bb-0310-9956-ffa450edef68
2006-11-17 00:13:19 +00:00
Marc Prud'hommeaux fff0cd889a Specify that LCIENSE.txt and NOTICE.txt files should be included in the META-INF/ sub-directory of all generated jar files.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475976 13f79535-47bb-0310-9956-ffa450edef68
2006-11-16 23:25:30 +00:00
Marc Prud'hommeaux f6067b25fb Specify that LICENSE.txt and NOTICE.txt be included in the top-level or the source distribution (although it is additionally contained in the openjpa-project/ directory).
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475968 13f79535-47bb-0310-9956-ffa450edef68
2006-11-16 23:05:05 +00:00
Marc Prud'hommeaux 9a7139c9a0 Added license headers
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475967 13f79535-47bb-0310-9956-ffa450edef68
2006-11-16 23:04:20 +00:00
Patrick Linskey 54d9735689 improved error messages; made NonPersistentMetaData serializable
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475891 13f79535-47bb-0310-9956-ffa450edef68
2006-11-16 19:33:06 +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 cf517aa224 Fixed duplicate named query in sample.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475499 13f79535-47bb-0310-9956-ffa450edef68
2006-11-15 23:44:55 +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 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 330654d226 use Configuration.getId() as the default diagnostic context, if no diagnostic context is specified in the log configuration property.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475094 13f79535-47bb-0310-9956-ffa450edef68
2006-11-15 01:28:38 +00:00
Patrick Linskey 72741efc85 moved metadata properties about openjpa.Id property
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475093 13f79535-47bb-0310-9956-ffa450edef68
2006-11-15 01:27:51 +00:00
Patrick Linskey a5f3ae42bf realized immediately after committing that the id belongs at the generic Configuration level, not at the OpenJPAConfiguration level.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475087 13f79535-47bb-0310-9956-ffa450edef68
2006-11-15 00:45:09 +00:00
Patrick Linskey bda2015398 added openjpa.Id property, and put logic in PersistenceUnitInfoImpl to set the openjpa.Id property to the persistence unit name if no openjpa.Id property is discovered.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@475084 13f79535-47bb-0310-9956-ffa450edef68
2006-11-15 00:30:24 +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
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 54cb8933e3 moving to JDK1.4 LinkedHashMap instead of LinkedMap where possible.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@474974 13f79535-47bb-0310-9956-ffa450edef68
2006-11-14 20:57:02 +00:00