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

nl.vpro.domain.i18n.TextTranslation 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.i18n;

import lombok.*;

import java.util.function.Supplier;

import jakarta.persistence.*;
import jakarta.xml.bind.annotation.XmlTransient;

import nl.vpro.validation.NoHtml;

/**
 * @author Michiel Meeuwissen
 * @since 5.1
 */
@MappedSuperclass
@ToString
@Access(AccessType.FIELD)
@EqualsAndHashCode(exclude = {"id"})
public class TextTranslation implements Supplier {

    @Column(nullable = false)
    @NoHtml(aggressive = false)
    protected String value;

    @Id
    @GeneratedValue
    @XmlTransient
    @Getter @Setter(AccessLevel.PROTECTED)
    private Long id;


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

    protected TextTranslation() {
    }


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

    public void set(String value) {
        this.value = value;
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy