title: Clean data before inserting to table
body: <p>I have my JPA  Entity something like below.</p>
  
  <pre><code>Employee{
  
  String name;
  
  String address;
  
  String phoneNumber;
  
  Date  joiningDate;
  
  boolean isActive;
  
  }
  </code></pre>
  
  <p>I am seeing that we have bad data inserted in the table for address,name like bad  characters  \u000b which is new line character.I want to handle this generically to cleanse the data before inserting.
  I wanted to handle in dao layer because this gets called from many places hence want to handle at one central place.Some thing like AOP
  I am  doing </p>
  
  <pre><code>employeeDao.save(employee);
  </code></pre>
  
  <p>which then  does <code>employee.merge();</code></p>