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:
mcilwain 2016-11-10 10:46:16 -08:00 committed by Ben McIlwain
parent 8d97fa5858
commit 780a5add78
14 changed files with 5 additions and 148 deletions

View file

@ -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;