How can I make a field non-serializable in java?
define description as below
public transient String description;
check http://en.wikibooks.org/wiki/Java_Programming/Keywords/transient
You just need to make that one transient
.
Example:
public transient String description;
Use keyword transient
:
public transient String description;