aspose file tools*
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: 357
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: Using Scalars in Hibernate