title: Storing String value into the field of JSON type
body: <p>There is an entity for Events:</p>
  <pre><code>@Entity
  class Event {
      private Long id;
      private String eventName;
      private String eventData; // json value of object eg. Invoice, Payment.
  }
  </code></pre>
  <p>When I tried to insert a new record, PostgreSSQL is giving an error because type of <code>eventData</code> field is json. I cannot use a specific type for eventData to convert to Json object because it can be any event (Invoice, Payment etc). Is there any way to convert to Generic type.</p>
  <p>I've used Hibernate-types-52 library.</p>