Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Converter and orm.xml configuration
Converter and orm.xml configuration [message #892184] Wed, 27 June 2012 06:35 Go to next message
Francesco Numeko is currently offline Francesco Numeko
Messages: 2
Registered: June 2012
Junior Member
Hi guys,

I have a problem with custom converter configuration in my orm.xml file.
I've made a DateDimensionConverter.class which implements Converter,
if I use with annotation everything works fine :
@Converter(name="DateDimensionConverter", converterClass=DateDimensionConverter.class)
@Convert("DateDimensionConverter")
private MyClass item;

but if I use it in orm.xml I have this error:
Internal Exception: Exception [EclipseLink-7198] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): org.eclipse.persistence.exceptions.ValidationException
Exception Description: Class: [com.ekovision.persistence.DateDimensionConverter.class] was not found while converting from class names to classes.

this is my orm file:

<package>com.ekovision.persistence</package>
<converter class="com.ekovision.persistence.DateDimensionConverter.class" name="DateDimensionConverter" />


Re: Converter and orm.xml configuration [message #892272 is a reply to message #892184] Wed, 27 June 2012 10:51 Go to previous messageGo to next message
Chris Delahunt is currently offline Chris Delahunt
Messages: 1016
Registered: July 2009
Senior Member
Try not putting the '.class' in the string.

Regards,
Chris
Re: Converter and orm.xml configuration [message #892298 is a reply to message #892272] Wed, 27 June 2012 12:24 Go to previous message
Francesco Numeko is currently offline Francesco Numeko
Messages: 2
Registered: June 2012
Junior Member
Works!
Thanks
Previous Topic:No Persistence provider
Next Topic:Need some help with eclipselink versions
Goto Forum:
  


Current Time: Wed Jul 30 13:11:17 EDT 2014

Powered by FUDForum. Page generated in 0.02240 seconds