<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>RestrictionsFactoryUtil.ne method in Liferay 7.3 fails with empty spaces</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120779263" />
  <subtitle>RestrictionsFactoryUtil.ne method in Liferay 7.3 fails with empty spaces</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120779263</id>
  <updated>2026-04-05T07:39:20Z</updated>
  <dc:date>2026-04-05T07:39:20Z</dc:date>
  <entry>
    <title>RestrictionsFactoryUtil.ne method in Liferay 7.3 fails with empty spaces</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120779262" />
    <author>
      <name>Kevin Neibarger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120779262</id>
    <updated>2021-05-11T14:20:36Z</updated>
    <published>2021-05-11T14:20:36Z</published>
    <summary type="html">&lt;p&gt;So, I'm converting my companies flagship product from Liferay 6.2 to
  Liferay 7.3 GA7 and I've noticed either a possible bug or something
  that's been removed. I'm just wondering if anything replaces the old functionality. &lt;/p&gt;
&lt;p&gt;In 6.2, I would call a DynamicQuery using the OR Junction and
  appending the following&lt;/p&gt;
&lt;p&gt;

  &lt;strong&gt;junction.add(RestrictionsFactoryUtil.ne(&amp;quot;&amp;lt;COLUMN_NAME&amp;gt;&amp;quot;, &amp;quot;&amp;quot;));&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;It would always return results, but after converting to 7.3, it
  returns 0 results every time.. I noticed it when generating a list of
  state codes. Occasionally when we load data into our DB we will have
  an empty space for a row. We can clean this up, but sometimes it may
  be needed per the DB admins. What's odd, is that is no errors, the
  query just returns 0 results. When I remove that line it works fine. &lt;/p&gt;
&lt;p&gt;I was wondering, is this a bug or something that was removed?&lt;/p&gt;</summary>
    <dc:creator>Kevin Neibarger</dc:creator>
    <dc:date>2021-05-11T14:20:36Z</dc:date>
  </entry>
</feed>
