Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Converter annotation: how do I use more than one?

Hi Laird,

  Here's the existing enhancement request:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=282773

  Please feel free to add any suggestions and to vote for the issue.

At the moment, your options are to specify the converters on the fields or properties of a class, or to place them on different classes.

-Tom

Laird Nelson wrote:
I need to reference two different converters for a given class.

@Converter may apparently only appear once on the class.

Furthermore, although it is placed at the TYPE level, it actually applies to the package (?!).

There is no @Converters annotation that would group individual @Converter instances.

Is it best practice to simply spray my two @Converter annotations over random classes in my package, since after all they really apply at the package, not the class, level?

Thanks,
Laird


------------------------------------------------------------------------

_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users


Back to the top