IntelliJ IDEA can generate a serializable class for you, that will meet all the requirements:
- Implements
IsSerializable. - Has a
publicdefault (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.
- In the Project view, right-click the client package.
- From the context menu, select .
- Specify the name of the class and click OK.