readthefuckingmanual.net

[SOLVED] An Entity or IdClass class should implement the Serializable interface.

Error added: 2008-06-08T20:38:25Z

1 people waiting for the answer...

1 answers found.

Answer 1541 (0.0% helpful)

JPA 2.0 Final says:
If an entity instance is to be passed by value as a detached object (e.g., through a remote interface), the
entity class must implement the Serializable interface.

This means that "should implement" is conditional!
Don't implement it if you don't need to pass an entity instance as a detached object.
Permalink

Add an answer/solution

If you know the answer, please add your own solution below.
If you don't know, but find out later, please come back and share your answer - there will be other people struggling with this too.


Please enter 61948 here

If you want to be notified via email when this is solved, enter your email address here: