Hello
After registering the types (with SDOUtil.registerStaticTypes) I am able
to do this:
DataObject car = DataFactory.INSTANCE.create("some://namespace", "Car");
After that, I am able to set simple properties:
car.set("Color", "Green");
However, when I try with nested ("containment"?) properties:
car.set("RearAxle/Length", "50");
it raises java.lang.NullPointerException. I have to do this first:
car.createDataObject("RearAxle");
Then I can proceed with this:
car.set("RearAxle/Length", "50");
The question is:
How to make DataObject.set (or some other dynamic setters, like
DataObject.setString) create all the nested properties that are needed?
One could try to parse that path ("RearAxle/Length") by hand, and create
those properties by hand. But it seems that those could be complicated
expressions, and in fact I do not know them before runtime. So, if that
parsing is already done somewhere there in Tuscany internals, I would
like not to duplicate it.
Thanks.
--
Leave this world better than it was when you were born.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]