From: Roland Haeder Date: Mon, 12 Oct 2015 16:19:53 +0000 (+0200) Subject: created unique index on login name X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0a64797432f7b67fc56f033a63d580f950eaf690;p=juser-login-core.git created unique index on login name --- diff --git a/src/org/mxchange/jusercore/model/user/LoginUser.java b/src/org/mxchange/jusercore/model/user/LoginUser.java index 17829cc..1ca353e 100644 --- a/src/org/mxchange/jusercore/model/user/LoginUser.java +++ b/src/org/mxchange/jusercore/model/user/LoginUser.java @@ -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 ( {