mirror of
https://github.com/google/nomulus.git
synced 2025-05-15 17:07:15 +02:00
Get rid of ReferenceUnions entirely
This is the third and final phase in the migration away from ReferenceUnions. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=138778148
This commit is contained in:
parent
8d97fa5858
commit
780a5add78
14 changed files with 5 additions and 148 deletions
|
@ -22,7 +22,6 @@ import google.registry.model.ImmutableObject;
|
|||
import google.registry.model.contact.ContactResource;
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.XmlEnumValue;
|
||||
import javax.xml.bind.annotation.XmlValue;
|
||||
|
||||
/**
|
||||
* XML type for contact identifiers associated with a domain.
|
||||
|
@ -52,7 +51,6 @@ public class DesignatedContact extends ImmutableObject {
|
|||
public static DesignatedContact create(Type type, Key<ContactResource> contact) {
|
||||
DesignatedContact instance = new DesignatedContact();
|
||||
instance.type = type;
|
||||
instance.contactId = ReferenceUnion.create(contact);
|
||||
instance.contact = contact;
|
||||
return instance;
|
||||
}
|
||||
|
@ -60,11 +58,6 @@ public class DesignatedContact extends ImmutableObject {
|
|||
@XmlAttribute(required = true)
|
||||
Type type;
|
||||
|
||||
@Index
|
||||
@XmlValue
|
||||
//TODO(b/28713909): Remove contactId and replace with contact.
|
||||
ReferenceUnion<ContactResource> contactId;
|
||||
|
||||
@Index
|
||||
Key<ContactResource> contact;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue