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

nl.vpro.domain.media.SecondaryLifestyle 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
package nl.vpro.domain.media;

import java.io.Serial;
import java.io.Serializable;

import jakarta.persistence.Column;
import jakarta.persistence.Embeddable;
import jakarta.xml.bind.annotation.*;

import nl.vpro.i18n.Displayable;


/**
 * @author Michiel Meeuwissen
 * @since 2.0
 */
@Embeddable
@XmlAccessorType(XmlAccessType.NONE)
public class SecondaryLifestyle implements Serializable, Displayable {

    @Serial
    private static final long serialVersionUID = -2203208005840440189L;

    @XmlValue
    @Column(name = "secondaryLifestyle")
    private String value;

    protected SecondaryLifestyle() {
    }

    public SecondaryLifestyle(String value) {
        this.value = value;
    }

    public SecondaryLifestyle(SecondaryLifestyle source) {
        this(source.value);
    }

    public static SecondaryLifestyle copy(SecondaryLifestyle source) {
        return source == null ? null : new SecondaryLifestyle(source);
    }

    @Override
    public String getDisplayName() {
        return value;
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy