swagger-codegen-generators icon indicating copy to clipboard operation
swagger-codegen-generators copied to clipboard

Java-XML-Binding is only for javax and jakarta is ignored

Open DanielWalz7 opened this issue 2 years ago • 2 comments

Taking a look at https://github.com/swagger-api/swagger-codegen-generators/blob/master/src/main/resources/handlebars/Java/model.mustache Lines 24 to 26, shows up that on setted Config-property "withXml" the imports for xml-binding types will always be generated to the old javax-package "javax.xml.bind.annotation". This should be updated depending on the setted "jakarta" Config-Property, so that then the import leads to "jakarta.xml.bind.annotation" instead of "javax.xml.bind.annotation"

DanielWalz7 avatar Dec 05 '23 06:12 DanielWalz7

I also found this issue and would really appreciate a fix for it!

alha96 avatar Mar 25 '24 07:03 alha96

Plus 1.

abedurftig avatar Oct 13 '25 09:10 abedurftig