I have been playing around with the Netflix GraphQL framework DGS. Using the codegen plugin I can generate my model classes directly from the schema.
My question is how do I add persistance to these generated classes. Do I just add the annotations to the generated classes, in which case won't they be removed if the class is regenerated? Or do I create another set of classes for JPA and map between these two sets of classes?