is there a way to customize jaxb IDREF?

E

Elhanan

hi..

by default jaxb specs say that have idref as object properties.

is there a way to have jaxb generate the class with the actuall type?

is don't think there is.. even though the spec say you can use basetype
and java type tags in the customize process, you need to specify print
and parse and method, once you do that, jaxb uses them directly in
generated class, meaning my method should accept xml string and convert
to an object, and vice versa

this is bad becouse not only does this completly throws out why i
needed jaxb in the first place but becouse jaxb uses a method called
context.getObjectFromId, which acually pulls out the object according
the id attribute from the internal id table (which clearly i do not
have or want access to)

is there a way to solve this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,001
Messages
2,570,254
Members
46,851
Latest member
CliftonCor

Latest Threads

Top