Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "EclipseLink/Examples/SDO/MetadataXMLSchema"
< EclipseLink | Examples | SDO
(New page: ==Overview== The following example will demonstrate how to use EclipseLink's SDO functionality to: * Define a set of SDO Types from an XML Schema ==Initializing the Types from XML Schema...) |
|||
Line 12: | Line 12: | ||
XSDHelper.INSTANCE.define(xsdInputStream, null); | XSDHelper.INSTANCE.define(xsdInputStream, null); | ||
</source> | </source> | ||
+ | |||
+ | ==Introspect Metadata - Types== |
Revision as of 13:25, 24 February 2009
Overview
The following example will demonstrate how to use EclipseLink's SDO functionality to:
- Define a set of SDO Types from an XML Schema
Initializing the Types from XML Schema
The first thing that needs to be done in an SDO application is to set up the metadata for the Types and Properties. This is most commonly done by loading an XML schema, although it may also be done programmatically.
FileInputStream xsdInputStream = new FileInputStream("Customer.xsd"); XSDHelper.INSTANCE.define(xsdInputStream, null);