Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] problem/misunderstanding with converters

Hi,

You'll need to add to your mapping.

@Convert("logicalConverter")
This tells your mapping to use the converter. 

Cheers,
Guy

On 26/10/2011 10:26 AM, Reinhard Mantey wrote:
Hello,

thank you very much for your assistance!

Guy Pelletier wrote:
  Did you try?

       @ConversionValue(dataValue="N", objectValue="false"),
       @ConversionValue(dataValue="Y", objectValue="true")}

Probably, but as I was't sure, I tested it now.
OK, no exception, but no conversion either.
It is silently ignored, like @TypeConversion


I had to remark, that I'm using entities from plugins. The plugin where the 
entity files live is an eclipse plugin.
For ease of usage, I have jpa-project, which uses the plugin as referenced 
project. So may be, its an issue of weaving ...
... but as written in my first post: conversion from date to long works.


kind regards

Gero


Back to the top