File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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 agree. Here's the link:
subject: Using Scalars in Hibernate
It's not a secret anymore!