-->
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.  [ 4 posts ] 
Author Message
 Post subject: How to use password() of mysql in Spring+Hibernate?
PostPosted: Mon Dec 20, 2004 2:23 am 
Newbie

Joined: Sun Dec 19, 2004 10:26 pm
Posts: 2
Hi,
For example, to use JDBC,the sql is "insert into tt_user (user_name,password) values('kavin',Password('kavin'))",
but how can I do in Spring+Hibernate,since I want to encrpt the field of password.

Thanks in advance
Kavin


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 20, 2004 2:37 am 
Regular
Regular

Joined: Fri Nov 12, 2004 12:07 am
Posts: 57
Location: Beijing,China
Hibernate supports native function for each DB,you should have a look on hibernate reference.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 20, 2004 4:34 am 
Newbie

Joined: Sun Dec 19, 2004 10:26 pm
Posts: 2
Section 9.3.6 of Hibernate Reference Documentation refers Queries in native SQL,but I want to "insert" or "update" in native SQL.
Any one can help me?
Thank you in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 20, 2004 4:50 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Thats what SQL and JDBC are used for, not Hibernate: session.connection().prepareStatement()...


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