<?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.fragment">
	<namespace>Fragment</namespace>
	<entity local-service="true" name="FragmentCollection" remote-service="true" uuid="true">

		<!-- PK fields -->

		<column name="fragmentCollectionId" 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" />
		<column name="createDate" type="Date" />
		<column name="modifiedDate" type="Date" />

		<!-- Other fields -->

		<column name="fragmentCollectionKey" type="String" />
		<column name="name" type="String" />
		<column name="description" type="String" />
		<column name="lastPublishDate" type="Date" />

		<!-- Order -->

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

		<!-- Finder methods -->

		<finder name="GroupId" return-type="Collection">
			<finder-column arrayable-operator="OR" name="groupId" />
		</finder>
		<finder name="G_FCK" return-type="FragmentCollection" unique="true">
			<finder-column name="groupId" />
			<finder-column name="fragmentCollectionKey" />
		</finder>
		<finder name="G_LikeN" return-type="Collection">
			<finder-column arrayable-operator="OR" name="groupId" />
			<finder-column comparator="LIKE" name="name" />
		</finder>
	</entity>
	<entity local-service="true" name="FragmentComposition" remote-service="true" uuid="true">

		<!-- PK fields -->

		<column name="fragmentCompositionId" 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" />
		<column name="createDate" type="Date" />
		<column name="modifiedDate" type="Date" />

		<!-- Other fields -->

		<column name="fragmentCollectionId" type="long" />
		<column name="fragmentCompositionKey" type="String" />
		<column name="name" type="String" />
		<column name="description" type="String" />
		<column name="data" type="String" />
		<column name="previewFileEntryId" type="long" />
		<column name="lastPublishDate" type="Date" />
		<column name="status" type="int" />
		<column name="statusByUserId" type="long" />
		<column name="statusByUserName" type="String" />
		<column name="statusDate" type="Date" />

		<!-- Order -->

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

		<!-- Finder methods -->

		<finder name="GroupId" return-type="Collection">
			<finder-column name="groupId" />
		</finder>
		<finder name="FragmentCollectionId" return-type="Collection">
			<finder-column name="fragmentCollectionId" />
		</finder>
		<finder name="G_FCI" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="fragmentCollectionId" />
		</finder>
		<finder name="G_FCK" return-type="FragmentComposition" unique="true">
			<finder-column name="groupId" />
			<finder-column name="fragmentCompositionKey" />
		</finder>
		<finder name="G_FCI_LikeN" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="fragmentCollectionId" />
			<finder-column comparator="LIKE" name="name" />
		</finder>
		<finder name="G_FCI_S" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="fragmentCollectionId" />
			<finder-column name="status" />
		</finder>
		<finder name="G_FCI_LikeN_S" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="fragmentCollectionId" />
			<finder-column comparator="LIKE" name="name" />
			<finder-column name="status" />
		</finder>
	</entity>
	<entity local-service="true" name="FragmentEntry" remote-service="true" uuid="true" versioned="true">

		<!-- PK fields -->

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

		<!-- Group instance -->

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

		<!-- Audit fields -->

		<column name="companyId" type="long" />
		<column change-tracking-resolution-type="merge" name="userId" type="long" />
		<column change-tracking-resolution-type="merge" name="userName" type="String" />
		<column name="createDate" type="Date" />
		<column name="modifiedDate" type="Date" />

		<!-- Other fields -->

		<column name="fragmentCollectionId" type="long" />
		<column name="fragmentEntryKey" type="String" />
		<column name="name" type="String" />
		<column change-tracking-resolution-type="merge" name="css" type="String" />
		<column change-tracking-resolution-type="merge" name="html" type="String" />
		<column change-tracking-resolution-type="merge" name="js" type="String" />
		<column name="cacheable" type="boolean" />
		<column change-tracking-resolution-type="merge" name="configuration" type="String" />
		<column name="icon" type="String" />
		<column name="previewFileEntryId" type="long" />
		<column name="readOnly" type="boolean" />
		<column name="type" type="int" />
		<column name="typeOptions" type="String" />
		<column name="lastPublishDate" type="Date" />
		<column name="status" type="int" />
		<column name="statusByUserId" type="long" />
		<column name="statusByUserName" type="String" />
		<column name="statusDate" type="Date" />

		<!-- Order -->

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

		<!-- Finder methods -->

		<finder name="GroupId" return-type="Collection">
			<finder-column name="groupId" />
		</finder>
		<finder name="FragmentCollectionId" return-type="Collection">
			<finder-column name="fragmentCollectionId" />
		</finder>
		<finder name="Type" return-type="Collection">
			<finder-column name="type" />
		</finder>
		<finder name="G_FCI" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="fragmentCollectionId" />
		</finder>
		<finder name="G_FEK" return-type="FragmentEntry" unique="true">
			<finder-column name="groupId" />
			<finder-column name="fragmentEntryKey" />
		</finder>
		<finder name="G_FCI_LikeN" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="fragmentCollectionId" />
			<finder-column comparator="LIKE" name="name" />
		</finder>
		<finder name="G_FCI_T" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="fragmentCollectionId" />
			<finder-column name="type" />
		</finder>
		<finder name="G_FCI_S" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="fragmentCollectionId" />
			<finder-column name="status" />
		</finder>
		<finder name="G_FCI_LikeN_S" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="fragmentCollectionId" />
			<finder-column comparator="LIKE" name="name" />
			<finder-column name="status" />
		</finder>
		<finder name="G_FCI_T_S" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="fragmentCollectionId" />
			<finder-column name="type" />
			<finder-column name="status" />
		</finder>
	</entity>
	<entity local-service="true" name="FragmentEntryLink" remote-service="true" uuid="true">

		<!-- PK fields -->

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

		<!-- Group instance -->

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

		<!-- Audit fields -->

		<column name="companyId" type="long" />
		<column change-tracking-resolution-type="merge" name="userId" type="long" />
		<column change-tracking-resolution-type="merge" name="userName" type="String" />
		<column name="createDate" type="Date" />
		<column name="modifiedDate" type="Date" />

		<!-- Other fields -->

		<column name="originalFragmentEntryLinkId" type="long" />
		<column name="fragmentEntryId" type="long" />
		<column name="segmentsExperienceId" type="long" />
		<column name="classNameId" type="long" />
		<column name="classPK" type="long" />
		<column name="plid" type="long" />
		<column change-tracking-resolution-type="merge" name="css" type="String" />
		<column change-tracking-resolution-type="merge" name="html" type="String" />
		<column change-tracking-resolution-type="merge" name="js" type="String" />
		<column change-tracking-resolution-type="merge" name="configuration" type="String" />
		<column name="deleted" type="boolean" />
		<column name="editableValues" type="String" />
		<column name="namespace" type="String" />
		<column name="position" type="int" />
		<column name="rendererKey" type="String" />
		<column name="type" type="int" />
		<column name="lastPropagationDate" type="Date" />
		<column name="lastPublishDate" type="Date" />

		<!-- Order -->

		<order by="asc">
			<order-column name="classNameId" />
			<order-column name="classPK" />
			<order-column name="position" />
		</order>

		<!-- Finder methods -->

		<finder name="GroupId" return-type="Collection">
			<finder-column name="groupId" />
		</finder>
		<finder name="FragmentEntryId" return-type="Collection">
			<finder-column arrayable-operator="true" name="fragmentEntryId" />
		</finder>
		<finder name="RendererKey" return-type="Collection">
			<finder-column name="rendererKey" />
		</finder>
		<finder name="G_F" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="fragmentEntryId" />
		</finder>
		<finder name="G_P" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="plid" />
		</finder>
		<finder name="G_OFELI_P" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="originalFragmentEntryLinkId" />
			<finder-column name="plid" />
		</finder>
		<finder name="G_F_C" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="fragmentEntryId" />
			<finder-column name="classNameId" />
		</finder>
		<finder name="G_F_P" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="fragmentEntryId" />
			<finder-column name="plid" />
		</finder>
		<finder name="G_S_P" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column arrayable-operator="OR" name="segmentsExperienceId" />
			<finder-column name="plid" />
		</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_P_D" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="plid" />
			<finder-column name="deleted" />
		</finder>
		<finder name="G_F_C_C" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="fragmentEntryId" />
			<finder-column name="classNameId" />
			<finder-column name="classPK" />
		</finder>
		<finder name="G_S_C_C" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="segmentsExperienceId" />
			<finder-column name="classNameId" />
			<finder-column name="classPK" />
		</finder>
		<finder name="G_S_P_R" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="segmentsExperienceId" />
			<finder-column name="plid" />
			<finder-column name="rendererKey" />
		</finder>
	</entity>
	<exceptions>
		<exception>DuplicateFragmentCollection</exception>
		<exception>DuplicateFragmentCollectionKey</exception>
		<exception>DuplicateFragmentCompositionKey</exception>
		<exception>DuplicateFragmentEntry</exception>
		<exception>DuplicateFragmentEntryKey</exception>
		<exception>FragmentCollectionName</exception>
		<exception>FragmentCompositionDescription</exception>
		<exception>FragmentCompositionName</exception>
		<exception>FragmentEntryConfiguration</exception>
		<exception>FragmentEntryContent</exception>
		<exception>FragmentEntryFieldTypes</exception>
		<exception>FragmentEntryName</exception>
		<exception>FragmentEntryTypeOptions</exception>
		<exception>InvalidFile</exception>
		<exception>InvalidFragmentCompositionKey</exception>
		<exception>RequiredFragmentEntry</exception>
	</exceptions>
</service-builder>