Skip to content

Commit

Permalink
refactor: map members to application
Browse files Browse the repository at this point in the history
  • Loading branch information
aelamrani committed Dec 30, 2015
1 parent 2070b41 commit 35a065a
Showing 1 changed file with 19 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
package io.gravitee.repository.management.model;

import java.util.Date;
import java.util.List;
import java.util.Objects;

/**
Expand Down Expand Up @@ -53,6 +54,7 @@ public class Application {
*/
private Date updatedAt;

private List<Membership> members;

public Date getCreatedAt() {
return createdAt;
Expand Down Expand Up @@ -102,6 +104,14 @@ public void setId(String id) {
this.id = id;
}

public List<Membership> getMembers() {
return members;
}

public void setMembers(List<Membership> members) {
this.members = members;
}

@Override
public boolean equals(Object o) {
if (this == o) return true;
Expand All @@ -117,11 +127,14 @@ public int hashCode() {

@Override
public String toString() {
final StringBuilder sb = new StringBuilder("Application{");
sb.append("id='").append(id).append('\'');
sb.append("name='").append(name).append('\'');
sb.append(", type='").append(type).append('\'');
sb.append('}');
return sb.toString();
return "Application{" +
"id='" + id + '\'' +
", name='" + name + '\'' +
", description='" + description + '\'' +
", type='" + type + '\'' +
", createdAt=" + createdAt +
", updatedAt=" + updatedAt +
", members=" + members +
'}';
}
}

0 comments on commit 35a065a

Please sign in to comment.