我们正在将Play框架应用程序从2.3.10升级到2.4.8,并在此基础上从Ebean 3.x升级到4.6.2。
我现在看到了编译错误,指出一些javax.persistence注释缺少字段。两个版本的Ebean都依赖于javax.persistence的1.0版本。
奇怪的是,IntelliJ显示注释缺少可选元素,但注释的Javadoc提到了可选元素。注意,编译也会在
例如,下面是IntelliJ为javax.persistence.UniqueConstraint显示的源代码
/**
* This annotation is used to specify that a unique constraint
* is to be included in the generated DDL for a primary or secondary table.
*
* <pre>
* Example:
* @Entity
* @Table(
* name="EMPLOYEE",
* uniqueConstraints=
* @UniqueConstraint(columnNames={"EMP_ID", "EMP_NAME"})
* )
* public class Employee { ... }
* </pre>
*
* @since Java Persistence 1.0
*/
@Target({TYPE})
@Retention(RUNTIME)
public @interface UniqueConstraint {
/** (Required) An array of the column names that make up the constraint. */
String[] columnNames();
}https://stackoverflow.com/questions/38453414
复制相似问题