Needed for constraints in entity classes