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

fi.evolver.ai.vaadin.entity.UserProfileParameter Maven / Gradle / Ivy

There is a newer version: 1.5.5
Show newest version
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 + "]";
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy