]> git.mxchange.org Git - juser-login-core.git/commitdiff
Added named query AllEmailAddressChanges
authorRoland Haeder <roland@mxchange.org>
Sat, 12 Mar 2016 18:19:35 +0000 (19:19 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 12 Mar 2016 18:25:14 +0000 (19:25 +0100)
src/org/mxchange/jusercore/model/email_address/EmailAddressChange.java

index 28e11bcecd810c6a98ede0beea331761ad40a2e5..492739ad47387169c04cff0decb0595db8b5214a 100644 (file)
@@ -46,7 +46,10 @@ import org.mxchange.jusercore.model.user.User;
 @Entity (name = "email_changes")
 @Table (name = "email_changes")
 @NamedQueries (
-               @NamedQuery (name = "SearchEmailChangeByEmail", query = "SELECT e FROM email_changes AS e WHERE LOWER(e.emailAddress) LIKE LOWER(:email)")
+               value = {
+                       @NamedQuery (name = "SearchEmailChangeByEmail", query = "SELECT e FROM email_changes AS e WHERE LOWER(e.emailAddress) LIKE LOWER(:email)"),
+                       @NamedQuery (name = "AllEmailAddressChanges", query = "SELECT e.emailAddress FROM email_changes AS e ORDER BY e.emailChangeId ASC")
+               }
 )
 public class EmailAddressChange implements ChangeableEmailAddress {