java - Combining xmelements with constructor -


i have class order wich has 3 fields: id, name , showing-id.
have xml-file orders , reading them worked perfect.
however, made constructor order , doesn't work anymore.
how can have constructor , xml-elementbinding @ same time?

jaxb requires no-arg constructor. should able provide 1 (try marking private) , things should work.

if object isn't root one, create object default constructor , use xmladapter convert to/from avoid having add no-arg constructor domain object (see linked article below example).


Comments

Popular posts from this blog

python - Specify path of savefig with pylab or matplotlib -

How to run C# code using mono without Xamarin in Android? -

html - grunt SVG to webfont -