mirror of
https://github.com/google/nomulus.git
synced 2025-05-14 16:37:13 +02:00
Index redemptionHistoryEntry on LrpToken
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=132323443
This commit is contained in:
parent
93bf68039b
commit
6f241c5605
2 changed files with 2 additions and 1 deletions
|
@ -55,6 +55,7 @@ public class LrpToken extends BackupGroupRoot implements Buildable {
|
||||||
* The key of the history entry for which the token was used. Given LRP is a domain application
|
* The key of the history entry for which the token was used. Given LRP is a domain application
|
||||||
* phase, this should always be a {@link Type#DOMAIN_APPLICATION_CREATE}.
|
* phase, this should always be a {@link Type#DOMAIN_APPLICATION_CREATE}.
|
||||||
*/
|
*/
|
||||||
|
@Index
|
||||||
Key<HistoryEntry> redemptionHistoryEntry;
|
Key<HistoryEntry> redemptionHistoryEntry;
|
||||||
|
|
||||||
public String getToken() {
|
public String getToken() {
|
||||||
|
|
|
@ -86,6 +86,6 @@ public class LrpTokenTest extends EntityTestCase {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testIndexing() throws Exception {
|
public void testIndexing() throws Exception {
|
||||||
verifyIndexing(redeemedToken, "assignee", "token");
|
verifyIndexing(redeemedToken, "assignee", "token", "redemptionHistoryEntry");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue