summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2009-11-05 08:33:27 -0800
committerShawn O. Pearce <sop@google.com>2009-11-05 08:33:27 -0800
commit2de22b433be6c687cb036f4f41b326ee631c5111 (patch)
tree4815cf4534fc2baeb1b191c43db7ea29b9cb1e8b
parent9fdc8d71888a33b18ad77842a224f049aa7859e6 (diff)
Default AccountGroup instances to type INTERNAL
Almost every single AccountGroup will want to use the INTERNAL type, at least initially upon creation. Since the column is NOT NULL in the schema we should declare the default in our constructor in case callers don't initialize it properly. Change-Id: I12bed2f8f64b5d3bbc481b25e30da1d1fc5c7c02 Signed-off-by: Shawn O. Pearce <sop@google.com>
-rw-r--r--src/main/java/com/google/gerrit/client/reviewdb/AccountGroup.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/com/google/gerrit/client/reviewdb/AccountGroup.java b/src/main/java/com/google/gerrit/client/reviewdb/AccountGroup.java
index ad3825b3b6..eb38ef212f 100644
--- a/src/main/java/com/google/gerrit/client/reviewdb/AccountGroup.java
+++ b/src/main/java/com/google/gerrit/client/reviewdb/AccountGroup.java
@@ -176,6 +176,7 @@ public final class AccountGroup {
name = newName;
groupId = newId;
ownerGroupId = groupId;
+ setType(Type.INTERNAL);
}
public AccountGroup.Id getId() {