Create a constraint for immutable entity properties