Hibernate有个配置文件,你在里面配置就可以了,在Myeclipse安装好了,有个添加hibernate属性支持的选项,添加后多一个Hibernate的xml配置文件,在里面配置就可以了.
如:
<property name= "connection.driver_class "> com.microsoft.jdbc.sqlserver.SQLServerDriver </property>
<property name= "connection.url "> jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=hnnxbs;SelectMethod=cursor </property>
<property name= "dialect "> org.hibernate.dialect.SQLServerDialect </property>
<property name= "myeclipse.connection.profile "> yjh1104 </property>
<property name= "connection.username "> sa </property>
<property name= "connection.password "> </property>
<property name= "hibernate.show_sql "> true </property>
<property name= "hibernate.jdbc.fetch_size "> 50 </property>
<property name= "hibernate.jdbc.batch_size "> 25 </property>
用户登录
还没有账号?立即注册
用户注册
投稿取消
| 文章分类: |
|
还能输入300字
上传中....
有哥摔过