This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Using Scalars in Hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Using Scalars in Hibernate" Watch "Using Scalars in Hibernate" New topic
Author

Using Scalars in Hibernate

Naresh Chaurasia
Ranch Hand

Joined: May 18, 2005
Posts: 361
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.

SCJP 1.4, SCWCD1.4, OCA(1Z0-007)
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Using Scalars in Hibernate
 
It's not a secret anymore!