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

nl.vpro.domain.media.Lifestyle 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 Lifestyle implements Serializable, Displayable {

    @Serial
    private static final long serialVersionUID = 8981980609550119820L;

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


    protected Lifestyle() {
    }

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

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

    public static Lifestyle copy(Lifestyle source) {
        if(source == null) {
            return null;
        }
        return new Lifestyle(source);
    }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy