User declaration:
@Entity public class User { @Id @GeneratedValue private Integer id; ....
Pattern declaration:
<
i think maybe your annotation should be
@ManyToOne(TargetEntity=....class)