org.hibernate.MappingException: property [id.companyId] not found on entity

Have you tried using Hibernate 5.4 already? Maybe this is a bug that was fixed already, just not backported to 5.3. If you still see this issue on 5.4, please create an issue in the issue tracker(https://hibernate.atlassian.net) with a test case(hibernate-test-case-templates/JPAUnitTestCase.java at master · hibernate/hibernate-test-case-templates · GitHub) that reproduces the issue.