title: How to encrypt/decypt data with custom anotation(hibernate) in spring project
body: <p>I'm developing some RESTFull web services for a project. I use the Spring framework and use gradle for build. 
  The problem is , I want to encrypt and decrypt data table when write and read data. I already have a algorithm(class) to encrypt and decrypt data with AES etc. What I need is, how annotate this method to hibernate entity class, am I need to create bean for this class ?</p>
  
  <p>Ex:- </p>
  
  <pre><code>@Column(columnDefinition= "LONGBLOB", name = "card_no")
          @ColumnTransformer(
                  read="decrypt(card_no)",
                  write="encrypt(?)")
          private String cardNo;
  </code></pre>
  
  <p>Like this I want to add my own encryption/decryption java method to here.</p>