Re: Deleting object rendes an instanciation exception

2013-01-04 Thread Andrus Adamchik
On Jan 4, 2013, at 6:54 PM, Ramiro Aparicio wrote: > > And by the way I found what seems a Copy Paste error at performDelete inside > ObjectContextDeleteAction, there is double call to > "context.prepareForAccess(object, null, false);*" * Ugh, appears to be a bad patch merge. Just fixed it.

Re: Deleting object rendes an instanciation exception

2013-01-04 Thread Ramiro Aparicio
After some more testing I found I can avoid the exception in first instance but it will crash anyway. The problem is deleting a User with some related SessionLogWeb SessionLog has a relationship with User to be able to find the user logged and the back relationship was modeled from User to Ses

Re: Deleting object rendes an instanciation exception

2013-01-04 Thread Ramiro Aparicio
Hi Andrus, Nop every row in the database (and thats about 180K rows) is from one type or another. I am trying to find out why it has those relations and what entities are being cascaded into the delete, just in case I have the model misconfigured. Ramiro El 03/01/2013 19:16, Andrus Adamchik

Re: Deleting object rendes an instanciation exception

2013-01-03 Thread Andrus Adamchik
Hi Ramiro, Happy New Year to you too :) So is it possible that the database row that causes this exception does not map to any concrete subclass entity qualifier? Andrus On Jan 3, 2013, at 8:54 PM, Ramiro Aparicio wrote: > Hi and happy new year to everyone, > > I am back with my happy inh

Deleting object rendes an instanciation exception

2013-01-03 Thread Ramiro Aparicio
Hi and happy new year to everyone, I am back with my happy inheritance one more time. I am using single table inheritance and just in case someone did not remember the model here is a simplification about it: abstract SessionLog it has relations to other tables as Log or User SessionLogApi and