fineract-206 fixed MySQLIntegrityConstraintViolationException issue when deleting a group

This commit is contained in:
andrew.dzak
2016-08-04 13:43:04 +02:00
parent 5647ffb966
commit 42f019d304
@@ -143,6 +143,10 @@ public final class Group extends AbstractPersistable<Long> {
@Transient
private boolean accountNumberRequiresAutoGeneration = false;
@OneToMany(mappedBy="group",cascade = CascadeType.REMOVE)
private Set<GroupRole> groupRole;
// JPA default constructor for entity
protected Group() {
this.name = null;