persistence@glassfish.java.net

entity-persistence update

From: Tom Ware <tom.ware_at_oracle.com>
Date: Fri, 17 Mar 2006 18:35:54 -0500

Issue number: entity-persistence update
Obtained from: TopLink
Submitted by: Tom Ware
Reviewed by: TopLink Team

- fix CTS ee.cm.test6
- Fixes the multiple parsing of the META-INF/orm.xml file which fixes
the CTS callback tests.
- UnitOfWorkImpl.synchronizeAndResume method now ends with:
"this.isSynchronized = false;". This expected to make some ee tests to
pass.
- Resolved an issue with the incomplete mappings tests (non-owning
tests). Also did some minor code cleanup in EntityMappingsXMLProcessor -
removed commented out code, and changed any for loops containing
object.getLength() such that the length is only retrieved once.
- added object level distinct support to queries GF issue 395
- Quick fix to the xml processor to maintain the order the default
listeners are specified in xml. Fix is for CTS testing.
- Throw EntityExistsException at correct time
- Support for partial relationship mapping definition in XML: here the
the non-owning side of a relationship mapping is defined in XML, and the
owning side is defined in annotations.
- Support for defaulting a single primary key during XML processing
(when no <id> exists), then updating all references during annotation
processing.
- Removed the unused XMLWriter, as well as the associated JUnit test.
Also moved orm_1_0.xsd and persistence_1_0.xsd up one level from "/xsd"
- hence, will be added to essentials.jar at the root. Updated the static
path values used by the XML processors.

Tested with full glassfish build, QuickLook, entity-persistence-tests
and Oracle-internal tests