x龙时代全文下载:Hibernate 的SessionFactory问题
来源:百度文库 编辑:高校问答 时间:2024/05/09 08:14:36
在Hibernate里,我一写
“SessionFactory sf = new Configuration().configure().buildSessionFactory();”
在Configuration处 就提示我“Cannot instantiate the type Configuration”
在configure处 就提示我 “The method configure() is undefined for the type Configuration”
这是什么原因呢?
谢谢
“SessionFactory sf = new Configuration().configure().buildSessionFactory();”
在Configuration处 就提示我“Cannot instantiate the type Configuration”
在configure处 就提示我 “The method configure() is undefined for the type Configuration”
这是什么原因呢?
谢谢
Configuration cfg = new Configuration();
cfg.configure(CONFIG_FILE_LOCATION);////////CONFIG_FILE_LOCATION
sf= cfg.buildSessionFactory();
没有指定类型。
请问怎么解决的
我也出现了同样的问题