<?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>Finder in service builder use wrong table name.</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=115135254" />
  <subtitle>Finder in service builder use wrong table name.</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=115135254</id>
  <updated>2026-04-04T02:31:35Z</updated>
  <dc:date>2026-04-04T02:31:35Z</dc:date>
  <entry>
    <title>RE: Finder in service builder use wrong table name.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117589951" />
    <author>
      <name>Joaquin Cabal</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117589951</id>
    <updated>2019-10-28T18:30:50Z</updated>
    <published>2019-10-28T18:30:50Z</published>
    <summary type="html">Sorry for delay David. I just see this. I could fix it. The problem was other. The tables were not created. Just the first time create the table  ok but after that in future deploys I need to do some workaround. &lt;a href="https://issues.liferay.com/browse/LPS-67688"&gt;https://issues.liferay.com/browse/LPS-67688 . Thanks!&lt;/a&gt;</summary>
    <dc:creator>Joaquin Cabal</dc:creator>
    <dc:date>2019-10-28T18:30:50Z</dc:date>
  </entry>
  <entry>
    <title>RE: Finder in service builder use wrong table name.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117187288" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117187288</id>
    <updated>2019-09-17T00:38:48Z</updated>
    <published>2019-09-17T00:38:48Z</published>
    <summary type="html">what version of Liferay is this?</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2019-09-17T00:38:48Z</dc:date>
  </entry>
  <entry>
    <title>RE: Finder in service builder use wrong table name.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117184513" />
    <author>
      <name>Joaquin Cabal</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117184513</id>
    <updated>2019-09-16T19:12:08Z</updated>
    <published>2019-09-16T19:12:08Z</published>
    <summary type="html">Yes David! sorry.&lt;br /&gt;&amp;lt;namespace&amp;gt;NAMESPACE_X&amp;lt;/namespace&amp;gt;&lt;br /&gt;&amp;lt;entity local-service=&amp;#34;true&amp;#34;  name=&amp;#34;Article&amp;#34; remote-service=&amp;#34;true&amp;#34; uuid=&amp;#34;true&amp;#34;&amp;gt;&lt;br /&gt;private static final String _SQL_SELECT_ARTICLE  = &amp;#34;SELECT article FROM Article article&amp;#34;</summary>
    <dc:creator>Joaquin Cabal</dc:creator>
    <dc:date>2019-09-16T19:12:08Z</dc:date>
  </entry>
  <entry>
    <title>RE: Finder in service builder use wrong table name.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=115346574" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=115346574</id>
    <updated>2019-09-13T22:00:38Z</updated>
    <published>2019-09-13T22:00:38Z</published>
    <summary type="html">hey, that&amp;#39;s really hard to read, can you strip out all of the styling stuff so I can see just the code?</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2019-09-13T22:00:38Z</dc:date>
  </entry>
  <entry>
    <title>RE: Finder in service builder use wrong table name.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=115282003" />
    <author>
      <name>Joaquin Cabal</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=115282003</id>
    <updated>2019-09-13T17:16:15Z</updated>
    <published>2019-09-13T17:16:15Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Thanks David.&lt;br&gt;&lt;br&gt;Yes the service is like this:&lt;br&gt;&lt;pre&gt;&lt;code&gt;[color=#a9b7c6][font="DejaVu Sans Mono"][size=9pt][color=#e8bf6a]&amp;lt;namespace&amp;gt;[/color]NAMESPACE_X[color=#e8bf6a]&amp;lt;/namespace&amp;gt;[/color][/size][/font][/color]&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;[color=#a9b7c6][font="DejaVu Sans Mono"][size=9pt][color=#e8bf6a]&amp;lt;entity [ color][color="#e8bf6a]"&amp;gt;[/color][/size][/font][/color]&amp;lt;/entity&amp;gt;&lt;/code&gt;&lt;/pre&gt;In the persistenceImpl the generated query for table is:&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;[color=#a9b7c6][font="DejaVu Sans Mono"][size=9pt][color=#cc7832]private static final [/color]String [color=#9876aa][i]_SQL_SELECT_ARTICLE [/i][/color]= [color=#6a8759]"SELECT article FROM Article article"[/color][color=#cc7832];[/color][/size][/font][/color]&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;So is no generating the "NAMESPACE_X_Article" table name. Or at least I dont see where it adds the namespace&lt;br&gt;The query does not work and print the sql like "Article" instead of "NAMESPACE_X_Article"&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Joaquin Cabal</dc:creator>
    <dc:date>2019-09-13T17:16:15Z</dc:date>
  </entry>
  <entry>
    <title>RE: Finder in service builder use wrong table name.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=115235905" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=115235905</id>
    <updated>2019-09-10T03:29:32Z</updated>
    <published>2019-09-10T03:29:32Z</published>
    <summary type="html">just the finder is wrong, or does the table name also miss the X?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I mean, the &amp;lt;entity /&amp;gt; tag has a table attribute to specify the actual table name that won&amp;#39;t include the namespace...</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2019-09-10T03:29:32Z</dc:date>
  </entry>
  <entry>
    <title>Finder in service builder use wrong table name.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=115135253" />
    <author>
      <name>Joaquin Cabal</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=115135253</id>
    <updated>2019-09-08T19:58:46Z</updated>
    <published>2019-09-08T19:58:46Z</published>
    <summary type="html">HI! Im using service builder for create a model of Articles. Have a namespace x. When try to create a finder. It use the table name without the namespace. Is this a bug? Or Im doing somethig wrong? Thanks!   Info: Liferay DXP 7.0.10</summary>
    <dc:creator>Joaquin Cabal</dc:creator>
    <dc:date>2019-09-08T19:58:46Z</dc:date>
  </entry>
</feed>
