fi.evolver.ai.vaadin.entity.UserProfileParameter Maven / Gradle / Ivy
package fi.evolver.ai.vaadin.entity;
import jakarta.persistence.*;
@Entity
@Table(name="user_profile_parameter")
public class UserProfileParameter {
@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
private long id;
@ManyToOne(fetch=FetchType.LAZY)
@JoinColumn(name="user_profile_id")
private UserProfile userProfile;
@Column(name="key")
private String key;
@Column(name="value")
private String value;
public UserProfileParameter() {}
public UserProfileParameter(UserProfile userProfile, String key, String value) {
this.userProfile = userProfile;
this.key = key;
this.value = value;
}
public long getId() {
return id;
}
public UserProfile getUserProfile() {
return userProfile;
}
public String getKey() {
return key;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
@Override
public String toString() {
return "UserProfileParameter [id=" + id + ", key=" + key + ", value=" + value + "]";
}
}