org.hibernate.MappingException: Could not determine type for: java.util.Set, at table: USERS, for columns: [org.hibernate.mapping.Column(invoices)]
问题 I have a problem that Hibernate is unable to determine the type for Set at the table USERS. I am trying to create a foreign key of table INVOICES through one-to-many relationship. One User can generate many Invoices. My User.java is given below. @Entity @Table(name="USERS") public class User { @Id @Column(name="User_Id",nullable=false) @GeneratedValue(strategy=GenerationType.AUTO) private Integer user_id; @Column(name="NAME") private String name; @Column(name="Address") private String address