Entity Inheritance and Dependency Injection

Posts   
 
    
gabrielk avatar
gabrielk
User
Posts: 231
Joined: 01-Feb-2005
# Posted on: 03-Apr-2008 15:37:46   

Hi All,

This is more a post to get confirmation on some behavior I just tested.

I have 2 entities in a TargetPerEntity relationship, lets call them: SuperEntity and SubEntity and want to use validation via Dependency Injection.

If I create a Validator for EntityType SubEntity and for SuperEntity, only the SubEntityValidator is ran. Is this correct?

If this is the case, then I would need to have the SubEntityValidator being inherited from the SuperEntityValidator. Correct?

Thanks!

Gab

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 03-Apr-2008 15:50:51   

If this is the case, then I would need to have the SubEntityValidator being inherited from the SuperEntityValidator. Correct?

Correct.

Althought it doesn't apply to your case, the following thread is useful to read: http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=12965