Hello.

In my application I have using strategies and save them using discriminators
as described in this
article<http://www.lostechies.com/blogs/jimmy_bogard/archive/2008/08/26/strategies-and-discriminators-in-nhibernate.aspx>:
http://www.lostechies.com/blogs/jimmy_bogard/archive/2008/08/26/strategies-and-discriminators-in-nhibernate.aspx

I will explain my problem using the terms/objects of the article. To explain
it better we have added a ProductGroup which contains a list of Products.
Within a ISession we retrieve a list of all ProductGroups. In the UI we
select a ProductGroup and add a Product with a PricingStrategy to this
group. When I save the ProductGroup (in a new ISession) I get the
NonUniqueException saying that there is already a PricingStrategy with the
same Id.
Is there a way to ignore this exception?
I understood that it has to do with the ISession cache, but when I clear the
cache (ISession.Clear()) it doesn't help. Any ideas?

David

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