Hi Daniel,

The problem with readonly properties is that the SDO spec doesn't 
currently specify how to set/initialize the values of them (this applies 
to dynamic as well as generated DataObjects). Tuscany was waiting for 
clarification, some kind of API/SPI from the spec, which was targeted for 
SDO 2.1 but unfortunately it didn't make it in time. So now it's expected 
to be addressed in the next version of SDO. In the meantime, we recommend 
not using readonly properties. If there's enough demand, it might be 
better to design some Tuscany-specific API, rather than waiting for the 
spec to provide the "proper" way. I believe there is a JIRA issue open for 
this, but currently not at the top of the priority list.

Frank.

Daniel Peter <[EMAIL PROTECTED]> wrote on 04/25/2007 05:40:02 AM:

> Hi all,
> 
> When I specify a property to be readOnly in the annotated xsd, the 
> static code generator produces an interface/class which provides 
> only a getter method for that property, and no corresponding setter 
> method, as expected.
> 
> The generated factory still provides only a null-arg create method. 
> Here I would have expected to see a create method which allows to 
> pass all readOnly properties which would then be used during the 
> creation operation.
> 
> How can a readOnly property initially be set?
> 
> Thanks, Daniel.
> 
> 
> 
> 
> 
>       __________________________________  Kennt man wirklich jeden 
> über 3 Ecken? Die Antworten gibt's bei Yahoo! Clever. 
www.yahoo.de/clever

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to