Re: Can I use das.applyChanges(newDataobject) to insert a new dataObject?

2007-06-25 Thread Luciano Resende
Please take a quick look at : http://incubator.apache.org/tuscany/workingwithbasiccrud.html Let me know if you still have problems after that... On 6/25/07, lizt [EMAIL PROTECTED] wrote: Dear team, I want use das to implement a general create method like in Hibernate. I get

Re: ClassCastException on getChangeSummary().beginLogging();

2007-06-25 Thread kelvin goodson
Hi Tom, the only generator we have in good shape to generate Tuscany SDO classes is the XSD to Java generator. I think it would be a significant new feature to properly support what you are trying to do. You are correct in your understanding that you must arrange for a specialised factory to

Re: ClassCastException on getChangeSummary().beginLogging();

2007-06-25 Thread Frank Budinsky
Hi Tom, Tuscany overrides the templates, and many of the other GenModel settings for it's code generation. If you look in class org.apache.tuscany.sdo.generate.JavaGenerator you'll see code like this: generator.getAdapterFactoryDescriptorRegistry().addDescriptor

Re: Problem defining Data with XSD

2007-06-25 Thread Scott Kurz
Are you using XMLHelper.load(String) when you mean to use XMLHelper.load(InputStream) (from an produced from test.xml)? I know I've made that mistake (not sure what the error msg was though) ... maybe it would help to show your Java code in more detail. Scott On 6/25/07, Manuel Thiemann

Re: Problem defining Data with XSD

2007-06-25 Thread Frank Budinsky
Hi Manuel, Your xsd has an error. The type of the TestItemType element needs to include the namespace: xsd:element name=TestItemType type=testns:TestItemType/ At some point, we really need to improve the error handling. Frank. [EMAIL PROTECTED] wrote on 06/25/2007 11:14:07 AM: Hi

Re: Problem defining Data with XSD

2007-06-25 Thread Manuel Thiemann
Hi Frank, now it works. Thank you very much for that valuable hint. I love you :-) . Manuel Frank Budinsky wrote: Hi Manuel, Your xsd has an error. The type of the TestItemType element needs to include the namespace: xsd:element name=TestItemType type=testns:TestItemType/ At some