When and why JPA entities should implement the Serializable interface?
The question is in the title. Below I just described some of my thoughts and findings. When I had a very simple domain model (3 tables without any relations), all my entities did NOT implement the Serializable interface. But when the domain model became more complex, I got a RuntimeException, saying that one of my … Read more