Yeah I need cascade the saving of employee on my company to be able to
save the employee and company in the same transaction, I was looking
for another possibility than let the company save the employee, and
wanted the approach where I first save the employee and then the
company in the same transaction. What I have seen that is not possible
is it?


On Jul 30, 9:25 am, Tuna Toksoz <[email protected]> wrote:
> Cascade ?
>
> Tuna Toksöz
> Eternal sunshine of the open source mind.
>
> http://devlicio.us/blogs/tuna_toksozhttp://tunatoksoz.comhttp://twitter.com/tehlike
>
> On Thu, Jul 30, 2009 at 10:18 AM, Niclas Pehrsson <[email protected]>wrote:
>
>
>
> > But my point is, I don't wanna need to do anything, it would be
> > wonderful if NHibernate when checking the db for the existing company
> > and when its missing looking in the transactionlist and se aah there
> > it is, it will be inserted before the employee.
>
> > On 30 Juli, 04:50, jobsamuel <[email protected]> wrote:
> > > try to do a session.Flush after saving the company
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to