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.
6 questions
1
vote
1
answer
115
views
Find scheduling conflicts within a timetable
Following task: I'm given a timetable containing several classes that have a weekday, as well as an hour at which they start and end. Also, they have a room assigned and are part of a curriculum for ...
4
votes
1
answer
1k
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
1
answer
276
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
2
answers
212
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
2
answers
779
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. ...
29
votes
2
answers
66k
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 ...