Provides a set of classes to instantiate metadata objects from
an XML file. The XML tags used correspond almost directly to the
classes in the metadata package.
Sample code
Sample code can be found in the junit tests for this
package. There are three sample XML files defining simple object
types and their physical schemas. Note that these three examples
use the same dtd
(test/com/arsdigita/persistence/metadata/xml/metadata.dtd). The
following examples are provided:
- XMLParserTest: Defines the
acs_object
and
party object types.
- XMLOrderTest: Defines an Orders object type composed of
1 or more line items. These two object types are used in unit
tests for the {@link com.arsdigita.persistence} package.
- XMLWeirdReferencingTest: Defines two identical tables
composed of one column each. Each table's primary key references
itself and the other table. This example shows how to model
foreign keys and also demonstrates that we support the same sort
of circular foreign keys as Oracle.
Last modified: $Date: 2002/07/18 $