Index redemptionHistoryEntry on LrpToken

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=132323443
This commit is contained in:
ctingue 2016-09-06 08:31:19 -07:00 committed by Ben McIlwain
parent 93bf68039b
commit 6f241c5605
2 changed files with 2 additions and 1 deletions

View file

@ -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
* phase, this should always be a {@link Type#DOMAIN_APPLICATION_CREATE}.
*/
@Index
Key<HistoryEntry> redemptionHistoryEntry;
public String getToken() {

View file

@ -86,6 +86,6 @@ public class LrpTokenTest extends EntityTestCase {
@Test
public void testIndexing() throws Exception {
verifyIndexing(redeemedToken, "assignee", "token");
verifyIndexing(redeemedToken, "assignee", "token", "redemptionHistoryEntry");
}
}