Skip to main content

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 17:51 Go to next message
Massimo Ugues is currently offline Massimo UguesFriend
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
Re: Discriminator value and char trimming problem [message #652557 is a reply to message #652392] Fri, 04 February 2011 14:22 Go to previous message
Chris Delahunt is currently offline Chris DelahuntFriend
Messages: 1300
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,
Previous Topic:Discriminator and caching
Next Topic:@NamedStoredProcedureQuery & Out Parameter:
Goto Forum:

Current Time: Tue Jun 19 01:15:24 GMT 2018

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

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

Back to the top