http://www.roseindia.net
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Please visit our lastest forum and start dicussing the topics
»SELECT CLAUSE BY PARAMETERS

 
Post new topic   Reply to topic    http://www.roseindia.net Forum Index -> Hibernate
View previous topic :: View next topic  
Author Message
borugadda007



Joined: 02 Dec 2006
Posts: 2

PostPosted: Sat Dec 02, 2006 5:06 am    Post subject: SELECT CLAUSE BY PARAMETERS Reply with quote

Hi All
Iam new to Hibernet.I need ur s help..........

From java i have to retrieve data from data base using HIbernet.I have to pass parameter in java.That parameter in Where clause.Suppose my Parameter is "MR35" .....So ...where='MR35'.

Table name is :DOCCTRLNUMBER

Fields:
Type:MR35
Format:yyyymmddnnnn

Java....

public String getDocNo(String type)
{


return type
}
return type is type+format menas......MR35200612020001
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    http://www.roseindia.net Forum Index -> Hibernate All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group