mirror of
https://github.com/google/nomulus.git
synced 2025-08-15 05:54:06 +02:00
Remove Datastore references from DomainLabelEntry (#1307)
This commit is contained in:
parent
617e3c13f9
commit
98f0b62dc3
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue