这是错误:
发生JPA错误(无法构建EntityManagerFactory):无法确定类型:java.util.List,在表:问题,对于列:[org.hibernate.mapping.Column(Choices)]
我无法理解我在其他类中使用过列表的错误但是他们与其他类有关系,他们有其他类的类型但是在这里我不明白他为什么不看到列表的类型< / p>
package models;
import play.*;
import play.db.jpa.*;
import javax.persistence.*;
import java.lang.reflect.Array;
import java.util.*;
@Entity
public class Question extends Model{
public String theQuestion;
public int marks;
public List<String> Choices;
@ManyToOne
@JoinTable (name="questionInEexercise")
public Exercise myExercise;
public Question(String question,int marks,long Eid){
this.theQuestion = question;
this.marks = marks;
this.myExercise = Exercise.findById(Eid);
Choices = new ArrayList<String>();
}