在线158人
首页
主题表
培训咨询
标签
精华
查搜
注册
登陆
用户
自动登陆
密码
新用户注册
忘记密码?
首页
»
论坛
»
J2EE/JavaEE/JEE/EJB/JSF等技术讨论
上一主题
寻MYSQL 的JDBC驱动jar?版本MYSQL4.0.14 用的驱动是什么型号呀?哪下载/??
下一主题
有这方面的资料或经验吗?! 3ks
Go
共有
4
回复 /
1
页
前往下页:
guozt
悄悄话
发表文章: 4
注册时间: 2003年08月28日 12:07
请教:在hibernate应用中,使用hibernate.cfg.xml的方式进行配置;SessionFactory 如何取得。
2003年08月28日 12:11
同上。
magician
悄悄话
发表文章: 27
注册时间: 2003年05月23日 17:32
Re: 请教:在hibernate应用中,使用hibernate.cfg.xml的方式进行配置;SessionFactory 如何取得。
2003年08月28日 12:21
SessionFactory sf = new Configuration().configure().buildSessionFactory();
/reference/html/session-configuration.html#session-configuration-s6
guozt
悄悄话
发表文章: 4
注册时间: 2003年08月28日 12:07
Re: 请教:在hibernate应用中,使用hibernate.cfg.xml的方式进行配置;SessionFactory 如何取得。
2003年08月28日 12:41
null
guozt
悄悄话
发表文章: 4
注册时间: 2003年08月28日 12:07
我用的hibernate-1.2。构造器 cirrus.hibernate.cfg.Configuration() 不可视
2003年08月28日 12:42
null
penglq
悄悄话
发表文章: 1
注册时间: 2003年08月28日 16:54
Re: 我用的hibernate-1.2。构造器 cirrus.hibernate.cfg.Configuration() 不可视
2003年08月28日 17:00
如果用war包的话,使用
Configuration configuration = null;
java.net.URL configFileURL = null;
java.io.InputStream is = null;
String _configFilePath = "/hibernate.cfg.xml";
InputStream is =
Hibernate
SessionFactory.class.getResourceAsStream(_configFilePath);
configuration = (new Configuration()).addInputStream(is).configure();
sf = configuration.buildSessionFactory();
共有
4
回复 /
1
页
Go
上一主题
返回本主题
返回主题列表
返回页首
下一主题
热点TAG:
正在读取,请等待...
Wowzio
grab this
·
technology
blog
查询本论坛内
近一天
近三天
近一周
近一月
近三月
近半年
近一年
所有
回复超过
的热门帖子
标题
内容
提交时自动拷贝以上内容到剪贴板 Ctrl-V可取出;提问题前先查询
标签列表
解惑之道在
J道
,打造中国最具影响力的的企业软件社区
推荐Chrome快速浏览本站
OpenSource
JIVEJDON
v3.5
Powered by
JdonFramework
Code © 2002-09
jdon.com
anti spam