这是错误:
发生 JPA 错误(无法构建 EntityManagerFactory):无法确定类型:java.util.List,在表:问题,列:[org.hibernate.mapping.Column(Choices)]
我不明白我在其他类中使用过列表的错误,但它们与其他类有关系,它们有其他类的类型,但在这里我不明白他为什么看不到列表的类型
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>();
}