Swap id and indexed field in LrpToken

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=130014294
This commit is contained in:
ctingue 2016-08-11 11:52:03 -07:00 committed by Ben McIlwain
parent 159528fb6f
commit 2e88129c43
3 changed files with 30 additions and 26 deletions

View file

@ -25,7 +25,6 @@ import google.registry.model.BackupGroupRoot;
import google.registry.model.Buildable;
import google.registry.model.reporting.HistoryEntry;
import google.registry.model.reporting.HistoryEntry.Type;
import java.util.Set;
/**
@ -34,18 +33,19 @@ import java.util.Set;
@Entity
public class LrpToken extends BackupGroupRoot implements Buildable {
/**
* The token's assignee (a unique identifier).
*/
@Id
String assignee;
/**
* The secret token assigned to a registrant for the purposes of LRP registration.
*/
@Index
@Id
String token;
/**
* The token's assignee (additional metadata for identifying the owner of the token, which may
* vary from TLD to TLD).
*/
@Index
String assignee;
/**
* A list of TLDs for which this LRP token is valid.
*/
@ -89,7 +89,7 @@ public class LrpToken extends BackupGroupRoot implements Buildable {
private Builder(LrpToken instance) {
super(instance);
}
public Builder setAssignee(String assignee) {
getInstance().assignee = assignee;
return this;