In our application, we need to have fields that are assignable only once.
At first we thought of encapsulating the fields and making the setters private. However, some q
Try
@Column(updatable = false)
From javadoc:
Whether the column is included in SQL UPDATE statements generated by the persistence provider.