Announcement Announcement Module
Collapse
No announcement yet.
Why don't entities implement Serializable? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Why don't entities implement Serializable?

    Hi,

    I noticied that the entities that Roo generates do not implement the Serializable interface. Why not?

    Thanks,

    Karen

  • #2
    Generally speaking it's not a good idea to implement Serializable unless you really need it, because you are then forced to ensure the whole object graph is either serializable or transient. However both the "entity" and "embeddable" commands do have a "serializable" option if you require it for some reason.

    Comment

    Working...
    X