Implement orm inheritance