Hi,
I think you have bad id generation mode in Class mappings..
Instead of:
Quote:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="events.Event" table="EVENTS">
<id name="id" column="EVENT_ID">
<generator class="native"/>
</id>
<property name="date" type="timestamp" column="EVENT_DATE"/>
<property name="title"/>
</class>
</hibernate-mapping>
use:
Quote:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="events.Event" table="EVENTS">
<id name="id" column="EVENT_ID">
<generator class="increment"/>
</id>
<property name="date" type="timestamp" column="EVENT_DATE"/>
<property name="title"/>
</class>
</hibernate-mapping>
You have to post more info about your problem, eg. mappings, use in code etc....
About MS Access, I found commercial driver, google HXTT... For free you can use default Java JDBC-ODBC driver, it connects and communicates, but has wrong SQL syntax, so you need another Dialect.. Next I found SQLServer dialect in Hibernate3.jar, but it does not work too.. :(
PS: I dont understand people from hibernate.. Why they release tutorials which dont work? I was solving "id generation" problem for at least 2 hours, was finding bad syntax etc...