| 
					
						 Hi All,
 
 Greetings!
 
 Could anybody tell that how to make mapping file for follwing problem:--
 
 
 There Are two Classes:--
 
 1.UserDetailsBean
                         Properties:- Id(int),username(string)
       
 
 2.NewLoginForm
                        Properties :- mdn(string),status(string)
 
 Now all the four fileds available in one table named as "Login".
 
 Table Login:
 
 id number
 username varchar(20)
 mdn varchar(20)
 status varchar(20)
 
 
 Now i want to execute the query as
 sql query==>:-select status from login where username='x1' and mdn='x2';
 
 hibernate query:==>List crit1=session.createCriteria(NewLoginForm.class).setProjection(Projections.property("status") .add(Restrictions.eq("mdn",mdn)) .add(Restrictions.eq("username",username)).list();
 
 could anybody plz tell me mapping for above problem as sooooon as possible.
 
 Thanks In Advanced.
 
 With regards
 
 Saurav Jain 
											 _________________ I Really want to share my knowledge and learn from you all people specaily about Hibernate.. Thanks Lot
					
  
						
					 |