]> git.mxchange.org Git - juser-core.git/commitdiff
No index-reclaration need as this causes double indexes
authorRoland Haeder <roland@mxchange.org>
Sat, 12 Mar 2016 18:08:46 +0000 (19:08 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 12 Mar 2016 18:08:46 +0000 (19:08 +0100)
src/org/mxchange/jusercore/model/email_address/EmailAddressChange.java

index 153163056b1c11e8dff886133e926b8415dd722f..28e11bcecd810c6a98ede0beea331761ad40a2e5 100644 (file)
@@ -27,7 +27,6 @@ import javax.persistence.Enumerated;
 import javax.persistence.GeneratedValue;
 import javax.persistence.GenerationType;
 import javax.persistence.Id;
-import javax.persistence.Index;
 import javax.persistence.JoinColumn;
 import javax.persistence.NamedQueries;
 import javax.persistence.NamedQuery;
@@ -45,12 +44,7 @@ import org.mxchange.jusercore.model.user.User;
  * @author Roland Haeder<roland@mxchange.org>
  */
 @Entity (name = "email_changes")
-@Table (
-               name = "email_changes",
-               indexes = {
-                       @Index (name = "hash", columnList = "email_change_hash", unique = true)
-               }
-)
+@Table (name = "email_changes")
 @NamedQueries (
                @NamedQuery (name = "SearchEmailChangeByEmail", query = "SELECT e FROM email_changes AS e WHERE LOWER(e.emailAddress) LIKE LOWER(:email)")
 )