nl.vpro.domain.i18n.TitleTranslation 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.i18n;
import lombok.Getter;
import lombok.Setter;
import java.io.Serial;
import jakarta.persistence.Entity;
import jakarta.persistence.ManyToOne;
import jakarta.validation.constraints.NotNull;
import nl.vpro.domain.AbstractTitleEntity;
import nl.vpro.domain.media.support.OwnerType;
import nl.vpro.domain.media.support.TextualType;
/**
* @author Michiel Meeuwissen
* @since 5.1
*/
@Setter
@Getter
@Entity
// it's in super
public class TitleTranslation extends AbstractTitleEntity {
@Serial
private static final long serialVersionUID = -4636628305739242913L;
@ManyToOne
@NotNull
MediaObjectTranslation parent;
public TitleTranslation(MediaObjectTranslation parent, @NotNull String title, OwnerType owner, TextualType type) {
super(title, owner, type);
this.parent = parent;
}
public TitleTranslation() {
}
}