Set_type_override_by_type : constraint in override class not working

I have taken one sequence_item_class named transaction and extend it to my_transaction class. I have override transaction class by my_transaction using set_type_override_by_type method.
now my problem is i have taken same constraint name in override class as in transaction class, but this constraint does not work on rand variable generated
from sequence,
simulation doesn’t shows any error but as upto i understand this override class constraint should work.
please provide solution…

Thanks in Advance

In reply to vvpatel:

Can not possibly help you without more details of what “does not work” means.

In reply to dave_59:

Hi, dave_59

I got my solution from on of the answer provided in this forum,
Thanks for your reply.