All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nl.vpro.domain.media.gtaa.EmbeddablePerson Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 8.3.1
Show newest version
/*
 * 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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy