Thanks but I suspect the problem is not there. I have the following:It sounds like you didn't configure the primary key generation correctly. I believe that MySQL supports identity keys, not sequences. Your <generator> tag should look like:
<generator type="identity"/>
OR
<generator type="native"/>
Go here for more: http://www.hibernate.org/hib_docs/reference/html/or-mapping.html#or-mapping-s1-4--generator
<hibernate-mapping>
<class name="com.edhand.hibernate1.Item" table="item" >
<id name="id" column="id" type="java.lang.Long" unsaved-value="0">
<generator class="identity"/>
</id>
<property name="name" column="name" type="java.lang.String" />
<property name="description" column="description" type="java.lang.String" />
</class>
</hibernate-mapping>
Tried both native and identity without succes.
-- _________________ Mario St-Gelais www.gestionti.com "Good judgment comes from experience- usually experience which was the result of poor judgment" Bill Putnam
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]