Define the entity class method on module inclusion.