| 
   JSF Hibernate Integration  
    
   
JSF  integration with Hibernate is a piece of cake. The JSF baking/managed beans are POJO's so it is possibe to direcly map the baking beans properties on the data base using hibernate maping. 
  Code of: hinernate.cnf 
  
    
  Hibernate Mapping File : SignUp.hbm  
  
    
   
  Persistance POJO class: SignUp.java  
  Note : SignUp.java is also used as baking bean for SignUp.jsp view . 
  The JSF and Hibernate Integration is don in  Baking bean's method processSubmit() through SignUpBOimpl Object . 
  Following is the code for SignUp.java  
  
    
     
    
     
  Source Code for Untility Class: HibernateUtil.java  
       
      
      
      
       
       
    Persistance logic is seperated through DAO pattern .Following is the code for login & SignUp DAO's 
   Code for LoginDAO.java  
     
  
  Code for SignUpDAO 
  
   Login Business Logic is seperated through BO pattern.Following is the code for Logic and SignUp BO's .Interfaces are used to provode the loose coupling  
  Code for iLoginBO interface  
  
   Code for LoginBOimpl this calss implements the iLoginBO interface 
  
  Code for iSignUpBO interface  
  
  Code for SignBOimpl  
  
    
    
    
       
   
       
   
   
    
    
    
    
    
    
    
    
    
    
     
    
    
    
    
    
    
    
    
    
     
    For technical support please contact me at murali@javamission.com 
   |