title: How to refer another table in Hibernate
body: <p>I have two classes: <code>User</code> and <code>Video</code>:</p>
  
  <pre><code>@Entity    
  class User{
      @Id
      int id;        
      String name;
  }
  
  @Entity
      class Video{
      @Id
      int id;        
      String url;
      User user;
  }
  </code></pre>
  
  <p>When i use this I get the following error:</p>
  
  <blockquote>
    <p>Could not determine type for: User, at table: Video</p>
  </blockquote>
  
  <p>I'm using Hibernate through Tapestry. Any suggestions?</p>