<?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.friendly.url">
	<namespace>FURL</namespace>
	<entity local-service="true" name="FriendlyURLEntry" remote-service="false" uuid="true">

		<!-- PK fields -->

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

		<!-- Group instance -->

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

		<!-- Audit fields -->

		<column name="companyId" type="long" />
		<column name="createDate" type="Date" />
		<column name="modifiedDate" type="Date" />

		<!-- Other fields -->

		<column name="classNameId" type="long" />
		<column name="classPK" type="long" />

		<!-- Localized entity -->

		<localized-entity>
			<column name="groupId" type="long" />
			<column name="classNameId" type="long" />
			<column name="classPK" type="long" />
			<localized-column name="urlTitle" />

			<!-- Finder methods -->

			<finder name="G_C_U" return-type="FriendlyURLEntryLocalization" unique="true">
				<finder-column name="groupId" />
				<finder-column name="classNameId" />
				<finder-column name="urlTitle" />
			</finder>
			<finder name="G_C_C_L" return-type="Collection">
				<finder-column name="groupId" />
				<finder-column name="classNameId" />
				<finder-column name="classPK" />
				<finder-column name="languageId" />
			</finder>
		</localized-entity>

		<!-- Finder methods -->

		<finder name="G_C_C" return-type="Collection">
			<finder-column name="groupId" />
			<finder-column name="classNameId" />
			<finder-column name="classPK" />
		</finder>
	</entity>
	<entity local-service="false" name="FriendlyURLEntryMapping" remote-service="false" uuid="false">

		<!-- PK fields -->

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

		<!-- Audit fields -->

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

		<!-- Other fields -->

		<column name="classNameId" type="long" />
		<column name="classPK" type="long" />
		<column change-tracking-resolution-type="merge" name="friendlyURLEntryId" type="long" />

		<!-- Finder methods -->

		<finder name="C_C" return-type="FriendlyURLEntryMapping" unique="true">
			<finder-column name="classNameId" />
			<finder-column name="classPK" />
		</finder>
	</entity>
	<exceptions>
		<exception>DuplicateFriendlyURLEntry</exception>
		<exception>FriendlyURLLength</exception>
	</exceptions>
</service-builder>