Hi
I was wondering if anybody can tell me how Hibernate/JPA would read data 'under the covers' in the following situation. i.e. I need to know what JDBC call Hibernate would be using. We are having problems with two different systems trying to read the same database and having different results. One uses Hibernate and JPA, and one just plain old JDBC.
The column type is Oracle's RAW datatype. In the plain JDBC system we use the following to get the data:
rs.getBytes();
This is stored in a byte[] field.
The system that uses JPA simply declares the following in the model object:
@Column(name = "SPEEDY_REG_CODE") private byte[] speedyRegistrationCode;
So in this case, what would be called to read the data? I had assumed getBytes() but perhaps its something different which may explain the problems I'm getting.
Thanks Matt
|