Hi ,
I have a view that has
a bag property that defines a many to many relation to another view.
The issue is that the the two views are related through a regular table which exposes all the relations between the objects - so a user can try
and draw an object in view a , the rel table will show that it is linked to 5 objects in table b , but view b will only expose 3 objects to the user.
In that case NHibernate will throw exception that the object could not be found.
I could create a view for the rel table which preformes the same elimination as the two other views , but , my question is , if there is a way to config nhibernate not to throw an exception when not finding an object but to simply not returning nothing if not finding it ?
Best regards ,
Ishai
|