Skip to content

Commit a431b5b

Browse files
CrescenzoRegaLFbrianchandotcom
authored andcommitted
LPD-72069 Autogenerated Code (buildService)
1 parent 8d53808 commit a431b5b

3 files changed

Lines changed: 3 additions & 22 deletions

File tree

modules/apps/contacts/contacts-service/src/main/java/com/liferay/contacts/service/persistence/impl/EntryPersistenceImpl.java

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,11 @@
3434
import com.liferay.portal.kernel.util.PropsKeys;
3535
import com.liferay.portal.kernel.util.PropsUtil;
3636
import com.liferay.portal.kernel.util.ProxyUtil;
37-
import com.liferay.portal.kernel.util.StringUtil;
3837

3938
import java.io.Serializable;
4039

4140
import java.lang.reflect.InvocationHandler;
4241

43-
import java.util.Collections;
4442
import java.util.Date;
4543
import java.util.List;
4644
import java.util.Map;
@@ -704,23 +702,6 @@ public Entry fetchByU_EA(
704702
}
705703
}
706704
else {
707-
if (list.size() > 1) {
708-
Collections.sort(list, Collections.reverseOrder());
709-
710-
if (_log.isWarnEnabled()) {
711-
if (!useFinderCache) {
712-
finderArgs = new Object[] {
713-
userId, emailAddress
714-
};
715-
}
716-
717-
_log.warn(
718-
"EntryPersistenceImpl.fetchByU_EA(long, String, boolean) with parameters (" +
719-
StringUtil.merge(finderArgs) +
720-
") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.");
721-
}
722-
}
723-
724705
Entry entry = list.get(0);
725706

726707
result = entry;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
create index IX_C257DE32 on Contacts_Entry (userId, emailAddress[$COLUMN_LENGTH:254$]);
1+
create unique index IX_C257DE32 on Contacts_Entry (userId, emailAddress[$COLUMN_LENGTH:254$]);

modules/apps/contacts/contacts-service/src/main/resources/service.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
##
1414

1515
build.namespace=com.liferay.contacts.service
16-
build.number=2
17-
build.date=1343264272450
16+
build.number=3
17+
build.date=1763562979792

0 commit comments

Comments
 (0)