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 10:35 Go to next message
Francesco Numeko is currently offline Francesco NumekoFriend
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 14:51 Go to previous messageGo to next message
Chris Delahunt is currently offline Chris DelahuntFriend
Messages: 1039
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 16:24 Go to previous message
Francesco Numeko is currently offline Francesco NumekoFriend
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: Sat Nov 29 03:51:51 GMT 2014

Powered by FUDForum. Page generated in 0.01531 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software