java.lang.IllegalStateException: Multiple representations of the same entity with @ManyToMany 3 entities March 9, 2023 by Tarik Fixed it by removing CascadeType.MERGE on Permission entity