title: Updating only specific coloumn using Hibernate
body: <p>I using struts2 as a front-end and hibernate 3.0 as ORM. I want to update customer address based on selected drop-down list. All fields are compulsory except <strong>PIN</strong>. If user is updating the address and leaves PIN as blank then PIN is also updated with state and so on.
  I dont want to update <strong>PIN</strong>  if it is blank. How to achieve this, Is Hibernate having anything to update specific column something like this.</p>
  
  <pre><code>if(getPin()==null||getPin()=="")
  {
      @update(false)  //make update false
  }
  </code></pre>
  
  <p>Check snippets for getting idea about my problem.<img src="https://i.stack.imgur.com/hJq7t.jpg" alt="enter image description here"></p>