playframework未编译类,同时增强

playframework未编译类,同时增强,playframework,Playframework,由于某些原因,我的play eclipse应用程序无法运行引导作业,并引发以下异常。 模型类用户似乎没有编译并存储在tmp/classes目录中。我不确定是什么原因导致我的play eclipse应用程序无法在开发模式下正确编译和生成类。 我们非常感谢任何解决方案 ----更新------- 下面是模型。用户类。这门课似乎引起了一些问题。每次我更改这个类的源代码时,play都无法编译并引发下面的错误 ----------models.User.java----------------------

由于某些原因,我的play eclipse应用程序无法运行引导作业,并引发以下异常。 模型类用户似乎没有编译并存储在tmp/classes目录中。我不确定是什么原因导致我的play eclipse应用程序无法在开发模式下正确编译和生成类。 我们非常感谢任何解决方案

----更新-------

下面是模型。用户类。这门课似乎引起了一些问题。每次我更改这个类的源代码时,play都无法编译并引发下面的错误

----------models.User.java-------------------------

封装模型;
导入java.util.ArrayList;
导入java.util.array;
导入java.util.Date;
导入java.util.List;
导入javax.persistence.CascadeType;
导入javax.persistence.Entity;
导入javax.persistence.FetchType;
导入javax.persistence.manytone;
导入javax.persistence.OneToMany;
导入控制器。安全;
导入控制器.Secure.Security;
导入models.deadbolt.RoleHolder;
导入play.data.binding.As;
导入play.data.validation.CheckWith;
导入play.data.validation.Email;
导入play.data.validation.Equals;
导入play.data.validation.Match;
导入play.data.validation.MinSize;
导入play.data.validation.Password;
导入play.data.validation.Required;
导入play.db.jpa.Model;
导入play.libs.Codec;
导入play.mvc.Scope.renderags;
导入util.UniqueObjectCheck;
@实体
公共类用户扩展模型实现RoleHolder{
私有静态最终长serialVersionUID=1L;
@必需的
公共字符串名;
@必需的
公共字符串lastname;
社会性别;
@作为(“yyyy”)
公布日期dob;
@许多酮
公共国家;
@必需的
@MinSize(8)
@匹配(“^[a-zA-Z0-9\]*$”)
@CheckWith(UniqueUserCheck.class)
公共字符串用户名;
@必需的
@等于(“确认密码”)
@MinSize(8)
@密码
公共字符串密码;
@密码
公共字符串确认密码;
@必需的
@电子邮件
@等于(“确认邮件”)
@CheckWith(UniqueEmailCheck.class)
公共字符串电子邮件;
公共字符串确认邮件;
公共字符串密码哈希;
公共布尔活动;
//@必需的
//@OneToMany(级联=级联类型.ALL)
@多通(级联=级联类型.ALL)
公共用户角色;
/**
* 
*/
公共用户(){
//init();
//如果(角色==null)
//role=newarraylist();
}
公共用户(最终字符串名、最终字符串名、,
最终字符串性别,最终日期yob,最终国家,
最终字符串用户名、最终字符串密码、最终字符串电子邮件){
超级();
this.firstname=firstname;
this.lastname=lastname;
这个。性别=性别;
dob=yob;
这个国家=国家;
this.username=用户名;
this.password=密码;
this.email=电子邮件;
init();
}
公共用户(最终字符串名、最终字符串名、,
最终字符串性别,最终日期yob,最终国家,
最终字符串用户名,最终字符串密码,
最终字符串确认密码、最终字符串电子邮件、,
最终字符串确认邮件){
超级();
this.firstname=firstname;
this.lastname=lastname;
这个。性别=性别;
dob=yob;
这个国家=国家;
this.username=用户名;
this.password=密码;
this.confirmPassword=confirmPassword;
this.email=电子邮件;
this.confirmEmail=confirmEmail;
init();
}
公共用户(最终字符串电子邮件、最终字符串密码){
if(email==null | | email.isEmpty())
抛出新的RuntimeException(“用户必须有电子邮件”);
if(password==null | | email.isEmpty())
抛出新的RuntimeException(“用户必须有密码”);
this.email=电子邮件;
//init();
}
私有void init(){
passwordHash=Codec.hexMD5(密码);
//BCrypt.hashpw(密码,BCrypt.gensalt(saltFactor));
}
public void addRole(字符串名称){
if(name==null | | name.isEmpty())
返回;
if(角色(名称)){
System.out.println(“用户已具有角色:“+name”);
返回;
}
这是save();
新用户角色(此,名称).save();
这是save();
System.out.println(“添加的用户角色:“+name”);
}
公共密码(最终字符串密码){
passwordHash=Codec.hexMD5(密码);
//BCrypt.hashpw(密码,BCrypt.gensalt(saltFactor));
}
公共布尔校验密码(最终字符串明文密码){
//BCrypt.checkpw(明文密码、密码哈希);
//System.out.println(Codec.hexMD5(明文密码));
返回Codec.hexMD5(明文密码).equals(密码哈希);
}
公共静态用户getUserByEmail(最终字符串电子邮件){
返回User.find(“通过电子邮件”,email).first();
}
公共静态用户getByUserName(字符串用户名){
返回find(“byUserName”,userName).first();
}

public List看起来您的代码没有编译,您正在尝试以prod模式启动。 在项目中运行播放eclipsify,然后在eclipse中重新导入它。
解决任何可能的编译错误。
阿尔索