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