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
  • 20,708
  • 48
  • 131
  • 198

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
  • 2,035
  • 2
  • 17
  • 27