Community
Participate
Working Groups
If you define the same converter in multiple locations in your object model you get a validation error saying that they are duplicate. EclipseLink only says they are duplicate if the definition is actually different. So if it is a different type of converter or the converter class that it points to is different. We need to loosen up our validation for this case. @Converter( name="booleanConverter", converter=BooleanConverter.class) Workaround is to remove the converter definition from all locations in the java source and define it instead in the persistence unit defaults of an orm.xml file.
Created attachment 205237 [details] Proposed Patch The validation works as the following: 1. No message is given with identical converters 2. An information message is given with identical generators and queries. The message says something like Identical ... defined in this persistence unit, which may not be portable
Created attachment 205677 [details] Proposed Patch Added comments to the validation methods
Patch applied to head.