> And added it at the top of my binding definition:
> 
> <mapping class="org.hibernate.collection.PersistentSet" name="pset"
>    marshaller="PersistentSetMapper"/>
> 
> I have not been able to try this because I get an error 
> saying you can't call out a custom marhshaller unless you 
> also have a custom unmarshaller.

Do you have direction="input" in your binding definition, ie:
  <binding name="xxx" direction="input" ...>
Unless you have this then I would have thought that the unmarshaller is
required, with this JiBX has no need of the unmarshaller and shouldn't
require it (or are you going in both directions?)

Alternativly, you could try creating your own iterator for the set that
excludes the uninitialised elements and use that to iterate over the
collection,
  <collection iter-method="myIterator" ...>
That should work in both directions.


Brian Wallis
Senior Consultant
Object Consulting  
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to