Hei, I have the case where my data is comming from external system web services. I am thinking store local the external data. I am thinking to use JaxB to parse the web services. I am thinking to use the same classes that are annotated with JaxB annotations and used as a model for the web services and annotate them with JPA annotations and use them to persist directly the data to the database. Theoretically I can have a second set of classes and mapper that is moving the data from the DTOs to the Entities,but I am questioning the needs since I think both JPA and JAxB are quite flexible and can co-exist.
What do you think ? Do you think this is a bad practice to mix JaxB and JPA(why I have the feeling that it is almost rhetorical question