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

net.yadaframework.security.persistence.entity.YadaTicketMessage Maven / Gradle / Ivy

There is a newer version: 0.7.7.R4
Show newest version
package net.yadaframework.security.persistence.entity;

import java.io.Serializable;

import jakarta.persistence.Entity;
import jakarta.persistence.Inheritance;
import jakarta.persistence.InheritanceType;
import jakarta.persistence.ManyToOne;

/**
 * A message inside a YadaTicket.
 *
 */
@Entity
@Inheritance(strategy = InheritanceType.JOINED)
public class YadaTicketMessage extends YadaUserMessage  implements Serializable {
	private static final long serialVersionUID = 1L;

	@ManyToOne(optional = false)
	protected YadaTicket yadaTicket;

	public YadaTicketMessage() {
		// All YadaTicketMessage instances are a YadaUserMessage with this specific type
		super.setType(YadaUserMessageType.TICKET);
	}
	
	public YadaTicket getYadaTicket() {
		return yadaTicket;
	}

	public void setYadaTicket(YadaTicket yadaTicket) {
		this.yadaTicket = yadaTicket;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy