org.hibernate.hql.ast.QuerySyntaxException: Category is not mapped [from Category where parent is null]
原因是使用注解,改变了实体的名称
@Entity(name="MZ_GAME_CATEGORY")
public class Category{
}
应该这样来定义实体
@Entity
@Table(name="MZ_GAME_CATEGORY")
public class Category{
}