The next thing I'll suggest is changing your mapping to:

<id name="id" column="id" type="java.lang.Long" unsaved-value="null">

If that still doesn't work, your best bet is to hit the
Hibernate forums: http://forum.hibernate.org/


> 
> <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

-- 
Nick Heudecker
System Mobile, Inc.
Email: [EMAIL PROTECTED]
Web: http://www.systemmobile.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to