我已经在玩游戏一个星期了,发现了这个奇怪的问题:
每次我更改实体中的任何内容时,使用该实体的所有 View 都会开始出现这样的错误:
value getId is not a member of models.UserData
@Entity
public class UserData extends Model {
@Id
@Constraints.Min(10)
public Long id;
@Constraints.Required
public String name;
@Constraints.Required
public String email;
....
}
最佳答案
问题在于,get方法是在 View 之后生成的,正确的方法是直接使用属性而不是get方法
关于compiler-errors - Play Framework [2.0]-更改模型破坏了我的见解,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9821950/
相关文章:
c++ - 使用Visual Studio Express和SDL2在Windows中破坏了SDL_
c++ - 如何在 Windows XP 上正确安装 ffmpeg?
c# - 如何在ce中创建空数据库并用datagridview显示
android - 无法在 android opencv 2.3 中导入 ml.h
android - 在Eclipse上调试Android应用时出错
visual-studio-2010 - Visual Studio 2010 C++发行模式问题