[jira] Commented: (TUSCANY-934) XSD2JavaGenerator -noEMF option does not work with abstract classes.

2006-11-17 Thread Frank Budinsky (JIRA)
[ 
http://issues.apache.org/jira/browse/TUSCANY-934?page=comments#action_12450827 
] 

Frank Budinsky commented on TUSCANY-934:


Hi Kapil,

If you could fix the  template for this, that would be great. I'm also working 
on the FactoryImpl template myself, but if you provide a patch for this, I can 
merge it with my changes before commiting.

Thanks,
Frank.

 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]



[jira] Commented: (TUSCANY-934) XSD2JavaGenerator -noEMF option does not work with abstract classes.

2006-11-16 Thread Kapil Katyal (JIRA)
[ 
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]