Objects need to be Serializable in Hibernate so it will work in cluster and you can use whatever you like for second level caches (since these in turn may serialize stuff)
Does anyone knows why hibernate needs to overwrite equals/hashCode for compositeId?
Is this statement 1 right?:
Performance does suffer if I implement Serializable in all my Entities without the need to transmit entities between different jvm.
Is this statement 2 right?:
Both in eclipselink and hibernate, I have to use Serializable when transmitting entity state from one layer (persistence layer) to another (view layer - for example, jsf) even it is in the same jvm.
Is this statement 1 right?:
Performance does suffer if I implement Serializable in all my Entities without the need to transmit entities between different jvm.
No.
Is this statement 2 right?:
Both in eclipselink and hibernate, I have to use Serializable when transmitting entity state from one layer (persistence layer) to another (view layer - for example, jsf) even it is in the same jvm.