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

nl.vpro.domain.media.support.ScheduleEventTitle 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.support;

import lombok.Getter;
import lombok.Setter;

import java.io.Serial;

import jakarta.persistence.*;
import jakarta.validation.constraints.NotNull;
import jakarta.xml.bind.annotation.*;

import com.fasterxml.jackson.annotation.JsonPropertyOrder;

import nl.vpro.domain.AbstractTitleEntity;
import nl.vpro.domain.Xmlns;
import nl.vpro.domain.media.ScheduleEvent;

/**
 * See MSE-3524
 * @author Michiel Meeuwissen
 * @since 5.1
 */
@Setter
@Entity
@Cacheable
@XmlAccessorType(XmlAccessType.NONE)
@XmlType(name = "scheduleEventTitle", namespace = Xmlns.MEDIA_NAMESPACE)
@JsonPropertyOrder({"value", "owner", "type"})
public class ScheduleEventTitle extends AbstractTitleEntity {

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

    @Getter
    @ManyToOne
    @NotNull
    @JoinColumns({
       @JoinColumn(name = "parent_channel", referencedColumnName = "channel"),
       @JoinColumn(name = "parent_start", referencedColumnName = "start")

    })
    ScheduleEvent parent;




    @lombok.Builder
    public ScheduleEventTitle(ScheduleEvent parent, String title, OwnerType owner, TextualType type) {
        super(title, owner, type);
        this.parent = parent;
    }

    public ScheduleEventTitle() {
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy