Combining Hibernate Objects and a JAXB Object

I am developing a set of REST services. I plan to use Hibernate as my ORM and JAXB as my business objects to simplify sorting and disassembling. In this case, I should always map Hibernate objects to a JAXB object and vice versa. Is there a more efficient standard architecture for this purpose?

+5
source share
1 answer

Using hibernation using JPA annotations, you can create a class that can be used by both JAXB for sorting and undoing, and for Hibernate to save.

If you are trying to keep two strictly separate — that is, you don’t want the JPA annotations and JAXB annotations to coexist in the same class — then you will need to map them between the two.

+2
source

All Articles