Hi,
I'm am developing a small app, where I have an ObjectManager; this manager receives read and write requests from business and UI layers. For each request, it open a session, loads/saveOrUpdate objects and the session is then closed. For a new created object, SaverOrUpdate affects the MySQL data base correctly. Bur for objects that are modified in the UI, the db is not affected by SaveOrUpdate; the record is not changed.
Here is the mapping file for the object I'm having problems with:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
<class name="BlockNotas_3.ClasesBD.Nota, BlockNotas_3" table="nota">
<id name="oid" column="oid_nota" type="Int64" unsaved-value="0">
<generator class="identity"/>
</id>
<property name="titulo" column="not_titulo" type="String" length="45"/>
<property name="textoNota" column="not_nota" type="String" />
<property name="fecha" column="not_fecha" type="DateTime"/>
<many-to-one name="tipoNota" column="oid_tiponota" cascade="none"/>
</class>
</hibernate-mapping>
I'd appreciate any help.
Thank you,
Guillermo
_________________ Guillermo
|