<?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>Get all tag of article</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114483360" />
  <subtitle>Get all tag of article</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114483360</id>
  <updated>2026-04-06T11:47:00Z</updated>
  <dc:date>2026-04-06T11:47:00Z</dc:date>
  <entry>
    <title>RE: Get all tag of article</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114487778" />
    <author>
      <name>Andrew Jardine</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114487778</id>
    <updated>2019-07-29T16:58:17Z</updated>
    <published>2019-07-29T16:58:17Z</published>
    <summary type="html">Hi Francesco,Are you looking for the SQL statement because you want to run some kind of a report against the data? or do you plan to use the results in the site? If  you plan to use it in your site (either through a template, or a custom portlet, etc) then you should go through the API rather than querying the database directly. There are piles of reasons while I say this, and you will find multiple threads in the forum explaining why it is a bad idea. With all that disclaimer stuff out of the way, the table relationships ...&lt;br /&gt;JournalArticle.resourcePrimKey -&amp;gt; AssetEntry.classPKAssetEntry.entryId -&amp;gt; AssetEntries_AssetTags.entryIdAssetEntries_AssetTags.tagId -&amp;gt; AssetTag.tagId&lt;br /&gt;If you write a query joining those columns and tables, you should find what you need. Alternatively, you could just use the Script tab in the Server Administration area of the control panel and leverage the AssetEntryLocalSeviceUtil.getTags(long classNameId, long classPK) method to do that same thing -- classNameId you can lookup in the database our just use the PortalUtil.getClassNameId(JournalArticle.class); to get a hold of it.&lt;br /&gt; </summary>
    <dc:creator>Andrew Jardine</dc:creator>
    <dc:date>2019-07-29T16:58:17Z</dc:date>
  </entry>
  <entry>
    <title>Get all tag of article</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114483359" />
    <author>
      <name>Francesco Laquintana</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114483359</id>
    <updated>2019-07-29T15:35:01Z</updated>
    <published>2019-07-29T15:35:01Z</published>
    <summary type="html">How can i get all tags of a journal article  using a query on database ? I use Liferay 6.2</summary>
    <dc:creator>Francesco Laquintana</dc:creator>
    <dc:date>2019-07-29T15:35:01Z</dc:date>
  </entry>
</feed>
