Hi dear all
I am surprised that my object is stored automatically without me invoking the save method!!
I use jsf – spring 2.0 – hibernate 3.3 configuration.
I use MyEclipse for spring IDE, JBoss 4.2.2 and MySql on Xp win PC.
My User.hbm.xml
<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE hibernate-mapping PUBLIC “-//Hibernate/Hibernate Mapping DTD 3.0//EN” “http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd” >
<hibernate-mapping package=”login.user” auto-import=”false”>
<class name=”User” table=”users”>
<id name=”id” column=”ID” type=”java.lang.Integer”>
<generator class=”increment”/>
</id>
<property name=”userId” type=”java.lang.String” column=”UserId” length=”20″ />
<property name=”firstName” type=”java.lang.String” column=”FirstName” length=”20″ />
</class>
</hibernate-mapping>
in hibernate.cfg.xml I tried upadat and validate but the same problem of saving the object user once I change one property before I save it.
<property name=”hibernate.hbm2ddl.auto”>validate</property>
Any idea with my deep thanks
Amir