nl.vpro.domain.media.gtaa.EmbeddablePerson Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of media-domain Show documentation
Show all versions of media-domain Show documentation
The basic domain classes for 'media', the core of POMS. Also, the 'update' XML bindings for it.
It also contains some closely related domain classes like the enum to contain NICAM kijkwijzer settings.
/*
* Copyright (C) 2015 Licensed under the Apache License, Version 2.0
* VPRO The Netherlands
*/
package nl.vpro.domain.media.gtaa;
import lombok.ToString;
import java.io.Serial;
import java.io.Serializable;
import jakarta.persistence.Column;
import jakarta.persistence.Embeddable;
/**
*
* @author Roelof Jan Koekoek
* @since 3.7
*/
@Embeddable
@ToString(callSuper = true)
public class EmbeddablePerson extends EmbeddableGTAARecord implements Serializable {
@Serial
private static final long serialVersionUID = 2983827493130215257L;
@Column(name = "gtaa_knownas")
private Boolean knownAs = false;
public EmbeddablePerson() {
super();
}
public EmbeddablePerson(String uri, GTAAStatus status) {
super(uri, status);
}
@lombok.Builder(builderClassName = "Builder")
public EmbeddablePerson(String uri, GTAAStatus status, boolean knownAs) {
super(uri, status);
this.knownAs = knownAs;
}
public boolean isKnownAs() {
return knownAs != null ? knownAs : false;
}
public void setKnownAs(boolean knownAs) {
this.knownAs = knownAs;
}
}