What is the proper way to make an Entity read-only with JPA ? I wish my database table to never be modified at all programmatically.
I think I understand that I sho
If your JPA implementation is hibernate - you could use the hibernate Entity annotation
@org.hibernate.annotations.Entity(mutable = false)
Obviously this will tie your model to hibernate though.