Skip to content

Clemens85/castor2jaxb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code for automatically migrating existing Java classes that were bound to XML by Castor XML bindings to JAXB annotations.

More details can be found here https://medium.com/@clemensstich/migrating-castor-xml-to-jaxb-a18929ae5987.

tl;dr: Just copy the main code from com.ottogroup.buying.castor2jaxb into your project and execute the CastorToJaxbMigrator (ensure that the needed dependencies are also setup in the project -> pom.xml)

About the JUnit Tests

  • Castor2JaxbMigratorTest can just be executed to perform a simple example migration. Most code in the test is just about copying Java classes around which is needed due to the migration adapts Java class files inplace.
  • Just for demo purpose, it is also possible to comment-in the DeserializationTest after migration, for executing a demo XML deserialization of the migrated classes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages