BAEL-3283 - Moved the code to a single package meant for the themes tutorial.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user