facebook

Interpretation of int value 1 in Hibernate query.

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #243468 Reply

    Hi All,

    We are using Eclipse3.1.0 and MyEclipse4.0.0 . We have strange issue while interpreting interger vlaue 1.

    We write a Hibernate query like below

    select count(*) from CrashLog as CL where CL.xingId= 1 Where CL.xingId is int attribute. It is not at all considering value 1. If i put it is in ‘1’ query works with 0 records.Actually in the Database there are records for matching value 1 and not ‘1’.

    There is some issue in eclipse/myeclipse . Please how to resolve it and goahead .

    Really appriciate your suggestions and help.

    Regards
    Sreeni.

    #243471 Reply

    Brian Fernandes
    Moderator

    Sreeni,

    In your previous post: http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-10577-highlight-interpretation+int+value+1.html
    We already stated that this is neither a MyEclipse nor an Eclipse issue.

    Nevertheless, could you tell me where you are executing that query? Are is it within your hibernate applicaton or within our SQL editor?
    Also please post all information requested here: Posting Guidelines

    Best,
    Brian.

    #243527 Reply

    vsnoone
    Member

    post your mapping file for CrashLog

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Interpretation of int value 1 in Hibernate query.

You must be logged in to post in the forum log in