1

Possible Duplicate:
Do Hibernate table classes need to be Serializable?

I can perform any CRUD operation using Hibernate in Java and my entity class need not to implement Serializable interface.

But I have read that entity class must implement Serializable. Is there any specific scenario where my entity class must be Serializable?

Community
  • 1
  • 1
Anand
  • 19,738
  • 46
  • 124
  • 191

1 Answers1

2

If your cache provider is configured to overflow to disk, your classes will need to be serializable, at least for ehcache.

Jon Burgess
  • 1,915
  • 2
  • 16
  • 26