From: Roland Haeder Date: Sat, 12 Mar 2016 18:08:46 +0000 (+0100) Subject: No index-reclaration need as this causes double indexes X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=45448de53c2f6f417e17d2ad63363a9573871184;p=juser-core.git No index-reclaration need as this causes double indexes --- diff --git a/src/org/mxchange/jusercore/model/email_address/EmailAddressChange.java b/src/org/mxchange/jusercore/model/email_address/EmailAddressChange.java index 1531630..28e11bc 100644 --- a/src/org/mxchange/jusercore/model/email_address/EmailAddressChange.java +++ b/src/org/mxchange/jusercore/model/email_address/EmailAddressChange.java @@ -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 */ @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)") )