]> git.mxchange.org Git - juser-core.git/commitdiff
created unique index on login name
authorRoland Haeder <roland@mxchange.org>
Mon, 12 Oct 2015 16:19:53 +0000 (18:19 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 12 Oct 2015 16:19:53 +0000 (18:19 +0200)
src/org/mxchange/jusercore/model/user/LoginUser.java

index 17829cce45a7e0e84c0e723c02afd62d3a75c5a1..1ca353ec0a2dc3d3decc86b2e152cd76ce27ce34 100644 (file)
@@ -46,12 +46,18 @@ import org.mxchange.jusercore.model.user.status.UserAccountStatus;
 @Entity (name = "users")
 @Table (
                name = "users",
-               indexes =
-               @Index (
-                               name = "confirmation_key",
-                               unique = true,
-                               columnList = "user_confirm_key"
-               )
+               indexes = {
+                       @Index (
+                                       name = "confirmation_key",
+                                       unique = true,
+                                       columnList = "user_confirm_key"
+                       ),
+                       @Index (
+                                       name = "user_name",
+                                       unique = true,
+                                       columnList = "user_name"
+                       )
+               }
 )
 @NamedQueries (
                {