how did u save the data anyway ?
and i couldnt find a primary key <generator> element in ur <id > mapping .
i wonder if u were able to create a session factory with a required elemnt missing !!!!!
refer
http://www.hibernate.org/hib_docs/reference/en/html_single/#mapping-declaration-id-generator
your id mapping should be something like this
Code:
<hibernate-mapping>
<class name="com.entity.Usertab" table="User_tab">
<!-- A 32 hex character is our surrogate key. It's automatically generated by Hibernate with the UUID pattern. -->
<id name="id" unsaved-value="null" >
<column name="ID" not-null="true"/>
<generator class="uuid.string"> </generator>
</id>
please provide the debug level stack trace when posting with code snippets .... :)