I have two entities Employee and Project. I am trying to create a Many-To-Many relationship between them and I succeed doing so using a junction table only with their primary keys.
I realized I would like to have other columns in that junction table so I used this tutorial to do so.
But after following the tutorial and trying to fetch all projects assigned to an employee, I am getting the following exception.
com.microsoft.sqlserver.jdbc.SQLServerException: Invalid column name 'employee_EMPLOYEE_ID_PK'.
There is no employee_EMPLOYEE_ID_PK in my code so Spring Data Jpa is concatenating the employee_ prefix.
How can I disable this behavior?