title: Is it possible to have immutable fields in Hibernate/JPA?
body: <p>In our application, we need to have fields that are assignable only once.</p>
  
  <p>At first we thought of encapsulating the fields and making the setters private. However, some questions arouse:</p>
  
  <ul>
  <li>Without a public setter, is Hibernate still able to map the field from the database?</li>
  <li>Can I strip out the setter and make the field mutable only in the entity constructor?</li>
  <li>Finally, is there any standard JPA way to make a field immutable?</li>
  </ul>
  
  <p>Thanks in advance.</p>