fineract-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nazeer1100...@apache.org
Subject [1/2] incubator-fineract git commit: fineract-206 fixed MySQLIntegrityConstraintViolationException issue when deleting a group
Date Fri, 12 Aug 2016 02:53:14 GMT
Repository: incubator-fineract
Updated Branches:
  refs/heads/develop bfad90963 -> 75d657ada


fineract-206 fixed MySQLIntegrityConstraintViolationException issue when deleting a group


Project: http://git-wip-us.apache.org/repos/asf/incubator-fineract/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-fineract/commit/42f019d3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-fineract/tree/42f019d3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-fineract/diff/42f019d3

Branch: refs/heads/develop
Commit: 42f019d304788ac167480eef937e7fad857a3e2d
Parents: 5647ffb
Author: andrew.dzak <andrew.dzak@gmail.com>
Authored: Thu Aug 4 13:43:04 2016 +0200
Committer: andrew.dzak <andrew.dzak@gmail.com>
Committed: Thu Aug 4 13:43:04 2016 +0200

----------------------------------------------------------------------
 .../java/org/apache/fineract/portfolio/group/domain/Group.java   | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-fineract/blob/42f019d3/fineract-provider/src/main/java/org/apache/fineract/portfolio/group/domain/Group.java
----------------------------------------------------------------------
diff --git a/fineract-provider/src/main/java/org/apache/fineract/portfolio/group/domain/Group.java
b/fineract-provider/src/main/java/org/apache/fineract/portfolio/group/domain/Group.java
index 325416d..602b071 100644
--- a/fineract-provider/src/main/java/org/apache/fineract/portfolio/group/domain/Group.java
+++ b/fineract-provider/src/main/java/org/apache/fineract/portfolio/group/domain/Group.java
@@ -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;


Mime
View raw message