hi everyone,
i have already set the cascade to none but when i save the user , i
always get the exception object references an unsaved transient
instance - save the transient instance before flushing. maybe i have
to disable the auto dirty checking option? i am using the cbpt pattern
to deal with multiple sessions management.
Guys i need some help here.
Thanks in advance

On 4 Dez., 17:53, megaman <[email protected]> wrote:
> hi everyone,
>
> i implemented the tip of the book "nhibernate 3 cookbook"
> concerning "CbpT" pattern. In my modell i have an unidirectional many-
> to-one association in the child. Here is the example:
>
> Title
> -----
> TitleId
> Description
>
> User
> -----
> UserId
> TitleId
>
> The class user has a reference to the object Title because i want to
> display in my gui the description. So user has a  unidirectional many-
> to-one association with the table Title.
>
> if i save the User say Session.save( User ) and ten call SaveAll()
> which flush the session, i get the exception "save transient entity
> Title" and dont get that because the cascade option is set to none.
>
> The definition of this association in the user mapping file is:
> many-to-one
> name="Title"
> column="TitleId"
> class="Title"
> cascade="none"
> not-found="ignore"
>
> Thanks in advance

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