IntelliJ IDEA
can generate a serializable class for you, that will meet all the requirements:
- Implements IsSerializable.
- Has a public default (zero argument) constructor.
- A serializable class can be created in the client part only.
- All non-final, non-transient instance fields within the class must be serializable themselves.