fix error

This commit is contained in:
Peter Hormanns 2011-05-20 16:26:37 +00:00
parent 064001b480
commit 1270cd8641

View File

@ -77,7 +77,7 @@ public class EMailAddress extends AbstractEntity implements Serializable {
}
String[] doms = parts[1].split("\\.");
StringBuilder query = new StringBuilder("localpart='" + parts[0]
+ "' AND ( ( subdomain IS NULL AND domain.name='" + parts[1]
+ "' AND ( ( obj.subdomain IS NULL AND obj.domain.name='" + parts[1]
+ "' )");
for (int subdomLevel = 1; subdomLevel < doms.length - 1; ++subdomLevel) {
String subdom = "";
@ -86,8 +86,8 @@ public class EMailAddress extends AbstractEntity implements Serializable {
String domain = "";
for (int n = subdomLevel; n < doms.length; ++n)
domain += "." + doms[n];
query.append(" OR ( subdomain='" + subdom.substring(1)
+ "' AND domain.name='" + domain.substring(1) + "' )");
query.append(" OR ( obj.subdomain='" + subdom.substring(1)
+ "' AND obj.domain.name='" + domain.substring(1) + "' )");
}
query.append(" )");
String queryString = query.toString();