I'm attempting to transpile Java model classes to JavaScript using JSweet. The model classes contain JPA annotations like @Column
. The transpilation fails as soon as it encounters import javax.persistence.Column
.
The JPA annotations are irrelevant in JavaScript and should not be transpiled. Can this be done without changing the Java code?
More generally, is there a way to have JSweet ignore import statements, e.g., when all references to the imported packages are in @Erased
methods?