Hi Eitan,

Unfortunately the current code generation requires that an ID property actually be stored and retrieved as a String. That's one of the things I'm hoping to generalize in the beta 4 code. If you want to enter this as an enhancement request in Jira it'll make sure I don't lose sight of the issue. As a workaround, you can provide String get/set methods for this property to work with the current code.

Likewise on multi-level inheritance, on both fronts (should be beta 4, add it to Jira).

Glad to see you're finding JiBX useful!

- Dennis

P.S. Hope to see you at some of the upcoming symposiums (Jay finally added me back on his "active" list...).

Eitan Suez wrote:

hi dennis,

given this binding:
<binding>

  <format type="CodeType"
     serializer="XMLPropertyAdapter.serialize"
     deserializer="XMLPropertyAdapter.deserialize" />

<mapping name="choice" class="Choice">
<value name="code" field="code" ident="def" /> <!-- field code is of type CodeType -->
<value name="value" field="value" />
</mapping>


</binding>

when i bind, i get this error:
    JiBXException: ID property must be a String at tag "value"

the field "code" is not of type string.  but the specified <format>
tag for its type provides a serializer that produces a string.
shouldn't that be sufficient for it to qualify as a valid ID / key ?

thanks, eitan

ps: thanks for such a nice and well-documented framework!
pps/question: will beta 4 include multi-level inheritance support?






-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
jibx-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to