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

nl.vpro.domain.user.BroadcasterEditorIdentifier Maven / Gradle / Ivy

Go to download

Domain classes and interfaces related to accountability, users and organizations.

There is a newer version: 8.3.1
Show newest version
/*
 * Copyright (C) 2012 Licensed under the Apache License, Version 2.0
 * VPRO The Netherlands
 */
package nl.vpro.domain.user;

import lombok.*;

import java.io.Serial;

import jakarta.persistence.Column;
import jakarta.persistence.Embeddable;

@Embeddable
@EqualsAndHashCode
public class BroadcasterEditorIdentifier implements OrganizationEditorIdentifier {

    @Serial
    private static final long serialVersionUID = 1429763489903175742L;
    @Column(name = "editor_principalid")
    @Getter
    @Setter
    private String editorPrincipalId;

    @Column(name = "organization_id")
    @Getter
    @Setter
    private String organizationId;

    public BroadcasterEditorIdentifier() {
    }

    public BroadcasterEditorIdentifier(String editor, String broadcaster) {
        this.editorPrincipalId = editor;
        this.organizationId = broadcaster;
    }

    @Override
    public String toString() {
        return editorPrincipalId + ":" + organizationId;
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy