title: org.hibernate.MappingException: Could not determine type for: , at table: Sentence, for columns:
body: <p>I get this error on execution:
  org.hibernate.MappingException: Could not determine type for: transcriptParsing.structures.Participant, at table: Sentence, for columns: [org.hibernate.mapping.Column(participant)]</p>
  <p>I have the following class structures</p>
  <pre><code>@Entity
  @Table(name=&quot;Sentence&quot;)
  public class Sentence {
      @Id
      @GeneratedValue(strategy = GenerationType.AUTO)
      private int id;
      public String wholeSentence;
  
      @ManyToOne
      @JoinColumn(name = &quot;participant_id&quot;, foreignKey = @ForeignKey(name = &quot;participant_ID_FK&quot;))
      public Participant participant;
      public Category sentenceType;
      public enum Category {
          Question,
          Answer
      }
  
  
  @Entity
  @Table(name=&quot;Participant&quot;)
  public class Participant {
      @Id
      @GeneratedValue(strategy = GenerationType.AUTO)
      public int id;
      @Column
      public String name;
      @Column
      public Category category;
      public enum Category {
          Management,
          Analyst
      }
  </code></pre>
  <p>What could be wrong here? Really appreciate the help, Thanks!</p>