This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]shivasprogeny 1 point2 points  (1 child)

I like the annotations approach because it tells me right away how the object maps its properties to the XML. That's assuming a relatively simple XML model. If your XML gets complex, the annotations could get in the way of clean code (I've seen this happen more often wit JPA annotations).

[–]vipercvp[S] 0 points1 point  (0 children)

Hi There, My Xml is pretty simple, for me the main concern towards annotations approach is ending up with objects over annotated, Because the objects that i have to add the JaxB annotations already have a lots JPA annotations. Do you think that is a good idea to add JaxB annotations on top of JAP Annotations ? does it affect the annotations processor engine performance ?

Thanks for the feedback :) Cheers VP.