[ http://issues.apache.org/jira/browse/TUSCANY-383?page=comments#action_12411990 ]
Dan Murphy commented on TUSCANY-383: ------------------------------------ I guess this is my misunderstanding - I thought sdoModel.xsd could be used to annotate the XSDs (which contains a open="true" attribute for complextype) > Cannot generate open content SDOs from annotated XSD > ---------------------------------------------------- > > Key: TUSCANY-383 > URL: http://issues.apache.org/jira/browse/TUSCANY-383 > Project: Tuscany > Type: Bug > Components: Java SDO Tools > Versions: Java-M1 > Environment: Linux (presume xplatforms) > Reporter: Dan Murphy > > I am attempting to generate open content SDOs from XSDs and having no luck. > It would seem that their are a number of problems, so will open a seperate > jira for each... > As I understand it, one way to have an open SDO is to use XSD annotation. > This can be set by adding a open="true" attribute to the complextype > definition. For example: > <schema targetNamespace="blablabla" xmlns="http://www.w3.org/2001/XMLSchema" > xmlns:tns="blablabla" xmlns:sdo="commonj.sdo"> > <import namespace="commonj.sdo" schemaLocation="sdoModel.xsd" /> > <complexType name="BaseObject" sdo:open="true"> > <sequence> > <element name="name" type="string" nillable="false" /> > <element name="owner" type="string" /> > <element name="description" type="string" /> > <element name="lastModified" type="string" /> > <element name="namespace" type="string" /> > <element name="version" type="string" /> > </sequence> > </complexType> > </schema> > However the BaseObject.getType().isOpen() returns false .'. I can't create an > open dataobject using this approach. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
