How to map custom collection in JPA?
问题 I have problems in mapping custom collection with JPA (Hiberante provider). For example when I am using object with attribute List<Match> matches; with <one-to-many name="matches"> <cascade> <cascade-all /> </cascade> </one-to-many> in my ORM file, it is allright; But if I replace "List matches;" by private Matches matches; ,where "Matches" is defined like: public class Matches extends ArrayList<Match> { private static final long serialVersionUID = 1L; } It produces following error: Caused by