Another advantage of JAXB is that since you work with POJOs, you can feel comfortable using them as first-class class objects and use them in your application stack.
Want to use them as value objects for your DAO layer? How about your model in the user interface layer? Go for it.
Thus, you have fewer display layers and DTOs, which means less code to write, test, and support.
source share