jpql « Relationship « JPA Q&A

1. JPQL check many-to-many relationship

Just a quick question: There's the entity (for example User) who is connected with the ManyToMany relationship to the same entity (for example this relation describes "friendship" and it is symmetric). What is ...

2. JP QL - Filtering result in a One To Many relationship

I am stuck trying to construct a JPQL query and was hoping someone with more JPA experience than mine could help. Consider the following two entities:

class Author{
  String name