Jannik Weichert
Jannik Weichert

Reputation: 1673

How to add XML-Annotations automatically

I have a huge number of entity-classes and they all need to be annotated with XML-Annotations in order to send them as xml with JAX-RS.

Is there way in eclipse or a third party tool that does this automatically? It's really annoying....

Any ideas?

Upvotes: 0

Views: 68

Answers (1)

Georgian
Georgian

Reputation: 8960

Here's a hack.

Open all classes with Notepad++, and replace all public class with @Annotation public class.

I hope you don't have nested public classes.

Upvotes: 1

Related Questions