Constructor's parameter not correctly generated
Constraint attributes must be public