问题描述
我在用户模型上使用了@UniqueConstraint
注释:
@Table(
name = "users",uniqueConstraints = @UniqueConstraint(
columnNames = { "building_id","pin" }
)
)
此模型是Java 13中Play Framework 2.7项目的一部分。
当我要构建项目时,出现错误:
[error] /app/models/common/User.java:25:27: Array constants have to be specified using the `Array(...)' factory method
[error] uniqueConstraints = @UniqueConstraint(
[error] ^
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)