Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #28219

Hibernate query - field length, pulling wrong record

Newsgroups comp.lang.java.programmer
Date 2014-04-24 12:07 -0700
Message-ID <ea386973-8a1f-416d-a816-0b0b88f43196@googlegroups.com> (permalink)
Subject Hibernate query - field length, pulling wrong record
From getdgbmail@gmail.com

Show all headers | View raw


I am using a Hibernate query in JAVA to retrieve data from an iSeries file.  The field length of fieldName in my query WHERE clause is 4 long. There is a record in the file with a field name of BLUE.  When I run the query using BLUE_GREEN, this record is selected.  BLUE_GREEN is not BLUE, so I don't want this field to be selected.  Why is this happening? 



WHERE
   fieldName = :fieldName

Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Hibernate query - field length, pulling wrong record getdgbmail@gmail.com - 2014-04-24 12:07 -0700
  Re: Hibernate query - field length, pulling wrong record Josip Almasi <joe@vrspace.org> - 2014-04-25 10:44 +0200

csiph-web