-->
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.  [ 3 posts ] 
Author Message
 Post subject: Can Hibernate be used with SQLJ ?
PostPosted: Thu Jun 15, 2006 4:52 am 
Newbie

Joined: Thu Jun 15, 2006 1:30 am
Posts: 2
Location: Chennai
I am new to Hibernate.
We are using SQLJ to access data from a DB2 database in our project.

Can we use Hibernate to get the data using the #sql context object (SQLJ) ?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 15, 2006 11:28 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
No I don't think so (not easily at least) - SQLJ is a technology that normally *hard* couples (even though it promises otherwise) your code to the underlying database, mainly because it is a very intrusive tech.

Anyway, if you "just" want Hibernate to execute queries through you a sql context and that sql context can provide a connection then write a ConnectionProvider that returns that to it.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 16, 2006 12:01 am 
Newbie

Joined: Thu Jun 15, 2006 1:30 am
Posts: 2
Location: Chennai
Dear max,
Thanks for your reply.

you said..

'Anyway, if you "just" want Hibernate to execute queries through you a sql context and that sql context can provide a connection then write a ConnectionProvider that returns that to it.'

Can you please explain this " write a ConnectionProvider that returns that to it" ?


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

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.