I\'m using spring 4.0.5 and hibernate 4.3.5; I\'m facing an error with hibernate and I can\'t figure where I\'m wrong (because I\'m sure I\'m wrong). I have a table related
I had the same issue, when I am executing a native query having join of 2 tables but the Entity does not contain the fields from another table.
After lot of struggle below solution worked for me:
I simply declared the fields that are required and not present in the entity (also these fields are the same which are not present in the table that current entity represents) with its getter and setters.