I seem to have problems with mapping a List in Hibernate. In our project there a class Card with contains a class Answer with Answer c
Card
Answer
Use @ElementCollection:
@ElementCollection
@ElementCollection @CollectionTable(name="Nicknames", joinColumns=@JoinColumn(name="user_id")) @Column(name="nickname") public List getNicknames() { ... }
Source: 7.2.3. Collections of basic types and embeddable objects