-->
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.  [ 2 posts ] 
Author Message
 Post subject: how to use db2 function in the HQL
PostPosted: Wed May 31, 2006 11:34 am 
Newbie

Joined: Wed May 31, 2006 11:30 am
Posts: 1
hello

i am newbie to hibernate, now i am choosing a solution for my project, in this project, it use db2 function in the sql clause as follow:

insert into idstool.access(userid,node,password) values('userid','nodename',encrypt('password','nodename'));


i wonder if i can implement such function by using hibernate, that is if hibrenate can use the db2 function, or user-defined sql functions? if yes, how?


thanks for any helps


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 31, 2006 11:57 am 
Beginner
Beginner

Joined: Tue May 30, 2006 6:03 am
Posts: 20
Location: London
you can execute raw sql by calling createSqlQuery on the hibernate session - this should allow you to do what you're looking for, but test it first as it depends on whether the driver supports it


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.