Re: Re: How can i define a SDO Type with my custom interface ?

2007-07-05 Thread Raymond Feng
Hi, You can use the SDO tools from command line (org.apache.tuscany.sdo.generate.XSD2JavaGenerator.java) or maven to generate SDO interfaces/classes from an XSD. The java\sca\modules\databinding-sdo\pom.xml is an example to use the sdo maven plugin. Thanks, Raymond - Original Message

Complex UBL-2.0 Datagraph mapping

2007-07-05 Thread Enric Staromiejski Torregrosa
Hi all of you, i've been assigned the task of studying and trying to map a huge-complex model entirely based on UBL-2.0 into SDO+DAS in order to implement transparent xml deserialization+persistence. First steps related with obtaining the SDOs classes have already been successfully reached. We

Re: Why the rootDataObject can't save to a xml file ?

2007-07-05 Thread Amita Vadhavkar
Hi, I have only a limited understanding about SDO and EMF, but what it looks like is - List custList = root.getList(CUSTOMER); for(int i=0; icustList.size(); i++){ System.out.println(XMLHelper.INSTANCE.save ((DataObject)custList.get(i), whatever, myname)); } will

Re: [Java SDO] Sample re-arrangement

2007-07-05 Thread kelvin goodson
In the end I went for both approaches [1]. In order to get the external documentation I instrumented each of the samples with some data about what it does, and then wrote a DocumentSamples java utility that extracts this data from the programs. This has allowed me to produce an HTML document

Re: New version solves Feature 'ConnectionInfo' not found problem

2007-07-05 Thread Luciano Resende
Great news Enric Just FYI, I think this was fixed by TUSCANY-1401 [1] [1] https://issues.apache.org/jira/browse/TUSCANY-1401 On 7/5/07, Enric Staromiejski Torregrosa [EMAIL PROTECTED] wrote: The problem i reported in the mail below does not occur any more with the new

Re: New version solves Feature 'ConnectionInfo' not found problem

2007-07-05 Thread Enric Staromiejski Torregrosa
by the way, the database engine i'll have to use is PostgreSQL 8.1, but the configuration has to be a typicall one, isn't it, something like: ConnectionInfo ConnectionProperties driverClass=org.postgresql.Driver

Re: New version solves Feature 'ConnectionInfo' not found problem

2007-07-05 Thread Luciano Resende
The XSD is available here [1]. I would need to give it a try using MySQL, but giving it a quick look on the DAS config files, looks like connection info other then the derby one hasn't been updated recently, and you would need to make some small modifications to it. ConnectionInfo

Re: New version solves Feature 'ConnectionInfo' not found problem

2007-07-05 Thread Enric Staromiejski Torregrosa
Yeah, but the path seems hard, hard. I just discovered the problem is not related with the code, but with the fact that i was trying to use another connection distinct to the derby one. I'm working with the default Customer sample code Tuscany is distributing. When using the derby connection

Re: New version solves Feature 'ConnectionInfo' not found problem

2007-07-05 Thread Enric Staromiejski Torregrosa
i imagined...but even if i get driverClass accepted, Feature user is not i'm really impressed and happy with your presence and collaboration...it's greatly encouraging to a newby ;) Enric 2007/7/5, Luciano Resende [EMAIL PROTECTED]: The XSD is available here [1]. I would need to give it

Re: New version solves Feature 'ConnectionInfo' not found problem

2007-07-05 Thread Luciano Resende
This might be the same issue we have with the Oracle JDBC drive, could you try specifying the resultset shape definition in the das config as described in this user's guide link [1] and see if this make you go further ? [1]