Foren
Service Builder - Finder methods
Stan X, geändert vor 12 Jahren.
Service Builder - Finder methods
Regular Member Beiträge: 208 Beitrittsdatum: 28.01.08 Neueste Beiträge
Hi,
I have a service.xml similar to this:
---
Some of the methods generated are FirstEntryLocalServiceUtil.getFirstEntriesByG_C and SecondEntryLocalServiceUtil.getFirstEntriesByG_C.
I am expecting to have FirstEntryLocalServiceUtil.getFirstEntriesByG_C and SecondEntryLocalServiceUtil.getSecondEntriesByG_C. The methods return the correct List results, but it just using a wrong name.
CE 6.1b4, IDE 6.1b4, SDK 6.1b4. The same issue happens in Beta3.
Any ideas?
I have a service.xml similar to this:
<service-builder package-path="com.test.sample">
<author>root</author>
<namespace>FB</namespace>
<entity name="FirstEntry" table="CC_FirstEntry" uuid="true" local-service="true" remote-service="false">
<!-- PK fields -->
<column name="firstEntryId" type="long" primary="true"></column>
<!-- Group instance -->
<column name="groupId" type="long" />
<!-- Audit fields -->
<column name="companyId" type="long"></column>
<column name="userId" type="long"></column>
<column name="userName" type="String"></column>
<column name="createDate" type="Date"></column>
<column name="modifiedDate" type="Date"></column>
<!-- Other fields -->
<!-- Finder methods -->
<finder name="GroupId" return-type="Collection">
<finder-column name="groupId" />
</finder>
<finder name="UserId" return-type="Collection">
<finder-column name="userId" />
</finder>
<finder name="CompanyId" return-type="Collection">
<finder-column name="companyId" />
</finder>
<finder name="G_U" return-type="Collection">
<finder-column name="groupId" />
<finder-column name="userId" />
</finder>
<finder name="G_C" return-type="Collection">
<finder-column name="groupId" />
<finder-column name="companyId" />
</finder>
</entity>
<entity name="SecondEntry" table="CC_SecondEntry" uuid="true" local-service="true" remote-service="false">
<!-- PK fields -->
<column name="secondEntryId" type="long" primary="true"></column>
<!-- Group instance -->
<column name="groupId" type="long" />
<!-- Audit fields -->
<column name="companyId" type="long"></column>
<column name="userId" type="long"></column>
<column name="userName" type="String"></column>
<column name="createDate" type="Date"></column>
<column name="modifiedDate" type="Date"></column>
<!-- Other fields -->
<!-- Order -->
<!-- Finder methods -->
<finder name="GroupId" return-type="Collection">
<finder-column name="groupId" />
</finder>
<finder name="UserId" return-type="Collection">
<finder-column name="userId" />
</finder>
<finder name="CompanyId" return-type="Collection">
<finder-column name="companyId" />
</finder>
<finder name="G_U" return-type="Collection">
<finder-column name="groupId" />
<finder-column name="userId" />
</finder>
<finder name="G_C" return-type="Collection">
<finder-column name="groupId" />
<finder-column name="companyId" />
</finder>
</entity>
</service-builder>
---
Some of the methods generated are FirstEntryLocalServiceUtil.getFirstEntriesByG_C and SecondEntryLocalServiceUtil.getFirstEntriesByG_C.
I am expecting to have FirstEntryLocalServiceUtil.getFirstEntriesByG_C and SecondEntryLocalServiceUtil.getSecondEntriesByG_C. The methods return the correct List results, but it just using a wrong name.
CE 6.1b4, IDE 6.1b4, SDK 6.1b4. The same issue happens in Beta3.
Any ideas?