summaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/eu/mulk/mulkcms2/benki/users/UserRolePK.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/eu/mulk/mulkcms2/benki/users/UserRolePK.java b/src/main/java/eu/mulk/mulkcms2/benki/users/UserRolePK.java
index b84e02b..c424617 100644
--- a/src/main/java/eu/mulk/mulkcms2/benki/users/UserRolePK.java
+++ b/src/main/java/eu/mulk/mulkcms2/benki/users/UserRolePK.java
@@ -6,11 +6,14 @@ import java.io.Serializable;
public class UserRolePK implements Serializable {
+ @Column(name = "user", nullable = false)
+ @Id
private int userId;
- private int roleId;
- @Column(name = "user", nullable = false)
+ @Column(name = "role", nullable = false)
@Id
+ private int roleId;
+
public int getUserId() {
return userId;
}
@@ -19,8 +22,6 @@ public class UserRolePK implements Serializable {
this.userId = userId;
}
- @Column(name = "role", nullable = false)
- @Id
public int getRoleId() {
return roleId;
}