Pete,

The DataObjectImpl class has a variety of public setDefault methods that
will set a default value for a property of a type. Is that what you a
looking for?

Also, I fumbled the JIRA reference earlier. The JIRA to add a flexible type
system is TUSCANY-546

Regards,

Geoff.

On 23/08/06, Pete Robbins <[EMAIL PROTECTED]> wrote:

On 23/08/06, Geoffrey Winn <[EMAIL PROTECTED]> wrote:

> Sebastien, Pete,
>
> I may have misunderstood the base note, however, it looks to me that you
> are
> trying to make changes to the metadata - by adding types - after
creating
> a
> data object.
>
> > so we already have in hand a DataObject representing the
> > <component>, containing a list of <property> DataObjects.
> > Now I need to dynamically create a new SDO type containing
>
> If I'm right then this is a known restricion. We have a JIRA
(TUSCANY-474)
> that explains it. Bascally, as soon as you create a data object the type
> system is frozen. Pete, is that why you are suggesting creating a
> DataFactory for each componenType?


Exactly! However my brain let me down as when I went to check the code I
had
already coded it this way ;-)

What we do need is a way of setting the default value for a type. Maybe
you
can enlighten me on what I have to do. Is there code to handle default
values in SDO?

Cheers,

--
Pete


Reply via email to