Hello all,
Second pass on the entity-auto engine ;)
I found some service that would be available to entity-auto conversion
but a label is present to return a specific message.
We have some permission error message that will be manage by a
permission service and failure message like this :
<simple-method method-name="deleteWorkRequirementFulfillment"
short-description="Delete a WorkRequirementFulfillment"><!--entity-auto-->
<entity-one entity-name="WorkRequirementFulfillment"
value-field="workRequirementFulfillment"/>
<if-empty field="workRequirementFulfillment">
<add-error>
<fail-property resource="WorkEffortUiLabels"
property="WorkEffortRequirementFulfillmentDoesNotExists"/>
</add-error>
<check-errors/>
</if-empty>
What is the best orientation ? Convert all service with specific error
message and extend the entity auto to return a comprehensive message, or
modify nothing ?
On the first case we progess on CRUD homogenization.
On the second case we keep dedicate message for the end user.
what do you think?