BAEL-3283 - Moved the code to a single package meant for the themes tutorial.

This commit is contained in:
sandip singh
2020-01-07 09:25:52 +05:30
parent da6aa28fc2
commit 815b0e698e
9 changed files with 14 additions and 14 deletions

View File

@@ -0,0 +1,30 @@
package com.baeldung.themes.domain;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "preferences")
public class UserPreference {
@Id
private String username;
private String theme;
public String getTheme() {
return theme;
}
public void setTheme(String theme) {
this.theme = theme;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
}