-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Under the covers: Hibernate fetching RAW Oracle column
PostPosted: Thu Jan 02, 2014 12:01 pm 
Newbie

Joined: Thu Jan 02, 2014 11:56 am
Posts: 1
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.