This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 356
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)
 
 
subject: Using Scalars in Hibernate
 
Similar Threads
how can i join two different table
Three Table/Class Combination Display?
Problem with Hibernate
SQLQuery not working
Hibernate.STRING Type is not working?