NHibernate, updating a db column to a function call when persisting a domain object.
Posted
by Wyass
on Stack Overflow
See other posts from Stack Overflow
or by Wyass
Published on 2010-05-25T09:06:56Z
Indexed on
2010/05/25
9:11 UTC
Read the original article
Hit count: 172
nhibernate
I have a domain class that when persisted to Oracle must update a column to sysdate. NHibernate must only generate 1 SQL. e.g.
update person set age = 12, stamp = sysdate where id = 1;
Can this be done?
© Stack Overflow or respective owner