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;
* @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)")
)