没试过,但我想hibernate最终也是通过jdbc来访问数据库的
把connection.driver_class设置成sun.jdbc.odbc.JdbcOdbcDriver
connection.url设为jdbc:odbc:XXXX应该就差不多了吧
把connection.driver_class设置成sun.jdbc.odbc.JdbcOdbcDriver
connection.url设为jdbc:odbc:XXXX应该就差不多了吧
解决方案 »
- Url内方法大小写问题
- 关于JAVA软件
- [求教]一直很困惑的RPC和WebService的区别和联系?请朋友们帮忙理理。
- 容器外调用tomcat的数据源问题
- 求教status的用法
- 哪位能提供linux 下X11、Xlib、jrockit jvm console的终极解决办法?
- 如果把ejb和web项目连接起来
- 从JSP跳转到Servlet的路径应该怎么设置?
- Apache Soap上为何一个简单的服务都不能部署 【求助】
- EJB定位器问题!?
- 初学者的struts问题..提示can not resolve symbol:class MessageResourses
- 对hibernate有研究者请进
ACCESS不在其中哦
Please click "Edit this page" and share your experiences!Hibernate is regularly tested with the following SQL databases:DB2 7.1, 7.2, 8.1
MySQL 3.23, 4.0, 4.1
PostgreSQL 7.1.2, 7.2, 7.3, 7.4
Oracle 8i, 9i, 10g
Sybase 12.5 (JConnect 5.5)
HypersonicSQL 1.61, 1.7.0, 1.7.2, 1.8
Microsoft SQL Server 2000
SAP DB 7.3
HSQL DB
Hibernate has also been tested with and is believed to be compatible with current versions of:Apache Derby
Informix
Ingres
FrontBase
Mckoi SQL
Firebird (1.5 with JayBird 1.01 tested)
Interbase (6.0.1 tested)
Progress 9
Pointbase Embedded (4.3 tested)
HP NonStop SQL/MX 2.0 (requires Dialect from HP)
It is highly likely that most features of Hibernate (i.e. everything except DDL schema generation) will work perfectly with many other relational databases. You may easily add a new SQL dialect by extending the existing dialects. Keep in mind that some features of the query language are not supported for databases which do not have subqueries.
这是个嵌入式的数据库,就一个jar文件,不需要安装数据库服务器,很方便的
<session-factory name="java:/hibernate/HibernateFactory">
<property name="show_sql">true</property>
<property name="connection.driver_class">
sun.jdbc.odbc.JdbcOdbcDriver
</property>
<property name="connection.url">
jdbc:odbc:Test
</property>
<property name="connection.username">
wei
</property>
<property name="connection.password">
wei
</property>
<property name="dialect">
org.hibernate.dialect.GenericDialect
</property>
<mapping resource="Customer.hbm.xml" />
</session-factory>
</hibernate-configuration>