2016-08-02 10:06 GMT+02:00 gchauvet <[email protected]>: > I've a class not found exception without pushing javax.json-api or > geronimo-json [1]. Both works. > But I'm facing to a new behaviour with jonhzon. I get this result for an > Embeddable entity : > > "immatriculation": { > "SIREN": "41983072400037", > "tiCodsir": "41983072400037" > } > > This is because SIREN is a entity field and tiCodSir target the old not > renamed "SIREN" accessors. > Who can I force Jonhzon to use field level access to get data ? > > You can configure accessModeName in resources.xml, set it to "field" or "method" depending what you want. You can also rename a field with @JohnzonProperty
> [1] JSON API is provided by TomEE classpath, why I need to define it ? > > For TomEE 7 yes, not for tomee 1.7.x which is the version you referenced. > > > -- > View this message in context: > http://tomee-openejb.979440.n4.nabble.com/ejb-restful-Customize-JSON-XML-generation-tp4679564p4679575.html > Sent from the TomEE Users mailing list archive at Nabble.com. >
