mirror of
https://github.com/google/nomulus
synced 2026-08-15 19:56:08 +00:00
Use VKeys instead of Ofy keys in mutating command (#1682)
* Use VKeys instead of Ofy keys in mutating command * Add createVKey to ImmutableObject * Use SQL only VKeys
This commit is contained in:
@@ -106,9 +106,8 @@ class BillingVKeyTest {
|
||||
return billingRecurrenceVKey.createVKey();
|
||||
}
|
||||
|
||||
VKey<BillingVKeyTestEntity> createVKey() {
|
||||
return VKey.create(
|
||||
BillingVKeyTestEntity.class, id, Key.create(parent, BillingVKeyTestEntity.class, id));
|
||||
public VKey<BillingVKeyTestEntity> createVKey() {
|
||||
return VKey.createSql(BillingVKeyTestEntity.class, id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -96,8 +96,8 @@ class DomainHistoryVKeyTest {
|
||||
this.domainHistoryVKey = domainHistoryVKey;
|
||||
}
|
||||
|
||||
VKey<TestEntity> createVKey() {
|
||||
return VKey.create(TestEntity.class, id, Key.create(parent, TestEntity.class, id));
|
||||
public VKey<TestEntity> createVKey() {
|
||||
return VKey.createSql(TestEntity.class, id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user