Skip to content

How to avoid serializing specific components or fields

Daan van Yperen edited this page Jul 19, 2021 · 4 revisions

Don't serialize component by class

@Transient 
public class MyComponent extends Component {
}

Don't serialize field

public class MyComponent extends Component {
    public transient String skipMe;
    public String includeMe;
}
Clone this wiki locally