【发布时间】:2023-03-18 16:04:01
【问题描述】:
我正在尝试将我的应用程序从 hibernate 3 迁移到 4,同时我正在使用 Seam 2.2,我收到了编译错误 The type org.hibernate.validator.InvalidValue cannot be resolved. It is indirectly referenced from required .class files。
不知何故,StatusMessages.instance().add 间接引用了休眠。
if(this.acctNum==null || this.acctNum.trim().length()==0) {
StatusMessages.instance().add(StatusMessage.Severity.ERROR, " Please enter an account number");
return null;
}
【问题讨论】: