title: Hibernate Relationship Mapping Issue
body: <p>Hibernate novice here, running into issues trying to properly map the relationships between my Hibernate Entity classes.  </p>
  
  <p>I have a Ticket Entity and a User Entity. A user has many tickets, but a ticket only belongs to one unique user. What i've done is mapped the User - Tickets as a <code>@OneToMany</code> relationship and the Tickets - User as a <code>@ManyToOne</code> relationship. However, I am not getting any tickets returned.</p>
  
  <p>The Query Hibernate is running is:</p>
  
  <pre><code>Hibernate: select tickets0_.user_user_id as user1_1_3_, tickets0_.tickets_ticket_id as tickets2_3_, ticketenti1_.ticket_id as ticket1_0_0_, ticketenti1_.assigned_to_user_id as assigned7_0_0_, ticketenti1_.belongs_to_user_id as belongs8_0_0_, ticketenti1_.date_created as date2_0_0_, ticketenti1_.description as descript3_0_0_, ticketenti1_.status_id as status4_0_0_, ticketenti1_.title as title0_0_, ticketenti1_.urgency_id as urgency6_0_0_, userentity2_.user_id as user1_1_1_, userentity2_.email as email1_1_, userentity2_.firstname as firstname1_1_, userentity2_.lastname as lastname1_1_, userentity2_.password as password1_1_, userentity2_.role_id as role6_1_1_, userentity2_.username as username1_1_, userentity2_.verified as verified1_1_, userentity3_.user_id as user1_1_2_, userentity3_.email as email1_2_, userentity3_.firstname as firstname1_2_, userentity3_.lastname as lastname1_2_, userentity3_.password as password1_2_, userentity3_.role_id as role6_1_2_, userentity3_.username as username1_2_, userentity3_.verified as verified1_2_ from user_ticket tickets0_ inner join ticket ticketenti1_ on tickets0_.tickets_ticket_id=ticketenti1_.ticket_id left outer join user userentity2_ on ticketenti1_.assigned_to_user_id=userentity2_.user_id left outer join user userentity3_ on ticketenti1_.belongs_to_user_id=userentity3_.user_id where tickets0_.user_user_id=?
  </code></pre>
  
  <p>The Entity Classes are:</p>
  
  <p><strong>TicketEntity.java</strong></p>
  
  <pre><code>@Entity
  @Table(name="ticket")
  public class TicketEntity {
  
  @Id
  @Column(name="ticket_id")
  @GeneratedValue(strategy=GenerationType.AUTO)
  private int id;
  
  @Column(name="title")
  private String title;
  
  @Column(name="description")
  private String description;
  
  @Column(name="date_created")
  @Temporal( TemporalType.TIMESTAMP )
  private Date date_created;
  
  @Column(name="status_id")
  private int status_id;
  
  //private TicketStatus status;
  
  @Column(name="urgency_id")
  private int urgency_id;
  
  @ManyToOne
  @JoinColumn(insertable=false, updatable=false)
  private UserEntity belongs_to;
  
  @ManyToOne
  @JoinColumn(insertable=false, updatable=false) 
  private UserEntity assigned_to;
  </code></pre>
  
  <p><strong>UserEntity.java</strong></p>
  
  <pre><code>@Entity
  @Table(name="user")
  public class UserEntity {
  
  @Id
  @Column(name="user_id")
  @GeneratedValue(strategy=GenerationType.AUTO)
  private int id;
  
  @Column(name="firstname")
  private String firstname;
  
  @Column(name="lastname")
  private String lastname;
  
  @Column(name="username")
  private String username;
  
  @Column(name="email")
  private String email;
  
  @Column(name="password")
  private String password;
  
  @Transient
  private String confirmpassword;
  
  @Column(name="verified")
  private boolean verified;
  
  @Column(name="role_id")
  private int role_id;
  
  @OneToMany(fetch = FetchType.EAGER)
  private List&lt;TicketEntity&gt; tickets;
  </code></pre>
  
  <p>Any help is appreciated,</p>
  
  <p>Thanks!</p>