Good morning Stackoverflow,
I have the problem that it gives me the error:
Failed to create sessionFactory object.org.hibernate.AnnotationExcept
Another possible reasons for this exception to occur is using a non-collection object for
@ManyToMany
and@OneToMany
mappings Or using collection object for @ManyToOne
and @OneToOne
mappings. All examples below are incorrect.
INCORRECT
@ManyToMany
private User user;
@ManyToOne
private User user;
@OneToOne
private List users;
@ManyToOne
private List users;