0

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

Alfaville
  • 532
  • 7
  • 15

1 Answers1

1

So as an answer:

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

Rob Bygrave
  • 3,511
  • 27
  • 26
  • 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