<?xml version="1.0"?>
<!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 7.4.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_7_4_0.dtd">

<service-builder auto-import-default-references="false" auto-namespace-tables="false" change-tracking-enabled="true" dependency-injector="ds" mvcc-enabled="true" package-path="com.liferay.journal">
	<namespace>Journal</namespace>
	<entity local-service="true" name="JournalArticle" remote-service="true" trash-enabled="true" uuid="true">

		<!-- PK fields -->

		<column name="id" primary="true" type="long" />

		<!-- Resource -->

		<column filter-primary="true" name="resourcePrimKey" type="long" />

		<!-- Group instance -->

		<column name="groupId" type="long" />

		<!-- Audit fields -->

		<column name="companyId" type="long" />
		<column name="userId" type="long" />
		<column name="userName" type="String" uad-anonymize-field-name="fullName" />
		<column name="createDate" type="Date" />
		<column name="modifiedDate" type="Date" />

		<!-- Other fields -->

		<column name="externalReferenceCode" type="String" />
		<column name="folderId" type="long" />
		<column name="classNameId" type="long" />
		<column name="classPK" type="long" />
		<column name="treePath" type="String" />
		<column accessor="true" name="articleId" type="String" />
		<column change-tracking-resolution-type="merge" name="version" type="double" />
		<column name="urlTitle" type="String" uad-nonanonymizable="true" />
		<column name="DDMStructureKey" type="String" />
		<column name="DDMTemplateKey" type="String" />
		<column name="defaultLanguageId" type="String" />
		<column name="layoutUuid" type="String" />
		<column name="displayDate" type="Date" />
		<column change-tracking-resolution-type="merge" name="expirationDate" type="Date" />
		<column name="reviewDate" type="Date" />
		<column name="indexable" type="boolean" />
		<column name="smallImage" type="boolean" />
		<column name="smallImageId" type="long" />
		<column name="smallImageURL" type="String" />
		<column name="lastPublishDate" type="Date" />
		<column name="status" type="int" />
		<column change-tracking-resolution-type="merge" name="statusByUserId" type="long" />
		<column change-tracking-resolution-type="merge" name="statusByUserName" type="String" uad-anonymize-field-name="fullName" />
		<column change-tracking-resolution-type="merge" name="statusDate" type="Date" />

		<!-- Order -->

		<order>
			<order-column name="articleId" order-by="asc" />
			<order-column name="version" order-by="desc" />
		</order>

		<!-- Finder methods -->

		<finder name="GroupId" return-type="Collection">
			<finder-column name="groupId" />
		</finder>
		<finder name="CompanyId" return-type="Collection">
			<finder-column name="companyId" />
		</finder>
		<finder name="DDMStructureKey" return-type="Collection">
			<finder-column arrayable-operator="OR" name="DDMStructureKey" />
		</finder>
		<finder name="DDMTemplateKey" return-type="Collection">
			<finder-column name="DDMTemplateKey" />
		</finder>
		<finder name="LayoutUuid" return-type="Collection">
			<finder-column name="layoutUuid" />
		</finder>
		<finder name="SmallImageId" return-type="Collection">
			<finder-column name="smallImageId" />
		</finder>
		<finder name="R_I" return-type="Collection">
			<finder-column name="resourcePrimKey" />
			<finder-column name="indexable" />
		</finder>
		<finder name="R_ST" return-type="Collection">
			<finder-column name="resourcePrimKey" />
			<finder-column arrayable-operator="OR" name="status" />
		</finder>
		<finder name="G_U" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="userId" />
		</finder>
		<finder name="G_ERC" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="externalReferenceCode" />
		</finder>
		<finder name="G_F" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column arrayable-operator="OR" name="folderId" />
		</finder>
		<finder name="G_A" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="articleId" />
		</finder>
		<finder name="G_UT" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="urlTitle" />
		</finder>
		<finder name="G_DDMSK" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="DDMStructureKey" />
		</finder>
		<finder name="G_DDMTK" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="DDMTemplateKey" />
		</finder>
		<finder name="G_L" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="layoutUuid" />
		</finder>
		<finder name="G_NotL" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column arrayable-operator="AND" comparator="!=" name="layoutUuid" />
		</finder>
		<finder name="G_ST" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="status" />
		</finder>
		<finder name="C_V" return-type="Collection">
			<finder-column name="companyId" />
			<finder-column name="version" />
		</finder>
		<finder name="C_ST" return-type="Collection">
			<finder-column name="companyId" />
			<finder-column name="status" />
		</finder>
		<finder name="C_NotST" return-type="Collection">
			<finder-column name="companyId" />
			<finder-column comparator="!=" name="status" />
		</finder>
		<finder name="LtD_S" return-type="Collection">
			<finder-column comparator="&lt;" name="displayDate" />
			<finder-column name="status" />
		</finder>
		<finder name="R_I_S" return-type="Collection">
			<finder-column name="resourcePrimKey" />
			<finder-column name="indexable" />
			<finder-column arrayable-operator="OR" name="status" />
		</finder>
		<finder name="G_U_C" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="userId" />
			<finder-column name="classNameId" />
		</finder>
		<finder name="G_ERC_V" return-type="JournalArticle" unique="true">
			<finder-column name="groupId" />
			<finder-column name="externalReferenceCode" />
			<finder-column name="version" />
		</finder>
		<finder name="G_F_ST" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="folderId" />
			<finder-column arrayable-operator="OR" name="status" />
		</finder>
		<finder name="G_C_C" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="classNameId" />
			<finder-column name="classPK" />
		</finder>
		<finder name="G_C_DDMSK" return-type="JournalArticle">
			<finder-column name="groupId" />
			<finder-column name="classNameId" />
			<finder-column name="DDMStructureKey" />
		</finder>
		<finder name="G_C_DDMTK" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="classNameId" />
			<finder-column name="DDMTemplateKey" />
		</finder>
		<finder name="G_C_L" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="classNameId" />
			<finder-column name="layoutUuid" />
		</finder>
		<finder name="G_A_V" return-type="JournalArticle" unique="true">
			<finder-column name="groupId" />
			<finder-column name="articleId" />
			<finder-column name="version" />
		</finder>
		<finder name="G_A_ST" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="articleId" />
			<finder-column arrayable-operator="OR" name="status" />
		</finder>
		<finder name="G_A_NotST" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="articleId" />
			<finder-column comparator="!=" name="status" />
		</finder>
		<finder name="G_UT_ST" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="urlTitle" />
			<finder-column name="status" />
		</finder>
		<finder name="C_V_ST" return-type="Collection">
			<finder-column name="companyId" />
			<finder-column name="version" />
			<finder-column name="status" />
		</finder>
		<finder name="G_F_C_NotST" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="folderId" />
			<finder-column name="classNameId" />
			<finder-column comparator="!=" name="status" />
		</finder>
	</entity>
	<entity local-service="false" name="JournalArticleLocalization" remote-service="false">

		<!-- PK fields -->

		<column name="articleLocalizationId" primary="true" type="long" />

		<!-- Audit fields -->

		<column name="companyId" type="long" />

		<!-- Other fields -->

		<column name="articlePK" type="long" />
		<column name="title" type="String" />
		<column name="description" type="String" />
		<column name="languageId" type="String" />

		<!-- Finder methods -->

		<finder name="ArticlePK" return-type="Collection">
			<finder-column name="articlePK" />
		</finder>
		<finder name="C_A" return-type="JournalArticleLocalization">
			<finder-column name="companyId" />
			<finder-column name="articlePK" />
		</finder>
		<finder name="A_L" return-type="JournalArticleLocalization" unique="true">
			<finder-column name="articlePK" />
			<finder-column name="languageId" />
		</finder>
		<finder name="C_A_L" return-type="JournalArticleLocalization" unique="true">
			<finder-column name="companyId" />
			<finder-column name="articlePK" />
			<finder-column name="languageId" />
		</finder>
		<finder name="C_A_T_L" return-type="JournalArticleLocalization" unique="true">
			<finder-column name="companyId" />
			<finder-column name="articlePK" />
			<finder-column name="title" />
			<finder-column name="languageId" />
		</finder>
	</entity>
	<entity local-service="true" name="JournalArticleResource" remote-service="false" uuid="true">

		<!-- PK fields -->

		<column name="resourcePrimKey" primary="true" type="long" />

		<!-- Group instance -->

		<column name="groupId" type="long" />

		<!-- Audit fields -->

		<column name="companyId" type="long" />

		<!-- Other fields -->

		<column name="articleId" type="String" />

		<!-- Finder methods -->

		<finder name="GroupId" return-type="Collection">
			<finder-column name="groupId" />
		</finder>
		<finder name="G_A" return-type="JournalArticleResource" unique="true">
			<finder-column name="groupId" />
			<finder-column name="articleId" />
		</finder>
	</entity>
	<entity local-service="true" name="JournalContentSearch" plural-name="JournalContentSearchs" remote-service="false">

		<!-- PK fields -->

		<column name="contentSearchId" primary="true" type="long" />

		<!-- Group instance -->

		<column name="groupId" type="long" />

		<!-- Audit fields -->

		<column name="companyId" type="long" />

		<!-- Other fields -->

		<column name="privateLayout" type="boolean" />
		<column name="layoutId" type="long" />
		<column name="portletId" type="String" />
		<column name="articleId" type="String" />

		<!-- Finder methods -->

		<finder name="CompanyId" return-type="Collection">
			<finder-column name="companyId" />
		</finder>
		<finder name="PortletId" return-type="Collection">
			<finder-column name="portletId" />
		</finder>
		<finder name="ArticleId" return-type="Collection">
			<finder-column name="articleId" />
		</finder>
		<finder name="G_P" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="privateLayout" />
		</finder>
		<finder name="G_A" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="articleId" />
		</finder>
		<finder name="G_P_L" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="privateLayout" />
			<finder-column name="layoutId" />
		</finder>
		<finder name="G_P_A" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="privateLayout" />
			<finder-column name="articleId" />
		</finder>
		<finder name="G_P_L_P" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="privateLayout" />
			<finder-column name="layoutId" />
			<finder-column name="portletId" />
		</finder>
		<finder name="G_P_L_P_A" return-type="JournalContentSearch" unique="true">
			<finder-column name="groupId" />
			<finder-column name="privateLayout" />
			<finder-column name="layoutId" />
			<finder-column name="portletId" />
			<finder-column name="articleId" />
		</finder>
	</entity>
	<entity local-service="true" name="JournalFeed" remote-service="true" uuid="true">

		<!-- PK fields -->

		<column name="id" primary="true" type="long" />

		<!-- Group instance -->

		<column name="groupId" type="long" />

		<!-- Audit fields -->

		<column name="companyId" type="long" />
		<column name="userId" type="long" />
		<column name="userName" type="String" uad-anonymize-field-name="fullName" />
		<column name="createDate" type="Date" />
		<column name="modifiedDate" type="Date" />

		<!-- Other fields -->

		<column name="feedId" type="String" />
		<column name="name" type="String" uad-nonanonymizable="true" />
		<column name="description" type="String" uad-nonanonymizable="true" />
		<column name="DDMStructureKey" type="String" />
		<column name="DDMTemplateKey" type="String" />
		<column name="DDMRendererTemplateKey" type="String" />
		<column name="delta" type="int" />
		<column name="orderByCol" type="String" />
		<column name="orderByType" type="String" />
		<column name="targetLayoutFriendlyUrl" type="String" />
		<column name="targetPortletId" type="String" />
		<column name="contentField" type="String" />
		<column name="feedFormat" type="String" />
		<column name="feedVersion" type="double" />
		<column name="lastPublishDate" type="Date" />

		<!-- Order -->

		<order by="asc">
			<order-column name="feedId" />
		</order>

		<!-- Finder methods -->

		<finder name="GroupId" return-type="Collection">
			<finder-column name="groupId" />
		</finder>
		<finder name="G_F" return-type="JournalFeed" unique="true">
			<finder-column name="groupId" />
			<finder-column name="feedId" />
		</finder>
	</entity>
	<entity external-reference-code="group" local-service="true" name="JournalFolder" remote-service="true" trash-enabled="true" uuid="true">

		<!-- PK fields -->

		<column accessor="true" container-model="true" name="folderId" primary="true" type="long" />

		<!-- Group instance -->

		<column name="groupId" type="long" />

		<!-- Audit fields -->

		<column name="companyId" type="long" />
		<column name="userId" type="long" />
		<column name="userName" type="String" uad-anonymize-field-name="fullName" />
		<column name="createDate" type="Date" />
		<column name="modifiedDate" type="Date" />

		<!-- Other fields -->

		<column name="parentFolderId" parent-container-model="true" type="long" />
		<column name="treePath" type="String" />
		<column name="name" type="String" uad-nonanonymizable="true" />
		<column name="description" type="String" uad-nonanonymizable="true" />
		<column name="restrictionType" type="int" />
		<column name="lastPublishDate" type="Date" />
		<column name="status" type="int" />
		<column name="statusByUserId" type="long" />
		<column name="statusByUserName" type="String" uad-anonymize-field-name="fullName" />
		<column name="statusDate" type="Date" />

		<!-- Order -->

		<order by="asc">
			<order-column name="parentFolderId" />
			<order-column case-sensitive="false" name="name" />
		</order>

		<!-- Finder methods -->

		<finder name="GroupId" return-type="Collection">
			<finder-column name="groupId" />
		</finder>
		<finder name="CompanyId" return-type="Collection">
			<finder-column name="companyId" />
		</finder>
		<finder name="G_P" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="parentFolderId" />
		</finder>
		<finder name="G_N" return-type="JournalFolder">
			<finder-column name="groupId" />
			<finder-column name="name" />
		</finder>
		<finder name="C_NotS" return-type="Collection">
			<finder-column name="companyId" />
			<finder-column comparator="!=" name="status" />
		</finder>
		<finder name="G_P_N" return-type="JournalFolder" unique="true">
			<finder-column name="groupId" />
			<finder-column name="parentFolderId" />
			<finder-column name="name" />
		</finder>
		<finder name="G_P_S" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="parentFolderId" />
			<finder-column name="status" />
		</finder>
		<finder name="G_P_NotS" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="parentFolderId" />
			<finder-column comparator="!=" name="status" />
		</finder>
		<finder db-index="false" name="GtF_C_P_NotS" return-type="Collection">
			<finder-column comparator="&gt;" name="folderId" />
			<finder-column name="companyId" />
			<finder-column name="parentFolderId" />
			<finder-column comparator="!=" name="status" />
		</finder>
	</entity>
	<exceptions>
		<exception>ArticleContent</exception>
		<exception>ArticleDisplayDate</exception>
		<exception>ArticleExpirationDate</exception>
		<exception>ArticleFriendlyURL</exception>
		<exception>ArticleId</exception>
		<exception>ArticleReviewDate</exception>
		<exception>ArticleSmallImageName</exception>
		<exception>ArticleSmallImageSize</exception>
		<exception>ArticleTitle</exception>
		<exception>ArticleVersion</exception>
		<exception>DuplicateArticleExternalReferenceCode</exception>
		<exception>DuplicateArticleId</exception>
		<exception>DuplicateFeedId</exception>
		<exception>DuplicateFolderExternalReferenceCode</exception>
		<exception>DuplicateFolderName</exception>
		<exception>FeedContentField</exception>
		<exception>FeedId</exception>
		<exception>FeedName</exception>
		<exception>FeedTargetLayoutFriendlyUrl</exception>
		<exception>FeedTargetPortletId</exception>
		<exception>FolderName</exception>
		<exception>InvalidDDMStructure</exception>
		<exception>InvalidDDMStructureFieldName</exception>
		<exception>InvalidFolder</exception>
	</exceptions>
</service-builder>