Microsoft Access
using
InfoZoom JDBC driver.
I hope it will be of some use. I do NOT claim that this will work in general; it just works for my current applications.
___________________________________________________________________________
in hibernate.properties I added:
- ## MSAccess
- hibernate.dialect cirrus.hibernate.sql.MSAccessDialect
- hibernate.connection.driver_class com.inzoom.jdbcado.Driver
- hibernate.connection.url jdbc:izmado:IzmDllPath=E:\\cvs_out\\teamwork\\html\\WEB-INF\\lib\\IzmJniAdo.dll;Provider=MSDASQL;Driver={Microsoft Access Driver (*.mdb)};Dbq=e:\\cvs_out\\teamwork\\data\\teamwork_ol.mdb
- hibernate.connection.username admin
- hibernate.connection.password
- hibernate.dialect cirrus.hibernate.sql.MSAccessDialect
actually in my projects infozoom driver works also with hibernate on sql server.
___________________________________________________________________________
the dialect class
public class MSAccessDialect extends Dialect {
public boolean supportsIdentityColumns() {
}
public String getIdentitySelectString() {
return "select @@identity";
}
public String getIdentityColumnString() {
return "IDENTITY NOT NULL";
}
}
- in order to make SchemaUpdater work I had to add in method "execute":
connection.commit();
before
connection.close();
I will test it more in the near future. bye, peterpumpkin
