I recently generate two versions of Java classes generated by JAXB. So I get two packages : V1_0 and V2_0
I notice that I have only one ObjectFactory generated. The problem is that this ObjectFactory is specific to a version (here it's specific to my version v1_0).
So the question is : Could I configure JAXB to allow to make one ObjectFactory for each version ?
Thanks a lot.
One object factory for both versions? Not, it is not possible. You get two sets of classes in two packages - it is not possible that one object factory serves both of them.