fi.evolver.basics.spring.messaging.entity.MessageMetadata Maven / Gradle / Ivy
package fi.evolver.basics.spring.messaging.entity;
import jakarta.persistence.*;
@Entity
@Table(name="message_metadata")
public class MessageMetadata {
@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
private long id;
@Column(name="key")
private String key;
@Column(name="data")
private String value;
@ManyToOne
@JoinColumn(name="message_data_id")
private MessageData messageData;
MessageMetadata() { }
public MessageMetadata(String key, String value) {
this.key = key;
this.value = value;
}
void setMessageData(MessageData messageData) {
this.messageData = messageData;
}
public String getKey() {
return key;
}
public String getValue() {
return value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy