This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using Scalars in Hibernate

 
Naresh Chaurasia
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to execute SQL in hibernate with the query given below, where qStr is string below



I perform the following operation.



I am not getting the correct values of the columns issu.instr_id, issu.iss_typ, but instead i only get
the first characters of the column.

Now if i use addScalar and execute the following code , I get the correct output. Not sure
why it is happening

Using scalar



Any suggestions will be appreciated.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic