Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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
1answer
152 views

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 ...
2
votes
1answer
189 views

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 ...
2
votes
2answers
169 views

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 ...
4
votes
2answers
720 views

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. ...
27
votes
2answers
57k views

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 ...