Fix the compound key constructors for AccountAgreement, AccountGroupMember

A compound key must allocate its referenced subkeys during its no-arg
constructor.  This is assumed to be true by gwtorm as it unpacks the
entity from a java.sql.ResultSet and creates it.

Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
Shawn O. Pearce
2008-11-24 14:33:25 -08:00
parent ffc2bdf778
commit 697044716a
2 changed files with 4 additions and 0 deletions

View File

@@ -32,6 +32,8 @@ public final class AccountAgreement {
protected ContributorAgreement.Id claId;
protected Key() {
accountId = new Account.Id();
claId = new ContributorAgreement.Id();
}
public Key(final Account.Id account, final ContributorAgreement.Id cla) {

View File

@@ -26,6 +26,8 @@ public final class AccountGroupMember {
protected AccountGroup.Id groupId;
protected Key() {
accountId = new Account.Id();
groupId = new AccountGroup.Id();
}
public Key(final Account.Id a, final AccountGroup.Id g) {