is there a way to customize jaxb IDREF?

Discussion in 'Java' started by Elhanan, Mar 30, 2006.

  1. Elhanan

    Elhanan Guest

    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?
     
    Elhanan, Mar 30, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. rico
    Replies:
    2
    Views:
    435
  2. kevkev

    JAXB and IdRef

    kevkev, May 18, 2005, in forum: Java
    Replies:
    3
    Views:
    4,402
    kevkev
    May 19, 2005
  3. Lars
    Replies:
    0
    Views:
    1,255
  4. Hauke Fuhrmann

    restrict IDREF to special elements

    Hauke Fuhrmann, Oct 26, 2003, in forum: XML
    Replies:
    1
    Views:
    678
    Mark Preston
    Oct 27, 2003
  5. jacquesh
    Replies:
    2
    Views:
    569
    jacquesh
    Nov 8, 2006
Loading...

Share This Page