我使用play framework!但是,当我跑我的项目,它给我这个org.hibernate.exception.SQLGrammarException:无法执行查询
org.hibernate.exception.SQLGrammarException:无法执行查询
谁可以帮我?
这是我的模型:
package models;
import java.util.*;
import javax.persistence.*;
import play.db.jpa.*;
import play.db.jpa.Model;
@Entity
@Table(name="GxkAccount")
public class GxkAccount extends Model {
private String Account;
private String Psw;
public String getAccount() {
return Account;
}
public void setAccount(String account) {
Account = account;
}
public String getPsw() {
return Psw;
}
public void setPsw(String psw) {
Psw = psw;
}
public static List<GxkAccount> GetList()
{
List<GxkAccount> infoList=GxkAccount.findAll();
return infoList;
}
}
请分享完整的例外讯息。如果你可以拥有由Hibernate生成的实际查询,那就太好了。 – 2010-11-03 03:42:30