You don't provide enough info. Try to reduce your problem in 2 minimal classes
Here is the info.
I am using two tables emp and department and two entity beans
for each of the table.
I want to get the all the employees belonging to a department, using @JoinTable annotation. But i am getting above mentioned error.
The above given code contains only two class.
If you want more info, please specify what additional info you want.