Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
6.2.X EE, 7.0.0 Alpha 2
-
6.2.x
-
Committed
Description
If you have a finder with arrayable-operator on one column and a comparator on another like so:
<finder name="G_F_NotS" return-type="Collection"> <finder-column name="groupId" /> <finder-column name="folderId" arrayable-operator="OR" /> <finder-column name="status" comparator="!=" /> </finder>
after running service builder, the generated code in *PersistenceImpl.java should look like:
if ((list != null) && !list.isEmpty()) { for (BookmarksEntry bookmarksEntry : list) { if ((groupId != bookmarksEntry.getGroupId()) || (status == bookmarksEntry.getStatus())) { list = null; break; } } }
instead it looked like:
if ((list != null) && !list.isEmpty()) { for (BookmarksEntry bookmarksEntry : list) { if ((groupId != bookmarksEntry.getGroupId()) || (status != bookmarksEntry.getStatus())) { list = null; break; } } }
Attachments
Issue Links
- relates
-
LPE-14378 Finder cache is not used if columns have arrayable-operator and comparator
-
- Closed
-