hibernate可以使用Access作数据库吗? 可以使用的你这是使用的JDBC-ODBC桥你选的方言是 dialect=org.hibernate.dialect.SQLServerDialect吗?看看数据源的连接本身有没有问题 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我是使用的jdbc-odbc桥。miaoliujun(傲龙) 你说的是什么意思啊?dialect=org.hibernate.dialect.SQLServerDialect这个不是SQLserver的方言吗。我的Access的连接如下<property name="dialect">org.hibernate.dialect.HSQLDialect</property><property name="connection.driver_class">sun.jdbc.odbc.JdbcOdbcDriver</property><property name="connection.url">jdbc:odbc:test</property><property name="connection.username">sa</property><property name="connection.password"></property>如果只改方言的话<property name="dialect">org.hibernate.dialect.SQLServerDialect</property>错误信息不变。该如何修改阿? <hibernate-configuration> <session-factory > <!-- local connection properties --> <property name="hibernate.connection.url">jdbc:odbc:access</property> <property name="hibernate.connection.driver_class">sun.jdbc.odbc.JdbcOdbcDriver</property> <property name="hibernate.connection.username"></property> <property name="hibernate.connection.password"></property> <!-- property name="hibernate.connection.pool_size"></property --> <property name="dialect">net.sf.hibernate.dialect.GenericDialect</property> <property name="hibernate.show_sql">true</property> <property name="hibernate.use_outer_join">true</property> <mapping resource = "haier/cn/bo/Admin.hbm.xml"/> <mapping resource = "hibernate/cn/bo/HibernateUserRegister.hbm.xml"/> <mapping resource = "hibernate/cn/bo/HibernateBook.hbm.xml"/> </session-factory></hibernate-configuration> $.each方法中的变量怎么不可用? tomcat 如何整和JBOSS 问一个hql的写法 急!!!大神们速来帮忙 String+Hibernate配置数据源超过最大练剑数 hibernate 简单问题,请教各位高手(在线等!!!!!) 在JSP中显示中文的出错? 请问关于struts的一个问题 大侠帮忙 javabean 与EJB 有多大的关系?? final问题 求助:哪里有mysql jdbc驱动程序下载 哪位有空讲一下ejb,远程接口,home接口,企业bean,这间是怎么调用的?
miaoliujun(傲龙) 你说的是什么意思啊?dialect=org.hibernate.dialect.SQLServerDialect
这个不是SQLserver的方言吗。我的Access的连接如下
<property name="dialect">org.hibernate.dialect.HSQLDialect</property>
<property name="connection.driver_class">sun.jdbc.odbc.JdbcOdbcDriver</property>
<property name="connection.url">jdbc:odbc:test</property>
<property name="connection.username">sa</property>
<property name="connection.password"></property>如果只改方言的话
<property name="dialect">org.hibernate.dialect.SQLServerDialect</property>
错误信息不变。该如何修改阿?
<session-factory > <!-- local connection properties -->
<property name="hibernate.connection.url">jdbc:odbc:access</property>
<property name="hibernate.connection.driver_class">sun.jdbc.odbc.JdbcOdbcDriver</property>
<property name="hibernate.connection.username"></property>
<property name="hibernate.connection.password"></property>
<!-- property name="hibernate.connection.pool_size"></property --> <property name="dialect">net.sf.hibernate.dialect.GenericDialect</property>
<property name="hibernate.show_sql">true</property>
<property name="hibernate.use_outer_join">true</property>
<mapping resource = "haier/cn/bo/Admin.hbm.xml"/>
<mapping resource = "hibernate/cn/bo/HibernateUserRegister.hbm.xml"/>
<mapping resource = "hibernate/cn/bo/HibernateBook.hbm.xml"/>
</session-factory>
</hibernate-configuration>