Tag: 多数据库预览模式: 普通 | 列表
08-05
08

hibernate中使用多数据库

public   class   HibernateSessionFactory   {  
          private   static   SessionFactory   sessionFactory;  
    
          public   synchronized   static   Session   openSession_db1()   throws   HibernateException   {  
                  if   (sessionFactory   ==   null)   {  
                          init_db1();  
                  }  
                  return   sessionFactory.openSession();  
          }  

查看更多...

Tags: 多数据库

分类:Hibernate | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 621