Hi All,
I am using
Java 8 with
JSP (Hibernate 5.2.1). I have a like clause which works perfectly, until I introduce the like clause to make use the foreign key table values too.
I am getting the following error:
BasicPathUsageException: Cannot join to attribute of basic type
I think the problem is related to the fact that I have a join table, and I am not sure how to create the LIKE Join using the join table.
Employee - employee_category - category
model (Employee.java):
model (Category.java):
JPA
When I introduce the following code, it fails with the error above (
I think the problem is with this new piece of code):
This is the entire method:
Any help will e appreciated.