英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论