I don't see something wrong, but I haven't used catalog="assignment" and the column in the id before so the problem could be in them.
If you have your java class like: private String userName, you don't have to use type="string" in your mapping. Hibernate can figure it out. Just check your DB ones to be sure. Example: if you have a String which you want to be a text in de DB, you do need to add it in your mapping.
Tip: you could also map it like this:
dani_501 wrote:
Code:
<class name="src.model.Users" table="users" catalog="assignment">
<id name="userId" type="int">
<column name="UserID" />
<generator class="assigned" />
</id>
<property name="userName" column="UserName" length="50" />
<property name="userPassword" column="UserPassWord" />
<property name="userFirstName" column="UserFirstName" length="50" />
<property name="userLastName" column="UserLastName" length="50" />
<property name="userEmail" column="UserEmail" length="50" />
</class>