Fixed it by removing CascadeType.MERGE on Permission entity
More Related Contents:
- JPA CascadeType.ALL does not delete orphans
- Hibernate – @ElementCollection – Strange delete/insert behavior
- How do I properly cascade save a one-to-one, bidirectional relationship on primary key in Hibernate 3.6
- Silently ignored remove()
- Hibernate generates negative id values when using a sequence
- How can I avoid the Warning “firstResult/maxResults specified with collection fetch; applying in memory!” when using Hibernate?
- Hibernate triggering constraint violations using orphanRemoval
- Change Table Name of an Entity on runtime? [duplicate]
- JPA JoinColumn vs mappedBy
- Hibernate throws MultipleBagFetchException – cannot simultaneously fetch multiple bags
- Hibernate Annotations – Which is better, field or property access?
- Hibernate JPA Sequence (non-Id)
- How to store date/time and timestamps in UTC time zone with JPA and Hibernate
- Bypass GeneratedValue in Hibernate (merge data not in db?)
- How does the FetchMode work in Spring Data JPA
- How to properly express JPQL “join fetch” with “where” clause as JPA 2 CriteriaQuery?
- JPA SQL Server No Dialect mapping for JDBC type: -9
- Transaction marked as rollback only: How do I find the cause
- JPA entity without id
- JPA/Hibernate Static Metamodel Attributes not Populated — NullPointerException
- Can I combine a @Query definition with a Specification in a Spring Data JPA repository method?
- Multiple fetches with EAGER type in Hibernate with JPA
- Could not commit JPA transaction: Transaction marked as rollbackOnly
- Spring JpaRepository – Detach and Attach entity
- Native query with named parameter fails with “Not all named parameters have been set”
- @BatchSize a smart or stupid use?
- Spring Data JPA and Exists query
- Error creating bean with name ‘entityManagerFactory
- JPA Criteria Tutorial [closed]
- How to map one class with multiple tables in Hibernate/javax.persistance?