[ http://issues.apache.org/jira/browse/TUSCANY-934?page=comments#action_12450535 ] Kapil Katyal commented on TUSCANY-934: --------------------------------------
The generated FactoryImpl class needs to include the following lines in the generated createMetaData method: abstract_Type = createType(false, ABSTRACT); createProperty(true, abstract_Type, AbstractImpl.FIRST_NAME); createProperty(true, abstract_Type, AbstractImpl.LAST_NAME); Once those lines were added, the test case passed. If no one else is working on this, I can modify the template files so that abstract types are supported in the -noEMF option. -Kapil > XSD2JavaGenerator -noEMF option does not work with abstract classes. > -------------------------------------------------------------------- > > Key: TUSCANY-934 > URL: http://issues.apache.org/jira/browse/TUSCANY-934 > Project: Tuscany > Issue Type: Bug > Components: Java SDO Tools > Reporter: Brian Murray > > SDOUtil.registerStaticTypes() fails when the statically generated classes > were created from an XSD that includes an abstract Type and the -noEMF option > is used. The absence of abstract="true" in the XSD or not using -noEMF > during the XSD2JavaGenerate will allow the registerStaticTypes() to complete. -- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
