0

I want avoid updates undue with Ebean, because it happens to Hibernate(@Immutable) and EclipseLink(@ReadOnly).

Alfaville
  • 543
  • 7
  • 16

1 Answers1

1

So as an answer:

Just remove the setter methods and make the bean immutable that way.

Rob Bygrave
  • 3,861
  • 28
  • 28
  • 1
    Removing the setter doesn't work with collections. See this other topic http://stackoverflow.com/questions/5115527/how-to-make-an-entity-read-only – Xavier Bouclet Jun 07 '16 at 13:03