I agree that this would be reasonable, but that's not the way the code generation is done at present. The documentation specifies that ID/IDREF values have to be of type String for now. You may want to enter an enhancement request for this to make sure it gets into the 2.0 code, though.

 - Dennis

Eitan Suez wrote:

hello,

 say i'm mapping a certain class that has a unique field
 and i mark it with ident="def".  now this field is not of
 type string, but its type has a corresponding serializer
 specified in a <format> tag.  at the moment (just tried this
 with rc1), i get this error:

Error: ID property must supply a java.lang.String value for value
element at (line 46, col 70, in binding.xml)

   i would think that jibx could conceivably check that the
   field type is serializable and if so, serialize the value to
   obtain a string?

thanks, eitan


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to