Note that there are some explanatory texts on larger screens.

plurals
  1. PONHibernate + Oracle: While some fields isn't update inside stored procedure while called from NHibernate
    primarykey
    data
    text
    <p>I am using NHibernate with Oracle 11g R2 database. All of my objects are created/updated/deleted from PL/SQL stored procedures, not direct from client's "INSERT INTO.." etc queries.</p> <p>Each database table have field "UPDATED_DATE" which saves date and time of the last modification of the record. This field is updating together with valuable fields (Name, Code, Serial etc) inside corresponding stored PL/SQL procedure. But when I link this field to a POCO class property via NHibernate, field update process stop working (while other fields, which are updated by the same query inside stored procedure, updates their value succesfully). My idea and goal is the POCO's "UpdatedDate" property must read it's value from the "UPDATED_DATE" field, but now it looks as because the "UpdatedDate" property is null so NHibernate sets "UPDATED_DATE" field to null too.</p> <p>The one surprise is that each table has "CREATED_DATE" field and each corresponding POCO class - "CreatedDate" property, which is set up during record insertion. And this link works fine - "CREATED_DATE" filled in creation stored procedure, afrter that it's value successfully reading into "CreatedDate" POCO property.</p> <p>How can I solve problem with UPDATED_DATE - UpdatedDate pair?</p> <p>P.S. If needed I can provide sample solution for MSVS 2010 / .NET 4.0 / NHibernate 3.0 with one sample data entity.</p> <p>P.P.S. Solution archive is here: <a href="http://depositfiles.com/files/h1t7appb5" rel="nofollow">http://depositfiles.com/files/h1t7appb5</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload