Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Discriminator value and char trimming problem
Discriminator value and char trimming problem [message #652392] Thu, 03 February 2011 12:51 Go to next message
Massimo Ugues is currently offline Massimo Ugues
Messages: 10
Registered: January 2011
Junior Member
Hallo all.
I have this strange issue with eclipse link version 2.1.2.

It is described here

I changed the bind variable to false and all work great, but I cannot since this is a technical requirement for performance.

Is there any other way?

Kind regards
Massimo
Re: Discriminator value and char trimming problem [message #652557 is a reply to message #652392] Fri, 04 February 2011 09:22 Go to previous message
Chris Delahunt is currently offline Chris Delahunt
Messages: 1016
Registered: July 2009
Senior Member
hello Massimo,

As James replied, a solution is to disable char trimming in EclipseLink, using the session.getLogin().setShouldTrimStrings(false);
in a session customizer:
<property name="eclipselink.session.customizer" value="yourclassImplementingSessionCustomizer"/>

You will then be able to use "1 " without EclipseLink trimming the extra white space.

Best Regards,
Chris
Previous Topic:Discriminator and caching
Next Topic:@NamedStoredProcedureQuery & Out Parameter:
Goto Forum:
  


Current Time: Fri Aug 01 20:34:14 EDT 2014

Powered by FUDForum. Page generated in 0.11264 seconds