Re: [C++] SDO Sequence api (was [jira] Created: (TUSCANY-980) DataObject assigned into open property goes missing)

2006-12-08 Thread Pete Robbins
On 08/12/06, Simon Laws [EMAIL PROTECTED] wrote: On 12/7/06, Pete Robbins [EMAIL PROTECTED] wrote: On 07/12/06, Frank Budinsky [EMAIL PROTECTED] wrote: Pete is right about how it works and that it is kind of ugly. We have an internal way of doing it more easily, but the only way an SDO

[jira] Created: (TUSCANY-980) DataObject assigned into open property goes missing

2006-12-07 Thread Caroline Maynard (JIRA)
DataObject assigned into open property goes missing --- Key: TUSCANY-980 URL: http://issues.apache.org/jira/browse/TUSCANY-980 Project: Tuscany Issue Type: Bug Components: C++ SDO

Re: [C++] SDO Sequence api (was [jira] Created: (TUSCANY-980) DataObject assigned into open property goes missing)

2006-12-07 Thread Simon Laws
On 12/7/06, Pete Robbins [EMAIL PROTECTED] wrote: On 07/12/06, Pete Robbins [EMAIL PROTECTED] wrote: On 07/12/06, Simon Laws [EMAIL PROTECTED] wrote: On 12/7/06, Caroline Maynard [EMAIL PROTECTED] wrote: On 07/12/06, Pete Robbins [EMAIL PROTECTED] wrote: Do you use

Re: [C++] SDO Sequence api (was [jira] Created: (TUSCANY-980) DataObject assigned into open property goes missing)

2006-12-07 Thread Frank Budinsky
In the Java implementation we do the following: 1. If a sequenced type is created programatically, we map all the properties to XML elements - so any property can be added to the sequence. 2. If a sequenced XSD-based type, then only properties that map to elements can be added to the sequence.

Re: [C++] SDO Sequence api (was [jira] Created: (TUSCANY-980) DataObject assigned into open property goes missing)

2006-12-07 Thread Pete Robbins
On 07/12/06, Frank Budinsky [EMAIL PROTECTED] wrote: In the Java implementation we do the following: 1. If a sequenced type is created programatically, we map all the properties to XML elements - so any property can be added to the sequence. That sounds right. 2. If a sequenced XSD-based

Re: [C++] SDO Sequence api (was [jira] Created: (TUSCANY-980) DataObject assigned into open property goes missing)

2006-12-07 Thread Pete Robbins
On 07/12/06, Simon Laws [EMAIL PROTECTED] wrote: Thanks for that Frank. When a data object has an XSD based type is there are way of getting all of it's properties which the XSD says are attributes. This is where it gets a bit ugly. It's ok if you know what the attribute names are as you

Re: [C++] SDO Sequence api (was [jira] Created: (TUSCANY-980) DataObject assigned into open property goes missing)

2006-12-07 Thread Frank Budinsky
Can you confirm that for a sequenced DataObject if I set a property using e.g. setString(prop, text) then that setting will added to the sequence as if getSequence().add(prop, text) was used? Right (but only if the property maps to an XML element).

Re: [C++] SDO Sequence api (was [jira] Created: (TUSCANY-980) DataObject assigned into open property goes missing)

2006-12-07 Thread Frank Budinsky
Pete is right about how it works and that it is kind of ugly. We have an internal way of doing it more easily, but the only way an SDO client can do it is the way Pete said. Maybe we need to open an SDO 3 spec issue for adding a convenient way to access non-sequenced properties of a sequenced

Re: [C++] SDO Sequence api (was [jira] Created: (TUSCANY-980) DataObject assigned into open property goes missing)

2006-12-07 Thread Pete Robbins
On 07/12/06, Frank Budinsky [EMAIL PROTECTED] wrote: Can you confirm that for a sequenced DataObject if I set a property using e.g. setString(prop, text) then that setting will added to the sequence as if getSequence().add(prop, text) was used? Right (but only if the property maps to an

Re: [C++] SDO Sequence api (was [jira] Created: (TUSCANY-980) DataObject assigned into open property goes missing)

2006-12-07 Thread Pete Robbins
On 07/12/06, Frank Budinsky [EMAIL PROTECTED] wrote: Pete is right about how it works and that it is kind of ugly. We have an internal way of doing it more easily, but the only way an SDO client can do it is the way Pete said. Maybe we need to open an SDO 3 spec issue for adding a convenient