Hi,
Thanks for your reply.
I know it will work perfectly if I change char data type to varchar datatype.
But i cannot do that, we are using char data type in lot of tables.
I tested char[] too but no luck.
If I execute the query like a normal sql it will work perfectly.
I am using the following code.
Connection connection = session.connection();
PreparedStatement preparedStatement = connection.prepareStatement("Select UserId from USER");
ResultSet resultSet = preparedStatement.executeQuery();
Thanks,
Jithesh
|