mirror of
https://github.com/google/nomulus
synced 2026-04-23 17:50:49 +00:00
Remove Datastore references from DomainLabelEntry (#1307)
This commit is contained in:
@@ -20,10 +20,10 @@ import static google.registry.util.DomainNameUtils.canonicalizeDomainName;
|
||||
import static google.registry.util.PreconditionsUtils.checkArgumentNotNull;
|
||||
|
||||
import com.google.common.net.InternetDomainName;
|
||||
import com.googlecode.objectify.annotation.Id;
|
||||
import google.registry.model.Buildable.GenericBuilder;
|
||||
import google.registry.model.ImmutableObject;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.MappedSuperclass;
|
||||
|
||||
/**
|
||||
@@ -36,13 +36,12 @@ public abstract class DomainLabelEntry<T extends Comparable<?>, D extends Domain
|
||||
extends ImmutableObject implements Comparable<D> {
|
||||
|
||||
@Id
|
||||
@javax.persistence.Id
|
||||
@Column(name = "domainLabel", nullable = false)
|
||||
String domainLabel;
|
||||
|
||||
/**
|
||||
* 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() {
|
||||
return domainLabel;
|
||||
|
||||
Reference in New Issue
Block a user