Hi,

About the "didn't work": did you set it on the field and used default mode
(= method)? If so can you try setting accessModeName=field on the mapper
builder?
About deprecation: adapter replaces converters
About resources.xml: converters can be registered
using TomEEConfigurableJohnzon (
https://github.com/apache/tomee/blob/master/server/openejb-cxf-rs/src/main/java/org/apache/openejb/server/cxf/rs/johnzon/TomEEConfigurableJohnzon.java).
It replaces ConfigurableJohnzonProvider and supports a set of adapters, see
https://github.com/apache/tomee/blob/master/server/openejb-cxf-rs/src/test/java/org/apache/openejb/server/cxf/rs/johnzon/TomEEConfigurableJohnzonTest.java#L75
for the property making it possible)


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2016-07-17 15:16 GMT+02:00 Thomas Matzner <[email protected]>:

> For the UUID data type, I needed to write a custom converter. As
> registering
> it by @JohnzonConverter(UUIDConverter.class) didn’t work, I followed the
> advice in
>
> https://rmannibucau.wordpress.com/2015/07/09/javaee-apache-johnzon-json-libr
> ary-javascript-date/ to use the method addPropertyEditor(UUID.class, new
> UUIDConverter()). However, that method is deprecated, and no replacement is
> given in the docs.
>
>
>
> 1.      What should be used instead of the deprecated method?
>
> 2.      In the blog quoted above, it is also shown how to set the access
> mode globally in resources.xml. Can the converter also be registered this
> way, and what syntax is used for this?
>
>
>
>
>
> Viele Grüße
>
>
>
> Dipl.-Inform. Thomas Matzner
>
> Berater für Systemanalyse
>
>
>
> www.tamatzner.de
>
>
>
>
>
> Von Ruth Stubenvoll und mir verfasst:
>
> IT-Freelancer. Ein Handbuch nicht nur für Einsteiger
> <http://www.dpunkt.de/buecher/3816/it-freelancer.html>
>
>
>
>
>
>
>
>
>
>
>
>

Reply via email to