Skip to content

Commit 741565c

Browse files
CrescenzoRegaLFbrianchandotcom
authored andcommitted
LPD-71670 Autogenerated Code (buildService)
1 parent 807584c commit 741565c

File tree

6 files changed

+6
-79
lines changed

6 files changed

+6
-79
lines changed

modules/apps/account/account-service/src/main/java/com/liferay/account/service/persistence/impl/AccountEntryOrganizationRelPersistenceImpl.java

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,11 @@
3232
import com.liferay.portal.kernel.util.PropsKeys;
3333
import com.liferay.portal.kernel.util.PropsUtil;
3434
import com.liferay.portal.kernel.util.ProxyUtil;
35-
import com.liferay.portal.kernel.util.StringUtil;
3635

3736
import java.io.Serializable;
3837

3938
import java.lang.reflect.InvocationHandler;
4039

41-
import java.util.Collections;
4240
import java.util.List;
4341
import java.util.Map;
4442
import java.util.Set;
@@ -1240,23 +1238,6 @@ public AccountEntryOrganizationRel fetchByA_O(
12401238
}
12411239
}
12421240
else {
1243-
if (list.size() > 1) {
1244-
Collections.sort(list, Collections.reverseOrder());
1245-
1246-
if (_log.isWarnEnabled()) {
1247-
if (!useFinderCache) {
1248-
finderArgs = new Object[] {
1249-
accountEntryId, organizationId
1250-
};
1251-
}
1252-
1253-
_log.warn(
1254-
"AccountEntryOrganizationRelPersistenceImpl.fetchByA_O(long, long, boolean) with parameters (" +
1255-
StringUtil.merge(finderArgs) +
1256-
") 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.");
1257-
}
1258-
}
1259-
12601241
AccountEntryOrganizationRel accountEntryOrganizationRel =
12611242
list.get(0);
12621243

modules/apps/account/account-service/src/main/java/com/liferay/account/service/persistence/impl/AccountEntryUserRelPersistenceImpl.java

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,11 @@
3232
import com.liferay.portal.kernel.util.PropsKeys;
3333
import com.liferay.portal.kernel.util.PropsUtil;
3434
import com.liferay.portal.kernel.util.ProxyUtil;
35-
import com.liferay.portal.kernel.util.StringUtil;
3635

3736
import java.io.Serializable;
3837

3938
import java.lang.reflect.InvocationHandler;
4039

41-
import java.util.Collections;
4240
import java.util.List;
4341
import java.util.Map;
4442
import java.util.Set;
@@ -1226,23 +1224,6 @@ public AccountEntryUserRel fetchByAEI_AUI(
12261224
}
12271225
}
12281226
else {
1229-
if (list.size() > 1) {
1230-
Collections.sort(list, Collections.reverseOrder());
1231-
1232-
if (_log.isWarnEnabled()) {
1233-
if (!useFinderCache) {
1234-
finderArgs = new Object[] {
1235-
accountEntryId, accountUserId
1236-
};
1237-
}
1238-
1239-
_log.warn(
1240-
"AccountEntryUserRelPersistenceImpl.fetchByAEI_AUI(long, long, boolean) with parameters (" +
1241-
StringUtil.merge(finderArgs) +
1242-
") 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.");
1243-
}
1244-
}
1245-
12461227
AccountEntryUserRel accountEntryUserRel = list.get(0);
12471228

12481229
result = accountEntryUserRel;

modules/apps/account/account-service/src/main/java/com/liferay/account/service/persistence/impl/AccountGroupRelPersistenceImpl.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;
@@ -1810,23 +1808,6 @@ public AccountGroupRel fetchByA_C_C(
18101808
}
18111809
}
18121810
else {
1813-
if (list.size() > 1) {
1814-
Collections.sort(list, Collections.reverseOrder());
1815-
1816-
if (_log.isWarnEnabled()) {
1817-
if (!useFinderCache) {
1818-
finderArgs = new Object[] {
1819-
accountGroupId, classNameId, classPK
1820-
};
1821-
}
1822-
1823-
_log.warn(
1824-
"AccountGroupRelPersistenceImpl.fetchByA_C_C(long, long, long, boolean) with parameters (" +
1825-
StringUtil.merge(finderArgs) +
1826-
") 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.");
1827-
}
1828-
}
1829-
18301811
AccountGroupRel accountGroupRel = list.get(0);
18311812

18321813
result = accountGroupRel;

modules/apps/account/account-service/src/main/java/com/liferay/account/service/persistence/impl/AccountRolePersistenceImpl.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949

5050
import java.lang.reflect.InvocationHandler;
5151

52-
import java.util.Collections;
5352
import java.util.List;
5453
import java.util.Map;
5554
import java.util.Objects;
@@ -2454,21 +2453,6 @@ public AccountRole fetchByRoleId(long roleId, boolean useFinderCache) {
24542453
}
24552454
}
24562455
else {
2457-
if (list.size() > 1) {
2458-
Collections.sort(list, Collections.reverseOrder());
2459-
2460-
if (_log.isWarnEnabled()) {
2461-
if (!useFinderCache) {
2462-
finderArgs = new Object[] {roleId};
2463-
}
2464-
2465-
_log.warn(
2466-
"AccountRolePersistenceImpl.fetchByRoleId(long, boolean) with parameters (" +
2467-
StringUtil.merge(finderArgs) +
2468-
") 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.");
2469-
}
2470-
}
2471-
24722456
AccountRole accountRole = list.get(0);
24732457

24742458
result = accountRole;

modules/apps/account/account-service/src/main/resources/META-INF/sql/indexes.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ create index IX_48CB043 on AccountEntry (companyId, status);
33
create index IX_908C3410 on AccountEntry (userId, type_[$COLUMN_LENGTH:75$]);
44
create index IX_6901A669 on AccountEntry (uuid_[$COLUMN_LENGTH:75$]);
55

6-
create index IX_EC6CC41D on AccountEntryOrganizationRel (accountEntryId, organizationId);
6+
create unique index IX_EC6CC41D on AccountEntryOrganizationRel (accountEntryId, organizationId);
77
create index IX_2FA4FA69 on AccountEntryOrganizationRel (organizationId);
88

9-
create index IX_ED720A80 on AccountEntryUserRel (accountEntryId, accountUserId);
9+
create unique index IX_ED720A80 on AccountEntryUserRel (accountEntryId, accountUserId);
1010
create index IX_4EA60AB4 on AccountEntryUserRel (accountUserId);
1111

1212
create index IX_38BDB33 on AccountGroup (companyId, defaultAccountGroup);
@@ -15,10 +15,10 @@ create index IX_8EE6A92F on AccountGroup (companyId, name[$COLUMN_LENGTH:75$]);
1515
create index IX_B4733E65 on AccountGroup (companyId, type_[$COLUMN_LENGTH:75$]);
1616
create index IX_E86A36FC on AccountGroup (uuid_[$COLUMN_LENGTH:75$]);
1717

18-
create index IX_448835E3 on AccountGroupRel (accountGroupId, classNameId, classPK);
18+
create unique index IX_448835E3 on AccountGroupRel (accountGroupId, classNameId, classPK);
1919
create index IX_E31F0762 on AccountGroupRel (classNameId, classPK);
2020

2121
create index IX_3A47CDD on AccountRole (accountEntryId);
2222
create index IX_6BCBD313 on AccountRole (companyId, accountEntryId);
2323
create unique index IX_88B680FE on AccountRole (companyId, externalReferenceCode[$COLUMN_LENGTH:75$]);
24-
create index IX_714A358E on AccountRole (roleId);
24+
create unique index IX_714A358E on AccountRole (roleId);

modules/apps/account/account-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.account.service
16-
build.number=1
17-
build.date=1564193908519
16+
build.number=2
17+
build.date=1763536741376

0 commit comments

Comments
 (0)