Import autogenerated JPA entities.
Adds JPA entities generated by IntelliJ for all existing tables in the
database.
Change-Id: Iac957b5d68ce45328db87487f105522f8595e124
diff --git a/src/main/scala/eu/mulk/entity/UserSettingPK.java b/src/main/scala/eu/mulk/entity/UserSettingPK.java
new file mode 100644
index 0000000..64168c8
--- /dev/null
+++ b/src/main/scala/eu/mulk/entity/UserSettingPK.java
@@ -0,0 +1,50 @@
+package eu.mulk.entity;
+
+import java.io.Serializable;
+import java.util.Objects;
+import javax.persistence.Column;
+import javax.persistence.Id;
+
+public class UserSettingPK implements Serializable {
+
+ private int userId;
+ private String setting;
+
+ @Column(name = "user", nullable = false)
+ @Id
+ public int getUserId() {
+ return userId;
+ }
+
+ public void setUserId(int userId) {
+ this.userId = userId;
+ }
+
+ @Column(name = "setting", nullable = false, length = -1)
+ @Id
+ public String getSetting() {
+ return setting;
+ }
+
+ public void setSetting(String setting) {
+ this.setting = setting;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ UserSettingPK that = (UserSettingPK) o;
+ return userId == that.userId &&
+ Objects.equals(setting, that.setting);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(userId, setting);
+ }
+}