Skip to content
Snippets Groups Projects
Commit fe5156ba authored by srosse's avatar srosse
Browse files

OO-3541: persist the last modification date a membership

parent 59763717
No related branches found
No related tags found
No related merge requests found
...@@ -85,7 +85,7 @@ public class GroupMembershipImpl implements GroupMembership, ModifiedInfo, Persi ...@@ -85,7 +85,7 @@ public class GroupMembershipImpl implements GroupMembership, ModifiedInfo, Persi
private Date creationDate; private Date creationDate;
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name="lastmodified", nullable=false, insertable=true, updatable=false) @Column(name="lastmodified", nullable=false, insertable=true, updatable=true)
private Date lastModified; private Date lastModified;
@Column(name="g_role", nullable=false, insertable=true, updatable=false) @Column(name="g_role", nullable=false, insertable=true, updatable=false)
......
...@@ -295,6 +295,7 @@ public class BusinessGroupRelationDAO { ...@@ -295,6 +295,7 @@ public class BusinessGroupRelationDAO {
.getResultList(); .getResultList();
for(GroupMembershipImpl membership:memberships) { for(GroupMembershipImpl membership:memberships) {
membership.setLastModified(new Date()); membership.setLastModified(new Date());
dbInstance.getCurrentEntityManager().merge(membership);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment