JPA在这个持久化单元中定义了多个名为…的转换器。

huangapple go评论87阅读模式
英文:

JPA Multiple converters named ... defined in this persistence unit

问题

我刚刚从我的新公司检出了代码。
他们使用了许多相同名称的 @converter 注解。
(org.eclipse.persistence.annotations.Converter)
因此,我有 72 个 JPA 错误:在此持久化单元中定义了多个名为"localDateConverter"的转换器。

看起来对他们来说是有效的,所以我不会改变一切。

我应该将哪些 JPA 验证从错误更改为警告,以使其正常工作?
(我已经到处查找,没有找到类似这种错误的内容)

英文:

I just checked out the code from my new company.
They wrote many @converter annotation with same names.
(org.eclipse.persistence.annotations.Converter)
So I have 72 jpa errors: Multiple converters named "localDateConverter" defined in this persistence unit

It seems to work for them so I won't change everything.

What jpa validation must I put from error to warning to make it work?

(I looked everywhere and didn't find any looking like this error)

答案1

得分: 1

这是在“偏好设置/Java持久性/JPA/EclipseLink/属性/重复转换器名称”中。

英文:

It was in preferences/Java Persistence/JPA/EclipseLink/attribute/Duplicate converter name

huangapple
  • 本文由 发表于 2020年4月8日 20:07:10
  • 转载请务必保留本文链接:https://go.coder-hub.com/61100299.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定