用myEclipse自动生成的HibernateSessionFactory中ThreadLocal出错了,这是为什么,是不是导包没导进啊,苦恼中~

解决方案 »

  1.   

    此回复为自动发出,仅用于显示而已,并无任何其他特殊作用
    楼主截止到2008-06-22 09:56:41的汇总数据:
    注册日期:2008-5-20
    上次登录:2008-6-22
    发帖数:1                  发帖分:20                 
    结贴数:0                  结贴分:0                  
    结贴率:0.00 %        结分率:0.00 %        
    如何结贴请参考这里:http://topic.csdn.net/u/20080501/09/ef7ba1b3-6466-49f6-9d92-36fe6d471dd1.html
      

  2.   

    你肯定要导入包
    才可以用session工厂啊
      

  3.   

    我导了msbase.jar,msmysqlserver.jar,msutil,jar,这三包是连接数据库时的
    可自动生成的hibernateSessionFactory中ThreadLoca出错了
    问一下,还需要导什么包,或是该怎么解决呢,先谢啦
      

  4.   

    private static final ThreadLocal<Session> threadLocal = new ThreadLocal<Session>();
    这一行提示
    multiple es at this line
    the type ThreadLocal is not generic;it connot be parameterized with arguments<Session>
    the type ThreadLocal is not generic;it connot be parameterized with arguments<Session>