fi.foyt.fni.persistence.model.illusion.IllusionEventSetting Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of persistence Show documentation
Show all versions of persistence Show documentation
Forge & Illusion - Persistence
package fi.foyt.fni.persistence.model.illusion;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
import javax.validation.constraints.NotNull;
@Entity
@Table (
uniqueConstraints = {
@UniqueConstraint (columnNames = { "event_id", "settingKey" })
}
)
public class IllusionEventSetting {
public Long getId() {
return id;
}
public IllusionEvent getEvent() {
return event;
}
public void setEvent(IllusionEvent event) {
this.event = event;
}
public IllusionEventSettingKey getKey() {
return key;
}
public void setKey(IllusionEventSettingKey key) {
this.key = key;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
@Id
@GeneratedValue (strategy=GenerationType.IDENTITY)
private Long id;
@ManyToOne
private IllusionEvent event;
@Enumerated (EnumType.STRING)
@NotNull
@Column (nullable = false, name="settingKey")
private IllusionEventSettingKey key;
private String value;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy