Remove Datastore references from DomainLabelEntry (#1307)

This commit is contained in:
sarahcaseybot 2021-09-02 17:55:55 -04:00 committed by GitHub
parent 617e3c13f9
commit 98f0b62dc3

View file

@ -20,10 +20,10 @@ import static google.registry.util.DomainNameUtils.canonicalizeDomainName;
import static google.registry.util.PreconditionsUtils.checkArgumentNotNull; import static google.registry.util.PreconditionsUtils.checkArgumentNotNull;
import com.google.common.net.InternetDomainName; import com.google.common.net.InternetDomainName;
import com.googlecode.objectify.annotation.Id;
import google.registry.model.Buildable.GenericBuilder; import google.registry.model.Buildable.GenericBuilder;
import google.registry.model.ImmutableObject; import google.registry.model.ImmutableObject;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass; import javax.persistence.MappedSuperclass;
/** /**
@ -36,13 +36,12 @@ public abstract class DomainLabelEntry<T extends Comparable<?>, D extends Domain
extends ImmutableObject implements Comparable<D> { extends ImmutableObject implements Comparable<D> {
@Id @Id
@javax.persistence.Id
@Column(name = "domainLabel", nullable = false) @Column(name = "domainLabel", nullable = false)
String domainLabel; String domainLabel;
/** /**
* Returns the label of the field, which also happens to be used as the key for the Map object * Returns the label of the field, which also happens to be used as the key for the Map object
* that is serialized from Datastore. * that is serialized from the database.
*/ */
public String getDomainLabel() { public String getDomainLabel() {
return domainLabel; return domainLabel;