mirror of
https://github.com/google/nomulus.git
synced 2025-05-14 08:27:14 +02:00
Swap id and indexed field in LrpToken
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=130014294
This commit is contained in:
parent
159528fb6f
commit
2e88129c43
3 changed files with 30 additions and 26 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue