jpql « Delete « JPA Q&A





1. How do I use JPQL to delete entries from a join table?    stackoverflow.com

I have a JPA object which has a many-to-many relationship like this:

@Entity
public class Role {
    //...

    @ManyToMany(fetch=FetchType.EAGER)
    @JoinTable(
 name="RolePrivilege",
 joinColumns=
   ...