The PurchaseOrder is not associated with that session.

   Diego


On Thu, Jan 28, 2010 at 11:21, Yonah Wahrhaftig <[email protected]>wrote:

>  Thank you for your response
>
>
>
> I am not assigning the user during the same transaction.
>
>
>
> Although I can see by debugging that it has loaded the user from the
> database when retrieving the Item prior to deleting.
>
>
>
> I have posted the relevant code to PasteBin.
>
>
>
> http://pastebin.com/m385a6457
>
>
>
>
>
> *From:* [email protected] [mailto:[email protected]] *On
> Behalf Of *Diego Mijelshon
> *Sent:* Thursday, January 28, 2010 7:11 AM
> *To:* nhusers
> *Subject:* Re: [nhusers] Delete fails references not-null transient object
>
>
>
> It's kinda hard to help without the code...
>
> Are you assigning the user during this transaction?
>
>    Diego
>
>  On Wed, Jan 27, 2010 at 19:38, Yonah Wahrhaftig <[email protected]>
> wrote:
>
> I have a many-to-one relationship between item and user. User is set to
> mutable = false.  When I try to delete an item I get an error about there
> being the User being null or transient.
> Why does NH care about the user if it isn't mutable. Is there a cascade by
> default which I have to set as none? Is this likely an issue with my
> mappings?
> I don't have the code in front of me at the moment to show my mappings and
> calling code but I believe that my understanding of NH is what is really
> lacking here.
> If there are too many possibilities to glean anything without the mappings
> please mention this and I will respond when I return to my desk.
> Thank you,
> Yonah
>
> --
> 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]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>
>
> --
> 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]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>   --
> 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]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>

-- 
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