Questions tagged [jaxb]

Java Architecture for XML Binding is the Java standard for working with XML as domain objects. It provides an easy mechanism for mapping Java classes to XML representations.

Filter by
Sorted by
Tagged with
4 votes
1 answer

Unit testing objects with nested properties

I would like to know what is the best approach in order to unit test objects with nested properties. This is the structure I'm using. ContainerType is a sort of ...
Lorenzo B's user avatar
  • 183
2 votes
1 answer

Harnessing hashCode as JAXB @XmlID in order to use it with @XmlIDREF

I have a class Fighter in a software for planning boxing events. I implemented its hashCode() and ...
philonous's user avatar
  • 478
2 votes
2 answers

Finding if value exists in any column recursively

Our company uses an old version of JAXB so it does not allow generics. Other than that, I am using recursive calls because Rows can have subrows and I want to find ...
java_mouse's user avatar
4 votes
2 answers

Reusable configuration reader for Java

This is related to a question I posted on Stack Overflow. The consensus was to use JAXB, which is what I did. One of the requirements was that it needed to work with legacy XML configuration files. ...
Sam Goldberg's user avatar
29 votes
2 answers

JAXB XJC code generation - adding @XmlRootElement and Joda DateTime

Here's an interesting scenario that I encountered the other day. I did eventually reach a solution on my own. However, I'd welcome any comments and better approaches. The requirements I want to ...
Gary's user avatar
  • 391