private Map<Integer,List<ProgramCourse>>映射,其中ProgramCourse是我的项目中的一个域类,上面的映射是我的域类程序的一个字段,当我运行该项目时,会出现异常。
针对未映射类的@OneToMany或@ManyToMany的使用: com.sparshsoft.drps.domain.Program.programSchemejava.util.List
发布于 2011-01-18 13:35:52
JPA不支持嵌套集合。您需要将其更改为更简单的数据结构,在get/set方法中对其进行初始化,或者创建一个定义关系的对象。
看,http://en.wikibooks.org/wiki/Java_Persistence/Relationships#Nested_Collections.2C_Maps_and_Matrices
https://stackoverflow.com/questions/4724391
复制相似问题