the symfony convention is to do

    use Doctrine\Bundle\PHPCRBundle\Validator\Constraints as Assert;
    ...
    @Assert\ValidPhpcrOdm

i think that would be nicer for this example too