Skip to main content



      Home
Home » Eclipse Projects » EclipseLink » What happened in "Query"
What happened in "Query" [message #1027615] Wed, 27 March 2013 03:23 Go to next message
Eclipse UserFriend
Version: eclipselink-2.3.1
Data-base: oracle
Data-base Table A: included a column A1(Type is Char)

I used TypedQuery.getResultList() to query Table A. The result value which corresponding to column A1 lost the right SPACE. However, the right SPACE was not lost when I use Oracle JDBC to query. Anyone met the same problem?
Re: What happened in "Query" [message #1032030 is a reply to message #1027615] Tue, 02 April 2013 09:41 Go to previous messageGo to next message
Eclipse UserFriend
CHAR field spaces are trimmed by default. To disable this set,

session.getLogin().setShouldTrimStrings(false);

Using a SessionCustomizer.
Re: What happened in "Query" [message #1034158 is a reply to message #1032030] Fri, 05 April 2013 00:40 Go to previous message
Eclipse UserFriend
I got it. Thank you very much!
Previous Topic:Unable to read a db table
Next Topic:Eclipselink Query show's different data than resultset
Goto Forum:
  


Current Time: Wed Jul 23 13:24:45 EDT 2025

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

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

Back to the top