I want to do something like this in my domain/entity object :
@Entity @NamedQueries({ @NamedQuery(name=\"favouriteCats\", query=\"from Cat c inner join on Us
Case Issue, Right query would be:
from Cat c inner join on Usercat uc where uc.isfavourtie = true and uc.user = :user
Note : C in Cat is capital, U in Usercat is capital where as c in Usercat is small and f in isfavourite is small.