title: How do I save a property of type Class with Hibernate?
body: <p>More specificly, how do I save a list of type class with Hibernate?</p>
  
  <p>I have the following (simplefied) class:</p>
  
  <pre><code>@Entity
  @Table(name = "bundles")
  public class Bundle{
  
      @Id
      private Long id;
  
      private List&lt;Class&lt;?&gt;&gt; classes;
  
      // Getters &amp; Setters and some logic
  }
  </code></pre>
  
  <p>Now, how do I go about saving this in a database? I need a database schema wich provides an option to save a "class" type, but I can't figure it out. I use PostgreSQL as a database.</p>
  
  <p>The fact that it is a List would not really matter, I would just annotate it with @OneToMany.</p>