title: Use Hibernate to set value to uppercase
body: <p>I need to set a value being saved to the DB to uppercase.
  My environment is in Java, and I'm using jsp/HMTL/js for front end forms.</p>
  
  <p>I have had suggestions to modify my model's getter/setter but I believe that this may be dangerous seeing as the model may be used in a variety of places, not all of which may want a strictly uppercase value.</p>
  
  <p>Previously I have tried to set the value to uppercase on the web form, using</p>
  
  <pre><code>style="text-transform:uppercase"
  </code></pre>
  
  <p>however when the value is saved to the db it retains the lowercase value.</p>
  
  <p>Is there any annotation, or idea someone has on this?</p>
  
  <p>Thanks,
  Dearg</p>
  
  <p>Update:</p>
  
  <p>@Vimal Bera I did try this:</p>
  
  <pre><code>$('#xyz').on('input', function() {
      $('#xyz').val().toUpperCase();
  });
  </code></pre>
  
  <p>But I admit my js experience isn't great, needless to say this did not work.</p>