Timo Taye

Greenhorn
+ Follow
since Aug 18, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Timo Taye

Unfortunately I wasn't able to find a solution. As a temporary work around (until I have time to revisit the problem) I have written a script that gets called by ant after XJC has run and performs the desired string replacements.
13 years ago
Well this is a little embarrassing. What I want to do is use XJB to generate JAXB annotated classes that needn't be modified by hand at all and are created with the annotations I want. Specifically, I am interested in setting XmlAccessType to NONE rather than FIELD which is the default. I am willing to use bindings customizations or even write a XJC plugin if I must but am having a difficult time finding information. In general, it appears there may be a bit of a gap between the options XJC supports verses those that are available to users hand writing classes. One example of this I am seeing is the inability to specify an adapter class for a complex type (see https://jaxb.dev.java.net/issues/show_bug.cgi?id=209) in my schema.
13 years ago
While I agree the link provided is an excellent source of info on generating customized JAXB bindings, I don't think it addresses the question posed. Does anyone have a solution to this?
13 years ago