【发布时间】:2013-01-03 08:35:41
【问题描述】:
我在 WAS 6.1(通过 WID 6.1)上安装了一个应用程序,并在运行该应用程序时出现以下异常。
原因:org.apache.openjpa.util.MetaDataException:类声明生成器名称“system-uuid”,但使用 AUTO 生成类型。 AUTO 下唯一有效的生成器名称是“uuid-hex”和“uuid-string”。
我已更改数据库,但问题仍然存在。该类确实将Authorization_ID 声明为System-UUID,但它在WAS7 中运行良好。请提供您的 cmets。这是该类的sn-p:
@Id
@GeneratedValue(generator="system-uuid")
@GenericGenerator(name="system-uuid", strategy="uuid")
@javax.persistence.Column(name="AUTHORIZATION_ID")
@XmlID
@XmlAttribute
public String getKey() {
return this.key;
}
public void setKey(String key) {
this.key = key;
}
【问题讨论】:
-
最好的办法是向 IBM 提交 PMR ...
-
您在使用 WAS 6.1 EJB 3.0 功能包吗? (为了获得 JPA 支持)
标签: java jpa websphere websphere-6.1